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

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

I applied via Approached by Company and was interviewed in Sep 2021. There were 3 interview rounds.

Round 1 - Coding Test 

(1 Question)

  • Q1. Question was based on some gym application.You can get similar question on work@tech.
Round 2 - Coding Test 

It was a DSA based round.one easy question on array and the other one was leetcode medium to find maximum in every window of size K in array using sliding window.

Round 3 - HR 

(4 Questions)

  • Q1. Share details of your previous job.
  • Ans. 

    I worked as a Software Developer at XYZ Company.

    • Developed and maintained software applications using Java and Python.

    • Collaborated with a team of developers to design and implement new features.

    • Performed code reviews and debugging to ensure software quality.

    • Worked closely with clients to gather requirements and provide technical support.

    • Implemented unit tests and conducted system testing to identify and fix bugs.

    • Partici...

  • Answered by AI
  • Q2. Why are you looking for a change?
  • Ans. 

    Seeking new opportunities for professional growth and challenges.

    • Looking for a more challenging role

    • Want to work with new technologies

    • Seeking opportunities for career advancement

    • Desire to work in a different industry or domain

    • Want to join a company with a better work-life balance

  • Answered by AI
  • Q3. Tell me about yourself.
  • Ans. 

    I am a software developer with experience in multiple programming languages and a passion for problem-solving.

    • Experienced in Java, C++, and Python

    • Strong knowledge of data structures and algorithms

    • Worked on various projects including web development and mobile app development

    • Excellent problem-solving and analytical skills

  • Answered by AI
  • Q4. What are your strengths and weaknesses?
  • Ans. 

    My strengths include problem-solving, attention to detail, and teamwork. My weaknesses include time management and public speaking.

    • Strengths: problem-solving, attention to detail, teamwork

    • Weaknesses: time management, public speaking

  • Answered by AI

Interview Preparation Tips

Interview preparation tips for other job seekers - Practice machine coding problems from work@tech site.DSA question are standard normally.

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

I was interviewed in Mar 2021.

Round 1 - Video Call 

Round duration - 60 minutes
Round difficulty - Medium

This round was conducted on Google Meet with 2 interviewers present. They were helpful and made interview experience seemless.
The Time was around 10 A.M - 11 A.M.

Round 2 - Video Call 

(2 Questions)

Round duration - 60 minutes
Round difficulty - Medium

This round was conducted on Google Meet with 2 interviewers present. 
The time was around 2 PM to 3 PM.
The interviewers were friendly and helped if I got stuck.

  • Q1. 

    Trapping Rain Water Problem Statement

    You are given a long type array/list ARR of size N, representing an elevation map. The value ARR[i] denotes the elevation of the ith bar. Your task is to determine th...

  • Ans. 

    Calculate the total amount of rainwater that can be trapped between given elevations in an array.

    • Iterate through the array and calculate the maximum height on the left and right of each bar.

    • Calculate the amount of water that can be trapped at each bar by taking the minimum of the maximum heights on the left and right.

    • Sum up the trapped water at each bar to get the total trapped water for the entire array.

  • Answered by AI
  • Q2. 

    LRU Cache Design Question

    Design a data structure for a Least Recently Used (LRU) cache that supports the following operations:

    1. get(key) - Return the value of the key if it exists in the cache; otherw...

  • Ans. 

    Design a Least Recently Used (LRU) cache data structure that supports get and put operations with capacity constraint.

    • Use a combination of hashmap and doubly linked list to implement the LRU cache.

    • Keep track of the least recently used item and update it accordingly.

    • Ensure to handle the capacity constraint by evicting the least recently used item when the cache is full.

  • Answered by AI
Round 3 - HR 

Round duration - 30 minutes
Round difficulty - Easy

The round was held on Google meet face to face with only HR present.
HR explained me about the team, etc, made me feel comfortable.
HR was friendly and asked almost standard questions.

Interview Preparation Tips

Professional and academic backgroundI completed Software Engineering from Delhi Technological University. I applied for the job as SDE - 1 in BangaloreEligibility criteriaNoFlipkart interview preparation:Topics to prepare for the interview - Dynamic Programming, OOPS, Computer Network, Operating System, Game TheoryTime required to prepare for the interview - 3 monthsInterview preparation tips for other job seekers

Tip 1 : Prepare all Topics from Coding Ninjas of Course Competitive Programming. Also I practiced atleast one question everyday from sites like Leetcode,Interviewbit and also took part in Codeforces Contest.
Tip 2 : Do Competitive Programming regularly.

Application resume tips for other job seekers

Tip 1 : Keep your resume up to date and mention 2-3 good level projects which will give a good impression to the interviewer .
Tip 2 : Don't put false things on the resume.

Final outcome of the interviewSelected

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

I was interviewed in Nov 2020.

Round 1 - Coding Test 

(2 Questions)

Round duration - 60 minutes
Round difficulty - Easy

This round was held on Hackerearth from 2:00 PM to 3:00 PM
This round had 2 questions of easy/medium difficulty. Both were based on concepts of DP.
The use of offline IDE was prohibited so we were supposed to code it on Hackerearth IDE itself.

  • Q1. 

    Problem: Min Steps to One

    Your task is to determine and return the minimum number of steps required to reduce a given positive integer 'N' down to 1.

    You can perform one of the following three steps:

    1)...
  • Ans. 

    Find the minimum number of steps to reduce a positive integer to 1 using given operations.

    • Use dynamic programming to keep track of minimum steps for each number from 1 to N.

    • Consider all three possible operations for each number and choose the one with minimum steps.

    • Handle edge cases like when N is less than 1 or when N is not a positive integer.

  • Answered by AI
  • Q2. 

    Find the Longest Palindromic Substring

    Given a string ‘S’ composed of lowercase English letters, your task is to identify the longest palindromic substring within ‘S’.

    If there are multiple longest palin...

  • Ans. 

    Find the longest palindromic substring in a given string, returning the rightmost one if multiple exist.

    • Use dynamic programming to check for palindromes within the string.

    • Start by checking for palindromes of length 1 and 2, then expand to longer substrings.

    • Keep track of the longest palindrome found and its starting index.

    • Return the substring starting from the index of the longest palindrome found.

  • Answered by AI
Round 2 - Video Call 

(2 Questions)

Round duration - 45 minutes
Round difficulty - Medium

The round was held on Google Meet and I was given 2 coding problems for which first I had to explain my approach and then I had to write code in Shared Google Docs and dry run on sample test cases and discuss Time and Space Complexity.
There were 2 interviewers and both were very friendly and helpful and tried to bring us to our comfort level first.

  • Q1. 

    Pattern Matching Problem Statement

    Given a pattern as a string and a set of words, determine if the pattern and the words list align in the same sequence.

    Input:
    T (number of test cases)
    For each test ca...
  • Ans. 

    Given a pattern and a list of words, determine if the words align with the pattern.

    • Iterate through the pattern and words list simultaneously to check for alignment.

    • Use a hashmap to store the mapping between characters in the pattern and words.

    • Return 'True' if the mapping aligns with the order of characters in the pattern, else return 'False'.

  • Answered by AI
  • Q2. 

    Running Median Problem

    Given a stream of integers, calculate and print the median after each new integer is added to the stream.

    Output only the integer part of the median.

    Example:

    Input:
    N = 5  
    Stre...
  • Ans. 

    Calculate and print the median after each new integer is added to the stream.

    • Use two heaps - a max heap to store the smaller half of the numbers and a min heap to store the larger half.

    • Keep the sizes of the two heaps balanced to efficiently calculate the median.

    • If the total number of elements is odd, the median will be the top element of the max heap.

    • If the total number of elements is even, the median will be the avera

  • Answered by AI
Round 3 - Coding Test 

(3 Questions)

Round duration - 90 minutes
Round difficulty - Medium

This round was also virtual. It has some difficult questions when compared to the previous rounds.
This was also held on Google Meet with shared docs for writing code.
There were 2 interviewers and both were helpful.

  • Q1. 

    Shortest Alternate Colored Path Problem

    Given a directed graph consisting of 'N' nodes labeled from '0' to 'N-1'. Each edge in the graph is colored either 'red' or 'blue'. The graph may include self-edges...

  • Ans. 

    The task is to compute the shortest path from node '0' to each node in a directed graph with alternating colored edges.

    • Create a graph using the given red and blue edges.

    • Use Breadth First Search (BFS) to find the shortest path from node '0' to each node with alternating colored edges.

    • If no such path exists, set the length to -1.

    • Return the array of shortest path lengths for each node.

  • Answered by AI
  • Q2. 

    Spell Checker Problem Statement

    You are provided with a list of strings, DICTIONARY[], representing the correct spellings of words, and a query string QUERY that may contain misspelled words. Your task is...

  • Ans. 

    Implement a spell checker function that suggests correct spellings from a dictionary for a given query string.

    • Iterate through the dictionary to check for matching prefixes with the query string.

    • Return a list of suggestions if the query string is misspelled, otherwise return an empty list.

    • Handle multiple test cases by looping through each case independently.

  • Answered by AI
  • Q3. 

    The Skyline Problem

    Compute the skyline of given rectangular buildings in a 2D city, eliminating hidden lines and forming the outer contour of the silhouette when viewed from a distance. Each building is ...

  • Ans. 

    Compute the skyline of given rectangular buildings in a 2D city, eliminating hidden lines and forming the outer contour of the silhouette.

    • Iterate through the buildings and create a list of critical points (x, y) where the height changes.

    • Sort the critical points based on x-coordinate and process them to form the skyline.

    • Merge consecutive horizontal segments of equal height into one to ensure no duplicates in the output.

  • Answered by AI

Interview Preparation Tips

Professional and academic backgroundI applied for the job as SDE - 1 in HyderabadEligibility criteriaNeed 2 years work experienceFlipkart interview preparation:Topics to prepare for the interview - Data Structures - Trie, HashMap, Sets, Priority Queue, Stack, Advanced Topics like Fenwick Tree, Segment Trees, Game Theory, Dynamic Programming, Union Find, Graph Algorithms, BitmaskingTime required to prepare for the interview - 3 monthsInterview preparation tips for other job seekers

Tip 1 : Bookmark the GFG Google Archives. It helped me a lot during my preparations. Reading other’s interview experiences is one of the best ways to get yourselves ready for the next job interview. Practice daily atleast 5 questions.
Tip 2 : Most commonly asked topics in Google Interviews ( as per the mail I received from my recruiter ) :
BFS/DFS/Flood fill, Binary Search, Tree traversals, Hash tables, Linked list, stacks, queues, two pointers/sliding window
Binary heaps, Ad hoc/string manipulations.
Tip 3 : Highly recommended sites for practicing questions ( usually practice medium and hard level questions) :
Leetcode (highly encouraged)
Geeksforgeeks (highly encouraged)
CodeZen( highly encouraged)
Codeforces
Tip 4 : This is a great bigocheatsheet that could be of great help

Application resume tips for other job seekers

Tip 1 : Mention past working experience in detail as how you were important to your previous company.
Tip 2 : Try to keep your resume to 1 page if work experience < 5 years
Tip 3 : Update your resume according to role you are applying for and never put false things on resume.

Final outcome of the interviewSelected

Skills evaluated in this interview

I applied via Campus Placement and was interviewed in Jan 2021. There was 1 interview round.

Interview Questionnaire 

1 Question

  • Q1. Heavily focused on DSA with emphasis on DP

Interview Preparation Tips

Interview preparation tips for other job seekers - PrepLook at previous years Flipkart Questions on GFG. Questions don't repeat but you will see the tyes of questions they will ask

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)

I was interviewed before Jan 2021.

Round 1 - Video Call 

(2 Questions)

Round duration - 60 Minutes
Round difficulty - Medium

The round was held on Google Meet and I was given 2 coding problems for which first I had to explain my approach and then I had to write code in Shared Google Docs and dry run on sample test cases and discuss Time and Space Complexity.

  • Q1. 

    Validate BST Problem Statement

    Given a binary tree with N nodes, determine whether the tree is a Binary Search Tree (BST). If it is a BST, return true; otherwise, return false.

    A binary search tree (BST)...

  • Ans. 

    Validate if a given binary tree is a Binary Search Tree (BST) or not.

    • Check if the left subtree of a node contains only nodes with data less than the node's data.

    • Check if the right subtree of a node contains only nodes with data greater than the node's data.

    • Recursively check if both left and right subtrees are also binary search trees.

  • Answered by AI
  • Q2. 

    Maximum Sum Path from Leaf to Root

    Given a binary tree with 'N' nodes, identify the path from a leaf node to the root node that has the maximum sum among all root-to-leaf paths.

    Example:

    All the possibl...

  • Ans. 

    Find the path from a leaf node to the root node with the maximum sum in a binary tree.

    • Traverse the binary tree from leaf to root while keeping track of the sum of each path.

    • Compare the sums of all paths and return the path with the maximum sum.

    • Use recursion to traverse the tree efficiently and keep updating the maximum sum path.

  • Answered by AI
Round 2 - Video Call 

(3 Questions)

Round duration - 60 Minutes
Round difficulty - Medium

This was also a Data Structures and Algorithms round where I was asked to solve 2 coding problems explaining my approach with proper Complexity Analysis . After the coding questions were over there was some time left so the interviewer asked me some concepts related to DBMS.

  • Q1. 

    Next Permutation Problem Statement

    You are given a permutation of 'N' integers. A sequence of 'N' integers is considered a permutation if it includes all integers from 1 to 'N' exactly once. Your task is ...

  • Ans. 

    The task is to rearrange a given permutation of 'N' integers to form the lexicographically next greater permutation.

    • Iterate from right to left to find the first element that is smaller than the element to its right.

    • Swap this element with the smallest element to its right that is greater than it.

    • Reverse the elements to the right of the swapped element to get the lexicographically next greater permutation.

  • Answered by AI
  • Q2. 

    Largest BST Subtree Problem Statement

    You are given a binary tree with 'N' nodes. Your task is to determine the size of the largest subtree within the binary tree which is also a Binary Search Tree (BST).

    ...
  • Ans. 

    Find the size of the largest subtree in a binary tree that is also a Binary Search Tree.

    • Traverse the tree in a bottom-up manner to check if each subtree is a BST.

    • Keep track of the size of the largest BST subtree encountered so far.

    • Use recursion to solve this problem efficiently.

    • Example: For the input 1 2 3 4 -1 5 6 -1 7 -1 -1 -1 -1 -1 -1, the largest BST subtree has a size of 3.

  • Answered by AI
  • Q3. Can you explain indexing in databases?
  • Ans. 

    Indexing in databases is a technique used to improve the speed of data retrieval by creating a data structure that allows for quick lookups.

    • Indexes are created on columns in a database table to speed up the retrieval of rows that match a certain condition.

    • Types of indexes include B-tree, hash, and bitmap indexes.

    • Indexes can improve the performance of SELECT queries but may slow down INSERT, UPDATE, and DELETE operation...

  • Answered by AI
Round 3 - Video Call 

(2 Questions)

Round duration - 50 Minutes
Round difficulty - Medium

This round also had 2 questions related to DS and Algo . One was from graphs and the other was an implementation of a LRU Cache . There were 2 interviewers and both of them were quite friendly and helpful. Overall, this round went well.

  • Q1. 

    Detect Cycle in a Directed Graph

    You are provided with a directed graph composed of 'N' nodes. You have a matrix called 'EDGES' with dimensions M x 2, which specifies the 'M' edges in the graph. Each edge...

  • Ans. 

    Detect cycle in a directed graph using depth-first search (DFS) algorithm.

    • Use DFS to traverse the graph and detect back edges (edges that point to an ancestor node).

    • Maintain a visited array to keep track of visited nodes and a recursion stack to keep track of nodes in the current path.

    • If a back edge is found during traversal, a cycle exists in the graph.

    • Return true if a cycle is detected, false otherwise.

  • Answered by AI
  • Q2. 

    LRU Cache Design Question

    Design a data structure for a Least Recently Used (LRU) cache that supports the following operations:

    1. get(key) - Return the value of the key if it exists in the cache; otherw...

  • Ans. 

    Design a Least Recently Used (LRU) cache data structure that supports get and put operations with capacity constraint.

    • Use a combination of hashmap and doubly linked list to efficiently implement the LRU cache.

    • Keep track of the least recently used item and update it accordingly when inserting new items.

    • Ensure to handle the capacity constraint by evicting the least recently used item when the cache is full.

    • Implement get(...

  • Answered by AI

Interview Preparation Tips

Eligibility criteriaAbove 7 CGPAFlipkart interview preparation:Topics to prepare for the interview - Data Structures, Algorithms, System Design, Aptitude, OOPSTime required to prepare for the interview - 4 MonthsInterview preparation tips for other job seekers

Tip 1 : Must do Previously asked Interview as well as Online Test Questions.
Tip 2 : Go through all the previous interview experiences from Codestudio and Leetcode.
Tip 3 : Do at-least 2 good projects and you must know every bit of them.

Application resume tips for other job seekers

Tip 1 : Have at-least 2 good projects explained in short with all important points covered.
Tip 2 : Every skill must be mentioned.
Tip 3 : Focus on skills, projects and experiences more.

Final outcome of the interviewSelected

Skills evaluated in this interview

Get interview-ready with Top Flipkart Interview Questions

I was interviewed before Jan 2021.

Round 1 - Face to Face 

(3 Questions)

Round duration - 60 Minutes
Round difficulty - Medium

This was a typical DS/Algo where I was asked to solve two questions related to Binary Trees and write the pseudo code for both of them followed by some theoretical questions related to Operating Systems.

  • Q1. 

    K-th Largest Number in a BST

    Given a binary search tree (BST) consisting of integers and containing 'N' nodes, your task is to find and return the K-th largest element in this BST.

    If there is no K-th la...

  • Ans. 

    Find the K-th largest element in a BST.

    • Perform reverse in-order traversal of the BST to find the K-th largest element.

    • Keep track of the count of visited nodes to determine the K-th largest element.

    • Return -1 if there is no K-th largest element in the BST.

  • Answered by AI
  • Q2. 

    Is Height Balanced Binary Tree Problem Statement

    Determine if the given binary tree is height-balanced. A tree is considered height-balanced when:

    1. The left subtree is balanced.
    2. The right subtree is bala...
  • Ans. 

    Determine if a given binary tree is height-balanced by checking if left and right subtrees are balanced and their height difference is at most 1.

    • Check if the left subtree is balanced

    • Check if the right subtree is balanced

    • Calculate the height difference between the left and right subtrees

    • Return 'True' if all conditions are met, otherwise return 'False'

  • Answered by AI
  • Q3. Can you explain the concepts of Zombie Process and Orphan Process in operating systems?
  • Ans. 

    Zombie process is a terminated process that has completed execution but still has an entry in the process table. Orphan process is a process whose parent process has terminated.

    • Zombie process is created when a child process completes execution but its parent process has not yet read its exit status.

    • Zombie processes consume system resources and should be cleaned up by the parent process using wait() system call.

    • Orphan p...

  • Answered by AI
Round 2 - Face to Face 

(3 Questions)

Round duration - 60 Minutes
Round difficulty - Medium

This was also a Data Structures and Algorithm round where I was asked to solve 3 medium to hard level problems along with their pseudo code within 60 minutes .

  • Q1. 

    Longest Substring Without Repeating Characters Problem Statement

    Given a string S of length L, determine the length of the longest substring that contains no repeating characters.

    Example:

    Input:
    "abac...
  • Ans. 

    Find the length of the longest substring without repeating characters in a given string.

    • Use a sliding window approach to keep track of the longest substring without repeating characters.

    • Use a hashmap to store the index of each character in the string.

    • Update the start index of the window when a repeating character is found.

    • Calculate the maximum length of the window as you iterate through the string.

    • Return the maximum le

  • Answered by AI
  • Q2. 

    Problem: Search In Rotated Sorted Array

    Given a sorted array that has been rotated clockwise by an unknown amount, you need to answer Q queries. Each query is represented by an integer Q[i], and you must ...

  • Ans. 

    Search for integers in a rotated sorted array efficiently.

    • Use binary search to efficiently search for integers in the rotated sorted array.

    • Handle the rotation of the array while performing binary search.

    • Return the index of the integer if found, else return -1.

  • Answered by AI
  • Q3. 

    Count Subarrays with Sum Divisible by K

    Given an array ARR and an integer K, your task is to count all subarrays whose sum is divisible by the given integer K.

    Input:

    The first line of input contains an...
  • Ans. 

    Count subarrays with sum divisible by K in an array.

    • Iterate through the array and keep track of the prefix sum modulo K.

    • Use a hashmap to store the frequency of each prefix sum modulo K.

    • For each prefix sum, increment the count by the frequency of (prefix sum - K) modulo K.

    • Handle the case when prefix sum itself is divisible by K.

    • Return the total count of subarrays with sum divisible by K.

  • Answered by AI
Round 3 - Face to Face 

(2 Questions)

Round duration - 50 Minutes
Round difficulty - Medium

In this round , I was asked to code a simple question related to BST . After that I was asked the internal implementation of a Hash Map where I was supposed to design a Hash Map using any of the Hashing Algorithms that I know . This was preety challenging for me but I got to learn so much from it.

  • Q1. 

    Ceil Value from BST Problem Statement

    Given a Binary Search Tree (BST) and an integer, write a function to return the ceil value of a particular key in the BST.

    The ceil of an integer is defined as the s...

  • Ans. 

    Ceil value of a key in a Binary Search Tree (BST) is found by returning the smallest integer greater than or equal to the given number.

    • Traverse the BST to find the closest value greater than or equal to the key.

    • Compare the key with the current node value and update the ceil value accordingly.

    • Recursively move to the left or right subtree based on the comparison.

    • Return the ceil value once the traversal is complete.

  • Answered by AI
  • Q2. 

    Design a Constant Time Data Structure

    Create a data structure that maintains mappings between keys and values, supporting the following operations in constant time:

    1. INSERT(key, value): Add or update t...
  • Ans. 

    Design a constant time data structure to maintain mappings between keys and values with various operations.

    • Use a hash table to achieve constant time complexity for INSERT, DELETE, SEARCH, and GET operations.

    • Keep track of the number of key-value pairs for GET_SIZE operation.

    • Check if the hash table is empty for IS_EMPTY operation.

    • Return true or false for SEARCH operation based on key existence.

    • Return the value associated...

  • Answered by AI

Interview Preparation Tips

Eligibility criteriaAbove 7 CGPAFlipkart interview preparation:Topics to prepare for the interview - Data Structures, Algorithms, System Design, Aptitude, OOPSTime required to prepare for the interview - 4 MonthsInterview preparation tips for other job seekers

Tip 1 : Must do Previously asked Interview as well as Online Test Questions.
Tip 2 : Go through all the previous interview experiences from Codestudio and Leetcode.
Tip 3 : Do at-least 2 good projects and you must know every bit of them.

Application resume tips for other job seekers

Tip 1 : Have at-least 2 good projects explained in short with all important points covered.
Tip 2 : Every skill must be mentioned.
Tip 3 : Focus on skills, projects and experiences more.

Final outcome of the interviewSelected

Skills evaluated in this interview

I was interviewed before Jan 2021.

Round 1 - Coding Test 

(3 Questions)

Round duration - 90 Minutes
Round difficulty - Hard

I found the online coding round of Flipkart to be quite difficult based on the constraints of the problem and their time limits. I coded the first problem quite easily but on the second and the third problem , my code could only pass a few test cases and gave TLE for most of them. Both the questions required very efficient solution and the last 5 to 10 Test Cases carried more weight than the rest so I didn't get through this round.

  • Q1. 

    Print the Kth Digit

    Given three non-negative integers N, M, and K, compute the Kth digit from the right in the number obtained from N raised to the power M (i.e., N ^ M).

    Input:

    The first line contains ...
  • Ans. 

    The task is to find the Kth digit from the right in the number obtained from N raised to the power M.

    • Iterate through the digits of N^M from right to left

    • Keep track of the position of the current digit

    • Return the digit at position K from the right

  • Answered by AI
  • Q2. 

    The Skyline Problem

    Compute the skyline of given rectangular buildings in a 2D city, eliminating hidden lines and forming the outer contour of the silhouette when viewed from a distance. Each building is ...

  • Ans. 

    Compute the skyline of given rectangular buildings in a 2D city, eliminating hidden lines and forming the outer contour of the silhouette.

    • Iterate through the buildings and create a list of critical points (x, y) where the height changes.

    • Sort the critical points based on x-coordinate and process them to form the skyline.

    • Merge consecutive horizontal segments of equal height into one to ensure no duplicates.

    • Return the fin...

  • Answered by AI
  • Q3. 

    Longest Palindromic Substring Problem Statement

    You are provided with a string STR of length N. The goal is to identify the longest palindromic substring within this string. In cases where multiple palind...

  • Ans. 

    Identify the longest palindromic substring in a given string.

    • Iterate through the string and expand around each character to find palindromes

    • Keep track of the longest palindrome found

    • Return the longest palindrome with the smallest start index

  • Answered by AI

Interview Preparation Tips

Eligibility criteriaAbove 7 CGPAFlipkart interview preparation:Topics to prepare for the interview - Data Structures, Algorithms, System Design, Aptitude, OOPSTime required to prepare for the interview - 3 monthsInterview preparation tips for other job seekers

Tip 1 : Must do Previously asked Interview as well as Online Test Questions.
Tip 2 : Go through all the previous interview experiences from Codestudio and Leetcode.
Tip 3 : Do at-least 2 good projects and you must know every bit of them.

Application resume tips for other job seekers

Tip 1 : Have at-least 2 good projects explained in short with all important points covered.
Tip 2 : Every skill must be mentioned.
Tip 3 : Focus on skills, projects and experiences more.

Final outcome of the interviewRejected

Skills evaluated in this interview

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

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

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

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

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