I was interviewed on-campus for Software Development Engineering (SDE1) role Flipkart.
Coding round: (90 minutes)
Coding round was done on hackerrank .
- Given two numbers a and b, find kth digit from right of a^b. (Naïve method will only help you to pass half of the test cases)
- Second question was based on reducing a given expression in its smallest form and printing lexicographically smaller expression.
- You are provided with n and m values which denote the rows and columns. Rajesh starts at top most cell (0, 0). He will not visit the visited cell.
- He moves to the point towards his right
- If he cannot move one point to the right, he rotates right and then takes the path to the right
- If after performing 4 rotate operations, if he cannot move then he would stop
Print the number of cells visited by him.
1 2 9
4 3 8
5 6 7
The problem can be solved using dynamic programming but there is also a logical way to solve it in less time.
Interview Round 1:
Duration: 1 hour
- Given two arrays of length n and n-1, all elements of both the arrays are same except one. Find the odd element out, giving O (1) solution.
- Given two binary trees (not any special tree like binary search tree or red black tree) with n and n-1 nodes respectively, find the odd node out.
- Given two binary search trees with n and n-1 nodes respectively with all elements same except one, find the odd node.
- Given an array where each element signifies the number of cells which can be skipped, find the minimum number of steps taken to reach the last cell of the array. One has to start at index 0 and always move forward either by skipping cells by number given or by one.
Practice writing pseudo codes on paper and focus on reducing the time and space complexity.
Interview Round 2:
Duration: 1 hour
- Given two words (beginWord and endWord), and a dictionary of words, find all shortest transformation sequence(s) from beginWord to endWord, such that:
- Only one letter can be changed at a time
- Each intermediate word must exist in the dictionary
- Design a data structure such that it can be used to do the following operation
FindRand: O(1) this will return any element stored with each element having equal probability.
Hint: Random number generator of the system can be used.
Interview Round 3:
Duration: 1 hour
This was the final HR round where general questions were asked. Questions were asked from resume mainly focusing on projects you have done.
Duration: 10 minutes
Given 1 GB memory space write the pseudo code to print the maximum occurring string at any point of time where the size of the list of string can be of 10 GB and are updated dynamically.
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.
- MathWorks Interview Experience (EDG, Oncampus)
- ServiceNow Interview Experience Oncampus
- UHG Interview Experience | OnCampus- 2019
- InfoEdge Interview Experience | OnCampus-2019
- Flipkart Interview Experience(1.10 years experience SDE 1)
- Flipkart Interview Experience | Set 17 (For SDE II)
- Flipkart Interview Experience | Set 18 (For SDE I)
- Flipkart Interview Experience | Set 20 (For SDE-II)
- Flipkart Interview Experience | Set 22 (For SDE 2)
- Flipkart Interview Experience | Set 27 (For SDE)
- Flipkart Interview Experience | Set 30 (For SDE 2)
- Flipkart Interview Experience | Set 32 (For SDE-1)
- Flipkart Interview Experience | Set 33 (For SDE-1)
- Flipkart Interview Experience | Set 34 (On-Campus for SDE-1)
- Flipkart Interview Experience| Set 35 (On-Campus for SDE 1)
- Flipkart Interview Experience| Set 36 (On-Campus for SDE 1)
- Flipkart Interview Experience| Set 37 (On-Campus for SDE 1)
- Flipkart Interview Experience| Set 38 (For SDE II)
- Flipkart Interview Experience | Set 40 (For SDE 1)
- Flipkart Interview Experience | Set 41 (For SDE 1)