Hi Guys
I gave Flipkart SDE2 machine coding round on april 12,2025
And after that I had machine coding evaluation round on 14th April 2025
Interviewer asked me some questions on which design patterns I have used
After that he ran some test cases on my code and all passed successfully except one which was the edge case i missed.
After that he asked one more question on design like which design pattern you will use to do this(the problem which he asked) in your code.
I gave all the answers correctly. He seemed satisfied with my answers.
I did not handle one-two edgecases in my code due to time boundries during the live coding which he highlighted in my evaluation round.
In the end I asked some good question to the interviewer because in his introduction he mentioned something which I also worked upon in my past.
He answered that and I felt the round went good.
But didn't hear back till now from the recruiter.
How much does it take to get the evaluation round results.
Thanks
Update 1: Got PSDS round scheduled on 17th April
Update 2: Got Design round scheduled on 23 April(Messed This round)
PSDS Round questions:
Given a positive integer n such that n > 2. Divide numbers from 1 to n in two groups such that the absolute difference of sum of each group is minimum. Print the 2 groups
Example:
Input : 5
Output :[ [5 2], [4, 3,1]]
Follow up on the same
Given a positive integer n such that n > 2. Divide numbers from 1 to n in k groups such that the absolute difference of sum of each group is minimum. Print the 2 groups
Example:
Input : 5
Output :[ [5 2], [4, 3,1]]
Then asked me to optimise the approach as i suggested O(N*K) then optimised it by using priority queue O(N*LogK)
#2 Design a stack-like data structure to push elements to the stack and pop the most frequent element from the stack.
Implement the FreqStack class:
FreqStack() constructs an empty frequency stack.
void push(int val) pushes an integer val onto the top of the stack.
int pop() removes and returns the most frequent element in the stack.
If there is a tie for the most frequent element, the element closest to the stack's top is removed and returned.
Example 1:
Input
["FreqStack", "push", "push", "push", "push", "push", "push", "pop", "pop", "pop", "pop"]
[[], [5], [7], [5], [7], [4], [5], [], [], [], []]
Output
[null, null, null, null, null, null, null, 5, 7, 5, 4]Design Round question:
Design a ticket booking system for movies. For example: bookmyshow
Functionality to be implemented:
● Search movie(by name, by theatre name)
● Book ticket
● Cancel ticket
● List upcoming movies
I was told to write first human interfaces,not any language specific just human interface then I was told to design DB and freedom to choose any db, and then he found mistakes in each table.I already studied this question but whatever I read or designed he rejected everything and found legit mistakes. So self rejecting myself.


