The written round was relatively easy. It contained 20 multiple choice questions on basic c, algorithms and finite automata. Some questions from OS and networking were there too but were easy. Coding questions were:
- Find the nodes of the tree as seen from the left view of the binary tree.
- Rotate the given matrix by 90 degrees i.e. the first row becomes the last column and second row becomes the second last column and so on.
Interview round 1:
Two questions were asked. One puzzle and the other coding question.
- Given n coins for two players playing a game. Each player picks coins from the given n coins in such a way that he can pick 1 to 5 coins in one turn and the game continues for both the players. The player who picks the last coin looses the game. You have to tell that for given n coins who looses the game?
- Given a number n, find the number just greater than n using same digits as that of n.
Interview round 2:
- Given in facebook find an efficient way to find the mutual friends between you and one of your given friends.
Hint: hashing, dictionary data structure implementation - For two very long numbers given, find the product of these numbers in an efficient way.
Hint: using binary multiplication effectively.
Finally I got internship offer from them….:)
If you like GeeksforGeeks and would like to contribute, you can also write an article and mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Recommended Posts:
- Amazon Interview | Set 45 (For Internship)
- Amazon Interview | Set 46 (On-campus for Internship)
- Amazon Interview | Set 52 (For Internship)
- Amazon Interview | Set 54 (For Internship)
- Amazon Interview | Set 60 (For Internship)
- Amazon Interview | Set 61 (For Internship)
- Amazon Interview | Set 70 (On-Campus For Internship)
- Amazon Interview | Set 96 (On-Campus for Internship)
- Amazon Interview | Set 106 (On Campus for Internship)
- Amazon Interview | Set 113 (On-Campus for Internship)
- Amazon Interview | Set 114 (On-Campus for Internship)
- Amazon Interview | Set 117 (On-Campus for Internship)
- Amazon Interview | Set 118 (On-Campus for Internship)
- Amazon Interview | Set 119 (On-Campus for Internship)
- Amazon Interview | Set 120 (On-Campus for Internship)
- Amazon Interview | Set 122 (On-Campus for Internship)
- Amazon Interview | Set 123 (On-Campus for Internship)
- Amazon Interview | Set 125 (On-Campus for Internship)
- Amazon Interview experience | Set 127 (For Internship)
- Amazon Interview Experience | Set 149 (On-Campus for Internship)


