Upload Button Icon Add office photos
Engaged Employer

i

This company page is being actively managed by Flipkart Team. If you also belong to the team, you can get access from here

Flipkart Verified Tick

Compare button icon Compare button icon Compare

Proud winner of ABECA 2024 - AmbitionBox Employee Choice Awards

zig zag pattern zig zag pattern

Filter interviews by

Clear (1)

Flipkart Software Developer Interview Questions, Process, and Tips

Updated 2 Dec 2024

Top Flipkart Software Developer Interview Questions and Answers

  • Q1. Search In Rotated Sorted Array Problem Statement Given a sorted array of distinct integers that has been rotated clockwise by an unknown amount, you need to search for a ...read more
  • Q2. Missing Number Problem Statement You are provided with an array named BINARYNUMS consisting of N unique strings. Each string represents an integer in binary, covering ev ...read more
  • Q3. Smallest Window Problem Statement Given two strings S and X containing random characters, the task is to find the smallest substring in S which contains all the characte ...read more
View all 81 questions

Flipkart Software Developer Interview Experiences

35 interviews found

Interview Questionnaire 

9 Questions

  • Q1. A sentence is given which contains lowercase English letters and spaces. It may contain multiple spaces. Get first letter of every word and return the result as a string. The result should not contain any ...
  • Q2. Find Nth largest element in the BST
  • Ans. 

    Find Nth largest element in the BST

    • Traverse the BST in reverse inorder and keep track of count

    • If count equals N, return the current node's value

    • If count exceeds N, stop traversing and return null

    • If count is less than N, continue traversing

  • Answered by AI
  • Q3. Given a BST, find the node which contains the value which is equal to or greater than the input value?
  • Ans. 

    Find node in BST with value equal to or greater than input value.

    • Start at root node

    • If input value is less than current node value, move to left child

    • If input value is greater than or equal to current node value, move to right child

    • Repeat until node with desired value is found or null is reached

  • Answered by AI
  • Q4. Write a program to check if a binary tree is balanced
  • Ans. 

    Program to check if a binary tree is balanced

    • Calculate height of left and right subtrees recursively

    • Check if the difference in height is not more than 1

    • Repeat for all nodes in the tree

    • Time complexity: O(nlogn) or O(n)

    • Space complexity: O(h) where h is the height of the tree

  • Answered by AI
  • Q5. Given s string, Find max size of a sub-string, in which no duplicate chars present?
  • Ans. 

    Find max size of a sub-string with no duplicate characters in a given string.

    • Use a sliding window approach with two pointers.

    • Maintain a hash set to keep track of unique characters.

    • Update the maximum length of the substring as you iterate through the string.

  • Answered by AI
  • Q6. What is a hash table? Explain how they work (hash function and buckets)?
  • Ans. 

    A hash table is a data structure that stores key-value pairs and uses a hash function to map keys to buckets.

    • Hash function takes a key and returns an index to a bucket

    • Collisions occur when multiple keys map to the same bucket

    • Collision resolution techniques include chaining and open addressing

    • Example: Dictionary in Python uses hash tables to store key-value pairs

  • Answered by AI
  • Q7. WAP to find a continuous subset whose sum is divisible by 7. We are given a array of number (-ve and +ve). calculate the complexity of your algorithm?
  • Ans. 

    WAP to find a continuous subset divisible by 7 from an array of numbers. Calculate algorithm complexity.

    • Iterate through the array and calculate the prefix sum modulo 7 at each index.

    • Store the prefix sum modulo 7 in a hash table with the index as the value.

    • If a prefix sum modulo 7 is already in the hash table, the subarray between the two indices has a sum divisible by 7.

    • Time complexity is O(n) and space complexity is O

  • Answered by AI
  • Q8. Given a 2-dimensional array of integers, find the value 1 in the array, and set all those rows, and columns to 1, which contains one of the values as 1
  • Ans. 

    Given a 2D array of integers, set rows and columns to 1 if they contain 1.

    • Iterate through the array to find the index of 1

    • Use two arrays to keep track of rows and columns with 1

    • Iterate through the rows and columns arrays to set values to 1

  • Answered by AI
  • Q9. How to find a number in a rotated sorted array. He was looking for the binary search kind of solution?

Interview Preparation Tips

General Tips: Flipkart Interview Process :-Telephonic Round : 1F2F : 3 Rounds
Skills: Data structure, Algorithm
College Name: NA

Skills evaluated in this interview

Sopra Steria

Success to our employee's well-being? A work-life balance that's simply unbeatable.

Our employees have rated us 4 for Work-Life Balance on AmbitionBox

Interview Questionnaire 

9 Questions

  • Q1. Write code to find sum of two numbers stored as linked list.(LSB at last node) and head of each list is given
  • Ans. 

    Code to find sum of two numbers stored as linked list.

    • Traverse both lists simultaneously and add corresponding nodes

    • Keep track of carry and add it to next sum

    • Create a new node for each sum and move to next node

  • Answered by AI
  • Q2. Write code to print elements on the path from root to leaf node having the maximum sum
  • Ans. 

    Code to print elements on path from root to leaf node with max sum

    • Traverse the tree and keep track of the maximum sum path

    • Use recursion to traverse the tree

    • Print the path when a leaf node with maximum sum is reached

  • Answered by AI
  • Q3. What is the complexity of retrieving min element from a max heap
  • Ans. 

    Retrieving min element from a max heap has a time complexity of O(log n).

    • The min element is always the leftmost leaf node in the last level of the heap.

    • To retrieve it, swap it with the last element in the heap and remove it.

    • Then, bubble down the new root to maintain the max heap property.

    • Examples: retrieving the smallest number in a priority queue implemented as a max heap.

    • Examples: retrieving the smallest element in a

  • Answered by AI
  • Q4. Which is the fastet method to sort an almost sorted array: quick sort,bubble sort,merge sort,shell sort
  • Ans. 

    The fastest method to sort an almost sorted array is shell sort.

    • Shell sort has a time complexity of O(n log n) which is faster than bubble sort and insertion sort.

    • Quick sort and merge sort have a time complexity of O(n log n) but they are not optimized for almost sorted arrays.

    • Shell sort works by comparing elements that are far apart first and then gradually reducing the gap between them.

    • Example: If the array is [1, 3,...

  • Answered by AI
  • Q5. Tell about zombie process?
  • Ans. 

    A zombie process is a process that has completed execution but still has an entry in the process table.

    • Zombie processes occur when a parent process does not properly wait for its child process to terminate.

    • The zombie process remains in the process table until the parent process reads its exit status.

    • Zombie processes do not consume system resources but can accumulate if not properly handled.

    • They can be identified using ...

  • Answered by AI
  • Q6. Complexities on hash table?
  • Ans. 

    Hash tables have complexities related to collisions, resizing, and choosing a good hash function.

    • Collisions occur when two keys map to the same index, requiring a collision resolution strategy.

    • Resizing can be expensive as all elements need to be rehashed and moved to new locations.

    • Choosing a good hash function is important to minimize collisions and ensure even distribution of keys.

    • Examples of collision resolution stra...

  • Answered by AI
  • Q7. Reverse linked list and a few questions on tress and dynamic prog and aptitude testing?
  • Q8. Given an array find any three numbers which sum to zero. Give the best algorithm?
  • Ans. 

    Algorithm to find any three numbers in an array that sum to zero.

    • Sort the array in ascending order.

    • Loop through the array and fix the first number.

    • Use two pointers to find the other two numbers that sum to the negative of the fixed number.

    • If found, return the three numbers.

    • If not found, move to the next number and repeat the process.

    • Time complexity: O(n^2)

  • Answered by AI
  • Q9. Given a BST, how would you return the kth smallest element. Cover all the corner cases with time complexity logn?
  • Ans. 

    Returning kth smallest element in a BST with time complexity logn.

    • Perform in-order traversal and keep track of count until kth element is reached

    • If kth element is found, return it

    • If kth element is not found, continue traversal

    • If traversal is complete and kth element is not found, return null

    • Time complexity is logn as we only traverse the height of the tree

  • Answered by AI

Interview Preparation Tips

Skills: Programming, Algorithm
College Name: NA

Skills evaluated in this interview

Software Developer Interview Questions Asked at Other Companies

asked in Amazon
Q1. Maximum Subarray Sum Problem Statement Given an array of integers ... read more
asked in Amazon
Q2. Minimum Number of Platforms Needed Problem Statement You are give ... read more
asked in Rakuten
Q3. Merge Two Sorted Arrays Problem Statement Given two sorted intege ... read more
asked in Cognizant
Q4. Nth Fibonacci Number Problem Statement Calculate the Nth term in ... read more
Q5. Find Duplicate in Array Problem Statement You are provided with a ... read more

Interview Questionnaire 

7 Questions

  • Q1. Check whether given Binary Tree is a Binary Search Tree. Discuss various approaches?
  • Ans. 

    Check if a Binary Tree is a Binary Search Tree

    • Inorder traversal of BST should be in ascending order

    • Check if left child is less than parent and right child is greater than parent

    • Recursively check left and right subtrees

    • Use min and max values to check if nodes are within valid range

  • Answered by AI
  • Q2. Given a large list of numbers in a file and a very small amount of memory, sort the file
  • Ans. 

    Sort a large file of numbers with limited memory

    • Use external sorting algorithms like merge sort or quick sort

    • Divide the file into smaller chunks that can fit into memory

    • Sort each chunk and merge them together using a priority queue

    • Consider using disk-based sorting techniques like replacement selection

    • Optimize I/O operations to minimize disk access

  • Answered by AI
  • Q3. Implement a phone book. You can search either by name or phone number. You can search by prefix also. Write whole code with proper syntax
  • Ans. 

    Implement a phone book with search by name or phone number and prefix.

    • Create an array of strings to store contacts

    • Implement a function to add contacts to the array

    • Implement a function to search by name or phone number

    • Implement a function to search by prefix

    • Use regular expressions to match prefixes

  • Answered by AI
  • Q4. Given an array of integers, find Pythagorean triplets. i.e. find a,b and c which satisfies a^2 + b^2 = c^2. Integers could be positive or negative
  • Ans. 

    Find Pythagorean triplets in an array of integers.

    • Loop through the array and pick two numbers at a time.

    • Calculate the sum of squares of the two numbers.

    • Check if the sum is a perfect square.

    • If yes, then it is a Pythagorean triplet.

    • Repeat until all possible combinations are checked.

  • Answered by AI
  • Q5. Given a number, compute the nearest palindrome number. This palindrome number should be greater than given number
  • Ans. 

    Compute the nearest palindrome number greater than given number.

    • Convert the given number to string and reverse it.

    • Add the reversed string to the original number and check if it's a palindrome.

    • If not, repeat the process until a palindrome is found.

    • If the original number is already a palindrome, add 1 to it and repeat the process.

  • Answered by AI
  • Q6. Given two string str and pat. Find minimum window in str which contains all characters from string pat
  • Ans. 

    Find minimum window in a string which contains all characters from another string.

    • Use a sliding window approach

    • Create a frequency map of characters in pat

    • Iterate through str and update frequency map

    • Keep track of minimum window that contains all characters

    • Return minimum window

  • Answered by AI
  • Q7. Input : 4 jars and 50 balls of different colors (Red, Green, Yellow, Blue) where each jar can contain a maximum of 100 balls.Problem : When a user draws a red ball he loses his money while if he draws a ba...
  • Ans. 

    Arrange balls in 4 jars to maximize probability of user losing money when drawing a red ball.

    • Place all red balls in one jar and the rest in the other jars

    • Ensure that the jar with red balls has the highest probability of being chosen

    • Randomize the placement of the jars to add an element of chance

  • Answered by AI

Interview Preparation Tips

Round: Test
Experience: It was online coding round on interview street. (1Hr)
Duration: 60 minutes

Skill Tips: The technical questions asked mostly deal with data structures and common algorithms
Skills: Data structures, Algorithm
College Name: NA

Skills evaluated in this interview

Interview Questionnaire 

7 Questions

  • Q1. Write a code to check if a tree is BST or not
  • Ans. 

    Code to check if a tree is BST or not

    • Check if left subtree is BST

    • Check if right subtree is BST

    • Check if max value in left subtree is less than root

    • Check if min value in right subtree is greater than root

  • Answered by AI
  • Q2. Modify this code to find the maximum subtree in tree which is a BST. Maximum subtree means subtree goes upto its leaves from any node. Modify the code again to find the maximum tree which is a BST. BST can...
  • Ans. 

    Modify code to find maximum BST subtree and maximum BST tree in a given tree.

    • Create a function to check if a given tree is a BST

    • Traverse the tree and check if each subtree is a BST

    • Keep track of the maximum BST subtree found so far

    • To find maximum BST tree, check if each node can be the root of a BST

    • Keep track of the maximum BST tree found so far

  • Answered by AI
  • Q3. There is code like var i; { .. var j; .. } var k; .. var a; { .. var c; { var i; } .. var d; .. } For simplicity you may assume that there is only one variable declaration on 1 line. Now given a line numbe...
  • Ans. 

    Algorithm to determine valid variables on a given line of code.

    • Create a stack to keep track of variable declarations

    • Traverse the code line by line

    • When encountering a variable declaration, push it onto the stack

    • When encountering a closing brace, pop all variables declared within that scope

    • Return all variables still on the stack when reaching the given line number

  • Answered by AI
  • Q4. Implement LRU cache. Write a code for this. LRU cache supports 3 operations, put(key, value) get(key) remove(key)
  • Ans. 

    Implement LRU cache with put, get, and remove operations.

    • LRU stands for Least Recently Used.

    • The cache should have a maximum capacity.

    • When the cache is full, the least recently used item should be removed.

    • When an item is accessed, it should be moved to the front of the cache.

    • Use a doubly linked list and a hash map to implement the cache efficiently.

  • Answered by AI
  • Q5. Implement next_permutation function (similar to what is in algorithm.h)
  • Ans. 

    next_permutation function generates the next greater lexicographic permutation of a sequence

    • The function modifies the sequence to its next permutation if possible

    • If the sequence is already the largest permutation, it rearranges it to the smallest permutation

    • The function returns true if a next permutation exists, else false

    • The sequence must be sorted in non-descending order before calling the function

  • Answered by AI
  • Q6. Given n sequences, and starting and stopping point of every sequence with its score. For eg. no of sequences = 5 start stop score 0 4 4 3 10 11 6 8 8 7 15 10 11 15 4 All scores are positive. You have to fi...
  • Ans. 

    Given n sequences with start, stop and score, find maximum subset of non-overlapping sequences with maximum total score.

    • Sort the sequences by their end points.

    • Use dynamic programming to find the maximum sum of non-overlapping sequences.

    • Keep track of the previous non-overlapping sequence with maximum sum.

    • Return the maximum sum and the corresponding non-overlapping sequences.

  • Answered by AI
  • Q7. Normal discussion on work culture, teams etc

Interview Preparation Tips

Round: Technical Interview
Experience: Implement LRU cache. Write a code for this. LRU cache supports 3 operations,
put(key, value)
get(key)
remove(key)
P.S. This is very important and actually good question. Even if you know the answer, dont rush with it. Take your time to frame the algorithm. Always speak your thoughts. Interviewers like to know the way you are thinking in.
Q3. WAP to get the next higher palindrome of a given number.
123 -> 131 1232 -> 1331

Skills: data structure, Algorithm
College Name: NA

Skills evaluated in this interview

Flipkart interview questions for designations

 Software Developer Intern

 (6)

 Software Developer II

 (3)

 Senior Software Developer

 (1)

 Software Engineer

 (9)

 UI Developer

 (4)

 SQL Developer

 (1)

 Backend Developer

 (1)

 Application Developer

 (1)

Interview Questionnaire 

1 Question

  • Q1. What do u want us to do fr u??
  • Ans. 

    I want you to provide me with challenging software development projects that will help me grow as a developer.

    • Challenging projects that will push my skills to the limit

    • Opportunities to learn new technologies and programming languages

    • Collaborative work environment with experienced developers

    • Clear communication and feedback on my work

    • Opportunities for career growth and advancement

  • Answered by AI

Interview Preparation Tips

Round: Technical Interview
Experience: Pay me high!!
Tips: Never say something like that!!

Skill Tips: Develop codes
Skills: Programming
College Name: IIT BOMBAY

Get interview-ready with Top Flipkart Interview Questions

Contribute & help others!
anonymous
You can choose to be anonymous

Flipkart Interview FAQs

How many rounds are there in Flipkart Software Developer interview?
Flipkart interview process usually has 1-2 rounds. The most common rounds in the Flipkart interview process are Coding Test, Technical and HR.
How to prepare for Flipkart Software Developer interview?
Go through your CV in detail and study all the technologies mentioned in your CV. Prepare at least two technologies or languages in depth if you are appearing for a technical interview at Flipkart. The most common topics and skills that interviewers at Flipkart expect are Algorithms, Data Structures, Microservices and System Design.
What are the top questions asked in Flipkart Software Developer interview?

Some of the top questions asked at the Flipkart Software Developer interview -

  1. Modify this code to find the maximum subtree in tree which is a BST. Maximum su...read more
  2. There is code like var i; { .. var j; .. } var k; .. var a; { .. var c; { var i...read more
  3. Input : 4 jars and 50 balls of different colors (Red, Green, Yellow, Blue) wher...read more
How long is the Flipkart Software Developer interview process?

The duration of Flipkart Software Developer interview process can vary, but typically it takes about less than 2 weeks to complete.

Recently Viewed

REVIEWS

Flipkart

No Reviews

REVIEWS

Tata AIA Life Insurance

No Reviews

REVIEWS

Infosys

No Reviews

INTERVIEWS

HDFC Life

No Interviews

SALARIES

Infosys

INTERVIEWS

Flipkart

No Interviews

REVIEWS

Infosys

No Reviews

REVIEWS

Infosys

No Reviews

REVIEWS

Flipkart

No Reviews

REVIEWS

Flipkart

No Reviews

Tell us how to improve this page.

Flipkart Software Developer Interview Process

based on 15 interviews

4 Interview rounds

  • Coding Test Round
  • Video Call Round
  • HR Round
  • Aptitude Test Round
View more

HCLTech

A more secure future awaits you

Flipkart Software Developer Salary
based on 218 salaries
₹10 L/yr - ₹40 L/yr
195% more than the average Software Developer Salary in India
View more details

Flipkart Software Developer Reviews and Ratings

based on 30 reviews

3.4/5

Rating in categories

3.4

Skill development

3.5

Work-life balance

3.1

Salary

3.6

Job security

3.3

Company culture

2.8

Promotions

3.2

Work satisfaction

Explore 30 Reviews and Ratings
Senior Executive
2.7k salaries
unlock blur

₹0 L/yr - ₹0 L/yr

Operations Executive
1.8k salaries
unlock blur

₹0 L/yr - ₹0 L/yr

Team Lead
1.8k salaries
unlock blur

₹0 L/yr - ₹0 L/yr

Assistant Manager
1.5k salaries
unlock blur

₹0 L/yr - ₹0 L/yr

Executive
1.3k salaries
unlock blur

₹0 L/yr - ₹0 L/yr

Explore more salaries
Compare Flipkart with

Amazon

4.1
Compare

Myntra

4.0
Compare

Snapdeal

3.8
Compare

Meesho

3.7
Compare
Did you find this page helpful?
Yes No
write
Share an Interview
Rate your experience using AmbitionBox
Terrible
Terrible
Poor
Poor
Average
Average
Good
Good
Excellent
Excellent