- Dynamic memory allocation for 2d array
- How polymorphism works in C++(Vptr and Vtable implementation)
- Rope burning puzzle (Measure 45 mins)
- Find maximum repeating element in array. Elements will be always <= k where k is 0 <= k <= n
- There is online catalogue of songs (Like Saavn or Gaana). How you will show favorite songs every day to users. Efficient algorithm required. (K max solution/ Min heap solution)
Round 3 (F2F)
- Again, how polymorphism works. Draw vtable and vptr
- Producer consumer problem with synchronization (Full code)
- Difference between mutex, semaphore and condition_variable.
- Design parking lot system
- Zigzag traversal of binary tree
Round 4 (F2F)
Round 4 (F2F)
- He asked producer consumer problem but I told that same question is asked in previous round.
Then interviewer went asking lots of question related to producer and consumer. Lots of discussions like what is writer is not there and only reader is there and you need to find out how many readers are currently reading from buffer.
- Discussions about C++11 features. How thread and aysnc is different
- Design your own shared_ptr(How you will handle ownership)
- Check If binary tree is symmetrical.
- Find element in rotated sorted array and then optimize it.
Round 5(Hiring Manager)
- You are given a rotate function which basically will take any object like (2d image, 3d image, audio, video) and will rotate it by 180 degrees. You need to design the functionally. You only know what type of object is there. (Factory design pattern).
- Expression evaluation (Only constraint was that each operand will have different units). For ex-40 inches + 2*2cm +11/2mm + 12*2/6cm. You will have final unit which you need to convert.
- 3. 1 Puzzle
Round 6 (Director round)
- Why you want to leave current company and other behavioral questions.
- Design restaurant finder app. You just have User’s location and you need to find out all the nearby restaurants. You don’t have any external geolocation API. Lots of discussions about how you will divide the area and how you will store the data.
If you like GeeksforGeeks and would like to contribute, you can also write an article and mail your article to email@example.com. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please write comments if you find anything incorrect, or you want to share more information about the topic discussed above
Attention reader! Don’t stop learning now. Get hold of all the important DSA concepts with the DSA Self Paced Course at a student-friendly price and become industry ready. To complete your preparation from learning a language to DS Algo and many more, please refer Complete Interview Preparation Course. In case you are prepared, test your skills using TCS, Wipro, Amazon and Microsoft Test Serieses.