It was a online coding round on Hackerrank, there were three questions :
1. balancing bracket problem in which you have to check whether the give string of bracket is balanced or not .
2. It was an easy question based on anagrams, it was just about implementation .
3. It was basically a variation of matrix chain multiplication.
It was a F2F round in which interviewer asked to me 3 questions which was generally based on arrays –
1. Find the duplicates in the array in O(n) time and O(1) space .
2. It was similar to problem given below-
3. Convert an array to zig-zag fashion-
It was also a F2F round in the interviewer asked to me the problems generally related to trees –
1. Given a binary tree, print the tree in sine wave form means first divide the tree into vertical planes after that print bottom-most node of first plane, next print top-most node of the second plane and so on. If there are two nodes present at the bottom-most position of the plane the print any of them.
for example –
Output – 4 2 5 3 7 9 or 4 2 6 3 7 9
3.Given a binary tree, first print all leaf nodes, after that remove all the leaf nodes from the tree and now print all the new formed leaf nodes and keep doing this till there is atleast one node.
For example –
1) 1 4 7 13
2) 6 14
3) 3 10
He asked me to do it in O(n) complexity, I solved it using DFS approach.
It was an Hiring Manager Round in which he asked me about my hobbies and different other things like what type of problems I generally like to solve.
After that he asked me about Traveling salesman problem and other NP-Hard problems. He didn’t ask me to write code but asked about my approach. After that there was a lot of discussion on company’s policies.
- Flipkart Recruitment Process
- ServiceNow Interview Experience Oncampus
- UHG Interview Experience | OnCampus- 2019
- MathWorks Interview Experience (EDG, Oncampus)
- InfoEdge Interview Experience | OnCampus-2019
- Flipkart Interview | Set 1 (For SDE 2)
- Flipkart Interview | Set 3
- Flipkart Interview | Set 2 (For SDE 1)
- Flipkart Interview | Set 8 (For SDE 1)
- Flipkart Interview (For SDE II)
- Flipkart Interview | Set 4 (For SDE-1)
- Flipkart Interview | Set 6
- Flipkart Interview | Set 7 (For SDE II)
- Flipkart Interview | Set 11
- Flipkart Interview | Set 13
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to email@example.com. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.