Flipkart interview questions
20 questions candidates report from Flipkart interviews, plus the general HR questions every interviewer asks. Each has a model answer and the follow-ups to expect.
Typical selection process
Coding test, a machine coding round (build a working system in about 90 minutes), a problem-solving and data structures round, then a hiring manager round.
As reported by recent candidates. Always check the latest official notification.
37 questions
HRMotivationEasyWhy Flipkart?
Reported at Flipkart
Why Flipkart?
Reported at Flipkart
What they are checking: Interest in Indian consumer tech and scale.
Model answer
Flipkart solves problems that are very specific to India: cash on delivery, deliveries to small towns, many languages, and sale days like Big Billion Days where traffic jumps many times overnight. Engineering for that scale and that variety is exactly the kind of challenge I want.
I'm also a customer myself, and so are my parents in a tier-3 town, so I understand the users I'd be building for.
And Flipkart's engineering interviews include a machine coding round, which tells me the company values people who can build working software, not just solve puzzles. That's what I enjoy most.
BehaviouralCustomer focusMediumTell me about a time you went out of your way for a customer or user.
Reported at Amazon, Flipkart
Tell me about a time you went out of your way for a customer or user.
Reported at Amazon, Flipkart
What they are checking: Customer Obsession, Amazon's first Leadership Principle. They want you to start from the user's problem.
Model answer
I built a library seat-booking app for our college. A week after launch, I noticed in the logs that about 30% of bookings were never used, so students were being turned away from empty seats.
I spent two evenings in the library asking students why. Most no-shows were people who booked a slot but whose class ran late. I added a 15-minute check-in window: if you don't scan the QR code at your seat in time, the seat is released and the next person in the waiting list gets a notification.
No-shows fell to about 8%, and the librarian asked the administration to make the app official for all students. The fix was not technically hard; the important part was asking users what was really happening.
TechnicalDatabasesMediumWhen would you choose a SQL database and when a NoSQL database?
Reported at Amazon, Flipkart, Accenture
When would you choose a SQL database and when a NoSQL database?
Reported at Amazon, Flipkart, Accenture
What they are checking: Whether you understand trade-offs rather than trends.
Model answer
SQL databases (MySQL, PostgreSQL) store data in tables with a fixed schema and relationships, support joins, and give strong ACID guarantees. NoSQL databases (MongoDB, DynamoDB, Cassandra, Redis) use documents, key-value pairs or wide columns, have flexible schemas, and are built to scale horizontally.
Choose SQL when:
- Data is structured and related, such as orders, customers and payments.
- You need transactions that must be correct, such as transferring money.
- You need complex queries and reports with joins.
Choose NoSQL when:
- The schema changes often or varies per record, such as product catalogues with different attributes.
- You need huge scale with simple access patterns, such as a shopping cart or session store looked up by key.
- You need very fast reads of denormalised data.
Many real systems use both: PostgreSQL for orders and payments, Redis for caching, and a document store for the catalogue.
TechnicalWebMediumWhat is a REST API? What do the HTTP methods mean?
Reported at Accenture, Cognizant, Flipkart
What is a REST API? What do the HTTP methods mean?
Reported at Accenture, Cognizant, Flipkart
What they are checking: Web development fundamentals.
Model answer
REST is a style for building web APIs where everything is a resource with a URL, and you act on it with standard HTTP methods. Requests are stateless: each one carries everything the server needs, such as an auth token.
- GET /students/12: read student 12. Safe, no changes.
- POST /students: create a new student.
- PUT /students/12: replace student 12 completely.
- PATCH /students/12: update some fields of student 12.
- DELETE /students/12: delete student 12.
Responses use status codes: 200 OK, 201 Created, 400 Bad Request, 401 Unauthorized, 404 Not Found, 500 Server Error.
GET, PUT and DELETE are idempotent, meaning repeating the same request has the same effect as doing it once. POST is not, which is why retrying a POST can create duplicates.
TechnicalNetworkingHardWhat happens when you type a URL into the browser and press Enter?
Reported at Google, Microsoft, Amazon, Flipkart
What happens when you type a URL into the browser and press Enter?
Reported at Google, Microsoft, Amazon, Flipkart
What they are checking: Breadth across networking, the web and browsers. Go step by step, and go deep where you are strongest.
Model answer
- URL parsing: the browser works out the protocol (https), the domain and the path.
- DNS lookup: it finds the IP address of the domain, checking the browser cache, the OS cache, the router and then the ISP's DNS resolver, which may query root, TLD and authoritative name servers.
- TCP connection: the browser opens a connection to the IP on port 443 with a three-way handshake (SYN, SYN-ACK, ACK).
- TLS handshake: browser and server agree on encryption, the server proves its identity with a certificate, and they set up session keys.
- HTTP request: the browser sends GET /path with headers such as cookies and accepted formats.
- Server side: a load balancer passes the request to an app server, which may check a cache, query a database and build the response.
- HTTP response: status code, headers and the HTML body come back.
- Rendering: the browser parses HTML into the DOM and CSS into the CSSOM, runs JavaScript, then lays out and paints the page. Extra requests are made for images, scripts and stylesheets, often from a CDN.
Interviewers usually stop you at one step and ask for more depth, most often DNS, TLS or rendering.
Likely follow-ups
- How does DNS caching work?
- What is a CDN?
- What changes with HTTP/2?
TechnicalToolsMediumWhat is the difference between git merge and git rebase?
Reported at Microsoft, Flipkart
What is the difference between git merge and git rebase?
Reported at Microsoft, Flipkart
What they are checking: Practical engineering experience.
Model answer
Both bring changes from one branch into another.
- git merge creates a new merge commit that joins the two histories. History is preserved exactly as it happened but can look tangled.
- git rebase moves your commits so they sit on top of the latest target branch, rewriting them as new commits. History becomes a clean straight line.
The rule: never rebase commits that others have already pulled, because rewriting shared history causes conflicts for everyone. A common workflow is to rebase your own feature branch on main to stay up to date, then merge it into main through a pull request.
TechnicalCodingEasyGiven an array and a target, return the indices of two numbers that add up to the target.
Reported at Amazon, Google, Microsoft, Flipkart
Given an array and a target, return the indices of two numbers that add up to the target.
Reported at Amazon, Google, Microsoft, Flipkart
What they are checking: Whether you move from the brute-force O(n²) solution to a hash map.
Model answer
Brute force checks every pair: O(n²). Better: as you scan, store each number's index in a hash map, and for each number check whether target minus that number has already been seen. O(n) time, O(n) space.
def two_sum(nums, target):
seen = {}
for i, x in enumerate(nums):
if target - x in seen:
return [seen[target - x], i]
seen[x] = i
return []
print(two_sum([2, 7, 11, 15], 9)) # [0, 1]If the array is sorted, two pointers from both ends solve it in O(n) time and O(1) space.
Likely follow-ups
- What if there are many pairs and you must return all of them?
- Solve three-sum.
TechnicalCodingEasyFind the first non-repeating character in a string.
Reported at Amazon, Flipkart, Microsoft
Find the first non-repeating character in a string.
Reported at Amazon, Flipkart, Microsoft
What they are checking: Hash map counting, and whether you notice that two passes are enough.
Model answer
Count each character in one pass, then scan again and return the first character with a count of 1. O(n) time, and O(1) extra space for a fixed alphabet.
from collections import Counter
def first_unique(s):
counts = Counter(s)
for i, ch in enumerate(s):
if counts[ch] == 1:
return i
return -1
print(first_unique("leetcode")) # 0 ('l')
print(first_unique("aabbcc")) # -1A common follow-up is a stream of characters, where you keep counts plus a queue of candidates and drop from the front of the queue whenever its count exceeds 1.
TechnicalCodingMediumReturn the k most frequent elements in an array.
Reported at Amazon, Flipkart
Return the k most frequent elements in an array.
Reported at Amazon, Flipkart
What they are checking: Choosing between sorting, a heap and bucket sort, and explaining the trade-offs.
Model answer
Count with a hash map, then pick the top k. Sorting all counts is O(n log n). A heap of size k is O(n log k). Bucket sort by frequency is O(n).
from collections import Counter
import heapq
def top_k(nums, k):
counts = Counter(nums)
return heapq.nlargest(k, counts.keys(), key=counts.get)
print(top_k([1, 1, 1, 2, 2, 3], 2)) # [1, 2]For bucket sort, create a list of buckets where index i holds numbers that appear i times, then read from the highest bucket down until you have k numbers.
TechnicalCodingHardDesign and implement an LRU (least recently used) cache with O(1) get and put.
Reported at Amazon, Microsoft, Flipkart, Google
Design and implement an LRU (least recently used) cache with O(1) get and put.
Reported at Amazon, Microsoft, Flipkart, Google
What they are checking: Combining data structures: a hash map for lookup and a doubly linked list for order.
Model answer
Use a hash map from key to node, plus a doubly linked list ordered by recent use. On get, move the node to the front. On put, insert at the front; if over capacity, remove the node at the back and delete its key from the map. Every operation is O(1).
In Python, OrderedDict is a hash map with a linked list inside, so it shows the idea compactly:
from collections import OrderedDict
class LRUCache:
def __init__(self, capacity):
self.capacity = capacity
self.data = OrderedDict()
def get(self, key):
if key not in self.data:
return -1
self.data.move_to_end(key)
return self.data[key]
def put(self, key, value):
if key in self.data:
self.data.move_to_end(key)
self.data[key] = value
if len(self.data) > self.capacity:
self.data.popitem(last=False)Most interviewers will then ask you to write the doubly linked list yourself. Use dummy head and tail nodes so you never have to handle an empty list as a special case.
Likely follow-ups
- Write it without OrderedDict.
- How would you make it thread-safe?
- How is LFU different?
TechnicalMachine codingHardMachine coding: design a parking lot system that parks and unparks vehicles and shows free slots.
Reported at Flipkart, Amazon, Microsoft
Machine coding: design a parking lot system that parks and unparks vehicles and shows free slots.
Reported at Flipkart, Amazon, Microsoft
What they are checking: Can you build working, extensible, readable code in about 90 minutes? They judge class design, naming and whether it runs.
Model answer
Start by confirming requirements: multiple floors, slot types (bike, car, truck), park returns a ticket, unpark takes a ticket, and a command to show free slots per floor and type.
Core classes:
- Vehicle (type, registration number)
- Slot (id, floor, type, vehicle or empty)
- Ticket (id, slot, vehicle, entry time)
- ParkingLot (floors of slots, plus an active-tickets map)
- A SlotAllocationStrategy interface, so "nearest free slot" can later be swapped for another rule.
from dataclasses import dataclass, field
import itertools
@dataclass
class Slot:
floor: int
number: int
type: str
vehicle: str | None = None
@dataclass
class ParkingLot:
slots: list
tickets: dict = field(default_factory=dict)
_ids: itertools.count = field(default_factory=lambda: itertools.count(1))
def park(self, reg_no, vtype):
for slot in self.slots: # nearest-first strategy
if slot.type == vtype and slot.vehicle is None:
slot.vehicle = reg_no
ticket = f"T{next(self._ids)}"
self.tickets[ticket] = slot
return ticket
return None # lot full for this type
def unpark(self, ticket):
slot = self.tickets.pop(ticket, None)
if slot is None:
raise ValueError("Invalid ticket")
slot.vehicle = None
return slot
def free_slots(self, vtype):
return [s for s in self.slots if s.type == vtype and s.vehicle is None]To score well: get a working version early, then improve. Keep classes small, avoid hard-coded values, handle invalid input, and be ready to explain how you'd add pricing or a new vehicle type without rewriting existing code.
Likely follow-ups
- Add hourly pricing.
- How would you make free-slot lookup O(1)?
- How would this work with multiple entry gates at once?
TechnicalSQLMediumWhat is the difference between ROW_NUMBER, RANK and DENSE_RANK?
Reported at Amazon, Flipkart, Deloitte
What is the difference between ROW_NUMBER, RANK and DENSE_RANK?
Reported at Amazon, Flipkart, Deloitte
What they are checking: Window function fluency, needed for most analyst SQL rounds.
Model answer
All three number rows in a given order; they differ only in how they handle ties. For salaries 100, 90, 90, 80:
- ROW_NUMBER: 1, 2, 3, 4. Always unique; ties are broken arbitrarily.
- RANK: 1, 2, 2, 4. Ties share a rank, then a gap.
- DENSE_RANK: 1, 2, 2, 3. Ties share a rank, with no gap.
Top 3 earners in each department:
SELECT *
FROM (
SELECT name, department, salary,
DENSE_RANK() OVER (PARTITION BY department ORDER BY salary DESC) AS rnk
FROM employees
) t
WHERE rnk <= 3;Use ROW_NUMBER when you need exactly one row per group, such as removing duplicates or picking the latest record per user.
TechnicalStatisticsEasyWhen would you report the median instead of the mean?
Reported at Amazon, Flipkart, Deloitte
When would you report the median instead of the mean?
Reported at Amazon, Flipkart, Deloitte
What they are checking: Statistical common sense.
Model answer
When the data is skewed or has outliers. The mean is pulled by extreme values; the median isn't.
Example: if nine people in a team earn ₹5 lakh and the founder earns ₹1 crore, the mean salary is about ₹14.5 lakh, which describes nobody. The median, ₹5 lakh, describes the typical person.
Order values, delivery times and incomes are usually right-skewed, so I report the median, often with the 90th percentile to show the tail. I use the mean when the data is roughly symmetric or when the total matters, such as average revenue per user used to forecast total revenue.
TechnicalStatisticsMediumExplain correlation versus causation with an example.
Reported at Amazon, Google, Flipkart
Explain correlation versus causation with an example.
Reported at Amazon, Google, Flipkart
What they are checking: Whether you will over-claim from data.
Model answer
Correlation means two things move together; causation means one actually causes the other.
Example: users who use the wishlist feature spend 3 times more. That doesn't prove the wishlist makes people spend more. Keen shoppers may simply be more likely to use every feature. This is a confounding variable: shopping intent drives both.
To show causation you need an experiment: randomly show the wishlist to half of new users and compare their spending. If that isn't possible, techniques such as comparing before and after with a control group (difference-in-differences) or matching similar users get closer, but I'd state the limitation clearly.
TechnicalExperimentationMediumHow would you design an A/B test for a new checkout button?
Reported at Amazon, Flipkart, Google, Microsoft
How would you design an A/B test for a new checkout button?
Reported at Amazon, Flipkart, Google, Microsoft
What they are checking: End-to-end experimental thinking.
Model answer
- Hypothesis: a bigger, green "Buy now" button will increase checkout completion.
- Primary metric: checkout conversion rate. Guardrail metrics: refund rate, page load time, average order value, to catch harmful side effects.
- Randomisation: split users (not sessions) randomly 50/50, so the same person always sees the same version.
- Sample size: calculate it before starting from the current conversion rate, the smallest lift worth detecting (say 2%), 95% confidence and 80% power.
- Duration: run whole weeks, usually at least two, to cover weekday and weekend behaviour.
- Analysis: check the split was actually 50/50, then test for significance. Don't stop early just because the result looks significant on day 3; peeking inflates false positives.
- Decision: ship if the primary metric improves significantly and no guardrail gets worse.
Likely follow-ups
- The result is significant but the lift is 0.1%. Ship it?
- What if mobile and desktop show opposite results?
TechnicalAnalysisMediumSales dropped 15% last month. How would you find out why?
Reported at Flipkart, Amazon, Deloitte
Sales dropped 15% last month. How would you find out why?
Reported at Flipkart, Amazon, Deloitte
What they are checking: Structured investigation instead of jumping to guesses.
Model answer
- Check the data first: is it a tracking bug, a missing data load or a change in definition? Many "drops" are pipeline problems.
- Check for expected causes: seasonality (compare with the same month last year), fewer days, a festival that moved, or a big sale in the previous month.
- Break revenue down: revenue = visitors × conversion rate × average order value. Find which factor moved.
- Segment the moving factor: by region, channel, device, product category, and new versus returning customers. A drop concentrated in one segment points to the cause.
- Look for internal changes: app releases, price changes, stock-outs, marketing budget cuts, payment failures.
- Look for external ones: competitor sales, news, regulation.
For example, if conversion fell only on Android after a release on the 10th, the next step is checking that release with the engineering team. I'd then quantify how much of the 15% each cause explains.
TechnicalProduct senseMediumWhat is your favourite product, and how would you improve it?
Reported at Google, Microsoft, Flipkart, Amazon
What is your favourite product, and how would you improve it?
Reported at Google, Microsoft, Flipkart, Amazon
What they are checking: Product thinking: users, problems and trade-offs, not just features you like.
Model answer
My favourite is Google Maps, specifically for commuting in Indian cities.
Why it works: it solves a daily, high-stakes problem (being late) for almost everyone, the live traffic data improves as more people use it, and features like two-wheeler mode show it was designed for Indian users, not just copied from the US.
One improvement: shared autos and local buses in tier-2 cities. In my hometown most people commute by shared auto, and Maps simply has no information on them.
- User: daily commuters in tier-2 cities without metro systems.
- Solution: let users mark shared-auto stands and routes, verified by others, as Maps already does for places.
- Success metric: increase in weekly active transit users in those cities, plus the share of route searches that end in a transit route.
- Risk: data quality. I'd launch in two cities first and only show routes confirmed by several users.
Tips
- Pick a product you actually use.
- Name a specific user segment and how you'd measure success.
TechnicalPrioritisationMediumYou have ten feature requests and capacity for three. How do you decide?
Reported at Flipkart, Microsoft
You have ten feature requests and capacity for three. How do you decide?
Reported at Flipkart, Microsoft
What they are checking: A structured, explainable framework tied to goals.
Model answer
First I check them against the team's current goal. If this quarter is about retention, a feature that brings new users ranks lower however exciting it is.
Then I score them with RICE:
- Reach: how many users it affects per month.
- Impact: how much it moves the goal for each user (3 = big, 2 = medium, 1 = low, 0.5 = minimal).
- Confidence: how sure we are of these estimates, as a percentage.
- Effort: person-months to build.
Score = Reach × Impact × Confidence ÷ Effort.
For example, a feature reaching 20,000 users, with impact 2, 80% confidence and 2 person-months, scores 16,000. Scores start the conversation, they don't end it. I'd also consider dependencies, quick wins and anything that is a legal requirement, and I'd explain to stakeholders why their request didn't make the cut.
TechnicalAnalyticalHardDaily active users of our app fell 10% this week. What do you do?
Reported at Google, Amazon, Flipkart, Microsoft
Daily active users of our app fell 10% this week. What do you do?
Reported at Google, Amazon, Flipkart, Microsoft
What they are checking: The classic root-cause question: calm, structured, hypothesis-driven.
Model answer
- Clarify: is it a sudden drop or gradual? Is it 10% compared with last week or the same week last year? How is a daily active user defined, and did that change?
- Rule out data issues: logging changes, a broken analytics SDK in a new release, delayed data.
- Check external causes: holidays, exams, a competitor launch, an outage at a cloud provider or app store.
- Segment: platform (Android/iOS/web), app version, country or city, new versus existing users, acquisition channel. If the drop is only in the latest Android version, it's probably a bug or crash.
- Walk the user journey: did app opens drop (a notification or marketing issue), or do users open but fail somewhere (a login or loading problem)?
- Check internal changes in the window: releases, experiments, pricing, notification changes.
Then I'd form a hypothesis, confirm it with data (such as crash rates for that version), fix or roll back, and set up an alert so we catch it faster next time.
TechnicalMetricsMediumHow would you measure the success of a new "Buy Now, Pay Later" option at checkout?
Reported at Amazon, Flipkart, Google
How would you measure the success of a new "Buy Now, Pay Later" option at checkout?
Reported at Amazon, Flipkart, Google
What they are checking: Choosing a north star metric plus guardrails.
Model answer
Goal: increase completed purchases without increasing financial risk.
- Primary metric: checkout conversion rate for users who are shown the option, compared with a control group.
- Supporting metrics: share of orders using pay-later, average order value (it often rises), repeat purchase rate.
- Guardrail metrics: default and late-payment rate, return and cancellation rate on pay-later orders, customer support complaints, and the cost per transaction charged by the lending partner.
I'd run it as an A/B test and segment results by new and existing users and by order value, because pay-later may help mostly on high-value items like phones. Success would be a meaningful lift in conversion while defaults stay within the threshold agreed with the risk team.
