Internet interview questions | Glassdoor

Internet interview questions

Google Interviews /  HQ: Mountain View, CA

5,290 Interviews

3.4 Difficult

Facebook Interviews /  HQ: Menlo Park, CA

2,636 Interviews

3.2 Average

Yelp Interviews /  HQ: San Francisco, CA

1,819 Interviews

2.9 Average

Interview Questions

Sort: RelevancePopular Date

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

11 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

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

2 Answers

If you were handed 50 new target accounts how would you start?

1 Answer
110 of 26,496 Interview Questions