Internet interview questions | Glassdoor

Internet interview questions

Google Interviews

www.google.com  /  HQ: Mountain View, CA

4,768 Interviews

3.4 Difficult

Facebook Interviews

www.facebook.com  /  HQ: Menlo Park, CA

2,058 Interviews

3.2 Average

Yelp Interviews

www.yelp.com  /  HQ: San Francisco, CA

1,558 Interviews

2.9 Average

Interview Questions

Sort: Relevance Popular Date

Write some pseudo code to raise a number to a power.

10 Answers

pretty trivial...

int raise(num, power){ if(power==0) return 1; if(power==1) return num; return(raise(num, power-1)*num); }

double Power(int x, int y) { double ret = 1; double power = x; while (y > 0) { if (y & 1) { ret *= power; } power *= power; y >>= 1; } return ret; }

Find the second largest element in a Binary Search Tree

16 Answers

Given an array of numbers, replace each number with the product of all the numbers in the array except the number itself *without* using division.

8 Answers

Suppose you have a matrix of numbers. How can you easily compute the sum of any rectangle (i.e. a range [row_start, row_end, col_start, col_end]) of those numbers? How would you code this?

6 Answers

Describe and code an algorithm that returns the first duplicate character in a string?

7 Answers

What sort would you use if you required tight max time bounds and wanted highly regular performance.

6 Answers

Implement a binary tree and explain it's function

4 Answers

You notice that adwords revenue for a certain word has dropped in Italy for the last 30 days. How do you go about determining why that has happened?

4 Answers

I'm going to give you a scenario just to see how you think. If you had an employee approach you after not being promoted, although they said they were promised the promotion, what would you do?

2 Answers

Why are point to point VPNs not exactly the best way to connect LANS

2 Answers
110 of 23,067 Interview Questions