Add office photos
Flipkart logo
Engaged Employer

Flipkart

Verified
4.0
based on 10.8k Reviews
Video summary
Proud winner of ABECA 2024 - AmbitionBox Employee Choice Awards
Filter interviews by
Software Developer Intern
Fresher
Clear (1)

10+ Flipkart Software Developer Intern Interview Questions and Answers

Updated 18 Jun 2024

Q1. Longest Decreasing Subsequence Problem Statement

Given an array/list of integers ARR consisting of N integers, your task is to determine the length of the longest decreasing subsequence.

Explanation:

A subseque...read more

Ans.

Find the length of the longest decreasing subsequence in an array of integers.

  • Use dynamic programming to keep track of the length of the longest decreasing subsequence ending at each index.

  • Initialize an array to store the length of the longest decreasing subsequence for each element.

  • Iterate through the array and update the length of the longest decreasing subsequence for each element based on previous elements.

  • Return the maximum length of the longest decreasing subsequence fo...read more

Add your answer
right arrow

Q2. Binary Tree Cameras Problem Statement

Given a binary tree where each node can carry a camera that monitors its parent, itself, and its immediate children, determine the minimum number of cameras needed to monit...read more

Ans.

The problem involves determining the minimum number of cameras needed to monitor all nodes in a binary tree.

  • Implement a function to solve the problem efficiently.

  • Consider the different cases where cameras can be placed to cover all nodes.

  • Use recursion to traverse the tree and place cameras strategically.

  • Optimize the solution to minimize the number of cameras needed.

  • Test the function with different test cases to ensure correctness.

Add your answer
right arrow
Flipkart Software Developer Intern Interview Questions and Answers for Freshers
illustration image

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 palindromic ...read more

Ans.

Given a string, find the longest palindromic substring with the smallest start index.

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

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

  • Return the longest palindromic substring with the smallest start index

Add your answer
right arrow

Q4. Reverse Linked List Problem Statement

Given a singly linked list of integers, return the head of the reversed linked list.

Example:

Initial linked list: 1 -> 2 -> 3 -> 4 -> NULL
Reversed linked list: 4 -> 3 -> 2...read more
Ans.

Reverse a singly linked list of integers and return the head of the reversed linked list.

  • Iterate through the linked list and reverse the pointers to point to the previous node instead of the next node.

  • Use three pointers to keep track of the current, previous, and next nodes while reversing the linked list.

  • Update the head of the reversed linked list as the last node encountered during the reversal process.

Add your answer
right arrow
Discover Flipkart interview dos and don'ts from real experiences

Q5. Minimum Steps for a Knight to Reach Target

Given a square chessboard of size 'N x N', determine the minimum number of moves a Knight requires to reach a specified target position from its initial position.

Expl...read more

Ans.

Calculate minimum steps for a Knight to reach target position on a chessboard.

  • Use BFS algorithm to find shortest path from Knight's starting position to target position.

  • Consider all possible moves of the Knight on the chessboard.

  • Keep track of visited positions to avoid revisiting them.

  • Return the minimum number of moves required to reach the target position.

Add your answer
right arrow

Q6. Remove All The Palindromes Problem Statement

Given a string STR consisting only of lowercase letters, your task is to modify the string by replacing the minimum characters such that the string doesn’t contain a...read more

Ans.

The task is to modify a string by replacing minimum characters to remove all palindromic substrings.

  • Identify palindromic substrings in the given string

  • Replace characters in the substrings to break the palindrome

  • Count the minimum number of characters replaced to remove all palindromic substrings

Add your answer
right arrow

Q7. Ways To Make Coin Change

Given an infinite supply of coins of varying denominations, determine the total number of ways to make change for a specified value using these coins. If it's not possible to make the c...read more

Ans.

The task is to find the total number of ways to make change for a specified value using given denominations.

  • Use dynamic programming to solve this problem efficiently.

  • Create a 2D array to store the number of ways to make change for each value up to the specified value.

  • Iterate through each denomination and update the array accordingly.

  • The final answer will be stored in the last cell of the array.

  • Example: For N=3, D=[1, 2, 3], V=4, the output is 4 as there are 4 ways to make cha...read more

Add your answer
right arrow

Q8. Make complete row and column zero in a matrix for each element that is already 0

Ans.

Use a two-pass approach to mark rows and columns with zeros based on existing zeros in the matrix.

  • Iterate through the matrix to mark rows and columns with zeros based on existing zeros

  • Use two arrays to keep track of which rows and columns need to be zeroed out

  • Perform a second pass to update the matrix based on the marked rows and columns

Add your answer
right arrow

Q9. Design parking lot app for blind people

Ans.

A parking lot app designed for blind people to easily navigate and find available parking spots.

  • Include voice-guided navigation to direct users to available parking spots

  • Use sensors to detect empty parking spaces and relay information to the app

  • Provide audio alerts for obstacles or other vehicles in the parking lot

  • Include a feature for users to easily locate their parked vehicle when returning

Add your answer
right arrow

Q10. Design parking lot app

Ans.

A parking lot app to help users find available parking spots and pay for parking.

  • Include a map feature to show available parking spots in real-time

  • Allow users to reserve parking spots in advance

  • Integrate payment options for users to pay for parking

  • Provide notifications for parking expiration or availability of nearby spots

Add your answer
right arrow

More about working at Flipkart

Back
Awards Leaf
AmbitionBox Logo
Top Rated Internet/Product Company - 2024
Awards Leaf
HQ - Bangalore,Karnataka, India
Contribute & help others!
Write a review
Write a review
Share interview
Share interview
Contribute salary
Contribute salary
Add office photos
Add office photos

Interview Process at Flipkart Software Developer Intern

based on 4 interviews
1 Interview rounds
Coding Test Round
View more
interview tips and stories logo
Interview Tips & Stories
Ace your next interview with expert advice and inspiring stories

Top Software Developer Intern Interview Questions from Similar Companies

View all
Recently Viewed
INTERVIEWS
Zepto
10 top interview questions
INTERVIEWS
Oracle
No Interviews
INTERVIEWS
StreamSets
No Interviews
SALARIES
Swan Defence and Heavy Industries
SALARIES
Godrej & Boyce Manufacturing
INTERVIEWS
StreamSets
No Interviews
INTERVIEWS
Snowflake
No Interviews
SALARIES
Swan Defence and Heavy Industries
INTERVIEWS
Snowflake
No Interviews
INTERVIEWS
Intuit
No Interviews
Share an Interview
Stay ahead in your career. Get AmbitionBox app
play-icon
play-icon
qr-code
Helping over 1 Crore job seekers every month in choosing their right fit company
75 Lakh+

Reviews

5 Lakh+

Interviews

4 Crore+

Salaries

1 Cr+

Users/Month

Contribute to help millions

Made with ❤️ in India. Trademarks belong to their respective owners. All rights reserved © 2024 Info Edge (India) Ltd.

Follow us
  • Youtube
  • Instagram
  • LinkedIn
  • Facebook
  • Twitter