Round1: Machine coding and discussion based on that.
Was asked to design and code snake and ladder game. Then questions where asked on how it can be extended.
Round 2: puzzles and data structures
Question 1: you are given a 1d array. The values represent the height of wall from floor. We are supposed to find what will be the amount of water it can hold. For ex.. Array(1,0,3) can hold 1 unit of water. Array(3,1,3) can hold 2 units of water. I did not give correct solution here. Can anyone suggest me the correct solution here…
Question 2: We have a huge log file for meeting times in an office. Each entry has only start and end time. Given this we have to find the time which has the most number of meetings. He basically expected me to sort it and find the conflicting entries.
I was rejected in this round. But all interviewers were down to earth. It was a nice experience. All the best for others.
If you like GeeksforGeeks and would like to contribute, you can also write an article and mail your article to firstname.lastname@example.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
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.