Flipkart Interview | Set 10 (On-Campus For SDE-1)
Question Details
Round 1(Online):There were 2 questions time limit 90 mins.A person wants to go from origin to a particular location, he can move in only 4 directions(i.e East, West, North...
Full Details
Round 1(Online): There were 2 questions time limit 90 mins. A person wants to go from origin to a particular location, he can move in only 4 directions(i.e East, West, North, South) but his friend gave him a long route, help a person to find minimum Moves so that he can reach to the destination.
Input – NESNWES Output – E You need to print the lexicographically sorted string. Assume the string will have only ‘E’ ‘N’ ‘S’ ‘W’ characters. E.g – SSSNEEEW output – EESS Practice Link: https://www.geeksforgeeks.org/problems/shortest-direction4201/1 A sender will send a binary string to a receiver meanwhile he encrypt the digits. You are given a encrypted form of string. Now, the receiver needs to decode the string, and while decoding there were 2 approaches. First, receiver will start with first character as 0; S[0] = 0, P[1] = S[1] + S[0], P[2] = S[2] + S[1] + S[0] and so on. Second, Receiver will start with first character as 1; S[0] = 1, P[1] = S[1] + S[0], P[2] = S[2] + S[1] + S[0] and so on. You need to print both the strings, after evaluation from both first and second technique. If any string will contain other that binary numbers you need to print NONE. Round 2(Machine Coding Round): There was only one question, time limit 45 minutes Word Wrap problem with few conditions, even i didnt remember much conditions here are some conditions. there can be maximum of X characters in a single line. there can be maximum of Y number of spaces in the end of the each single line. if a string length is big enough, so that it cannot be printed in single line, use ‘-’ in the end of the line and print string further in the different line. also there should not be ‘–’ consecutively in the end, if the string contains already ‘-’ in the end dont put ‘-’ character. E.g. flip-kart and if x = 5 so it should be -> flip- kart the string should not start with these characters(‘.’ , ‘,’ ‘ ‘) the cost value should be minimum, there can not be multiple answer for a single string. Eg. This is a flipkart online programming test. x = 10 Y = 3 Output This is a flipkart online pr- ogramming test. First Technical Interview (F2F): They asked me about myself, so i gave my brief intro to them(there were 2 people who were taking the interview) He saw my resume and asked me that do I know DBMS. I said i have done a course on it. So he started asking about DBMS. He explained me how the order are made in flipkart (like there are many item from different locations and many order are places and there are many order item to be placed at different location. There can be offers on items). After explaining he asked me what tables would you like to used for online shopping like flipkart. He asked the the primary keys for every table and foreign key if there are any. He then asked me about mapping of these keys and what type of mapping to be used here(one to one, many to many or many to one). Then he asked me about my Codechef and spoj rating. Then he asked me 3 coding questions: https://www.codechef.com/JULY14/problems/SGARDEN/ Simple dp question that a frog can take 1 or 2 step. Number of ways to reach nth position. Article Link: https://www.geeksforgeeks.org/dsa/count-ways-reach-nth-stair-using-step-1-2-3/ Practice Link: https://www.geeksforgeeks.org/problems/count-ways-to-reach-the-nth-stair-1587115620/1 Number of palindrome between 2 given numbers. Technical + HR interview(F2F) – He discuss everything about my project very deeply. Then he asked a coding question. https://www.gayle.com/consulting All Practice Problems for Flipkart !
About This Question
This is a reported interview question from a flipkart interview for a swe role during the phone screen round reported in 2025.
It covers the following topics: Strings, Dynamic Programming .
Difficulty rating: Easy
Topics
More Flipkart Interview Questions
About Flipkart Interview Reports
This question was reported by a candidate who interviewed at Flipkart. LeakCode aggregates interview reports from 10+ sources, including 1Point3Acres, Glassdoor, LeetCode Discuss, Blind, Reddit, Indeed, and Nowcoder. Each report is translated where necessary, deduplicated against existing entries, and tagged by company, role, round type, and reporting date.
Use this question as one calibration data point, not a memorization target. Companies typically rotate their question pools every 2-4 months; the exact wording of a 2024 question may differ from what you encounter today. The underlying pattern, difficulty level, and follow-up depth at Flipkart are the higher-signal extractions to take from this report.
For broader preparation context, the Flipkart interview process typically includes a recruiter screen, one or two technical phone screens, and a 4-5 round on-site loop covering coding, system design (at L4+ levels), and behavioral. Reports tagged on LeakCode show the round-by-round distribution and typical difficulty calibration. To browse questions filtered by round type and seniority, use the company hub linked above.
How To Practice This Type of Question
Solve similar problems on LeetCode under timed conditions (25-35 minutes per medium difficulty). The goal is pattern recognition: recognize the underlying technique (sliding window, two-pointer, BFS, memoized recursion, etc.) within 60-90 seconds of reading. Strong candidates verbalize their hypothesis out loud before coding, then iterate based on feedback. Weak candidates dive into implementation immediately, lose time on the wrong approach, and run out of time for follow-ups.
Companies update their question pools every 2-4 months. The exact wording of any given question may have been retired by the time you interview. Focus your prep on the pattern, not the specific problem. The patterns that appear in Flipkart reports consistently are the ones worth investing in; one-off niche problems are not.
During Your Flipkart Round
Apply the standard interview round template: clarify requirements (2-3 minutes), state your approach out loud and confirm direction with the interviewer (3-5 minutes), code with narration (15-25 minutes), test with concrete examples including edge cases (5 minutes), discuss optimization or trade-offs if time permits (5 minutes). This template is universally accepted across FAANG and adjacent companies; deviating from it produces weaker interviewer feedback signal.
The single most predictive failure mode in Flipkart reports tagged "no hire": not asking clarifying questions. Interviewers are explicitly trained to weight this. Strong candidates ask 3-5 clarifying questions even on problems that look obvious; weak candidates dive into code immediately. The clarifying-question check is often the first signal recorded in the interviewer's written notes.