# Flipkart Coding Interview Questions

> 117 DSA problems asked in Flipkart coding interviews and online assessments, sorted easiest first with hints. Free practice for placements on InternHack.

Canonical: https://www.internhack.in/learn/dsa/companies/flipkart
Last updated: 2026-11-28

117 DSA problems tagged as asked in Flipkart coding interviews and online assessments. Below are the first 100 of 117: 13 easy, 56 medium and 31 hard. Start with the easy ones, then move to medium. Practise free on InternHack and track your progress.

## Flipkart DSA problems, easiest first

1. [Best Time to Buy and Sell Stock](https://www.internhack.in/learn/dsa/problem/best-time-to-buy-and-sell-stock) (Easy)
2. [Climbing Stairs](https://www.internhack.in/learn/dsa/problem/climbing-stairs) (Easy)
3. [Count Complete Tree Nodes](https://www.internhack.in/learn/dsa/problem/count-complete-tree-nodes) (Easy)
4. [Crawler Log Folder](https://www.internhack.in/learn/dsa/problem/crawler-log-folder) (Easy)
5. [Diameter of Binary Tree](https://www.internhack.in/learn/dsa/problem/diameter-of-binary-tree) (Easy)
6. [Find The Least Frequent Digit](https://www.internhack.in/learn/dsa/problem/find-the-least-frequent-digit) (Easy)
7. [Last Stone Weight](https://www.internhack.in/learn/dsa/problem/last-stone-weight) (Easy)
8. [Merge Sorted Array](https://www.internhack.in/learn/dsa/problem/merge-sorted-array) (Easy)
9. [Merge Two Sorted Lists](https://www.internhack.in/learn/dsa/problem/merge-two-sorted-lists) (Easy)
10. [Next Greater Element I](https://www.internhack.in/learn/dsa/problem/next-greater-element-i) (Easy)
11. [Remove Outermost Parentheses](https://www.internhack.in/learn/dsa/problem/remove-outermost-parentheses) (Easy)
12. [Two Sum](https://www.internhack.in/learn/dsa/problem/two-sum) (Easy)
13. [Valid Parentheses](https://www.internhack.in/learn/dsa/problem/valid-parentheses) (Easy)
14. [01 Matrix](https://www.internhack.in/learn/dsa/problem/01-matrix) (Medium)
15. [3Sum](https://www.internhack.in/learn/dsa/problem/3sum) (Medium)
16. [3Sum Closest](https://www.internhack.in/learn/dsa/problem/3sum-closest) (Medium)
17. [All Nodes Distance K in Binary Tree](https://www.internhack.in/learn/dsa/problem/all-nodes-distance-k-in-binary-tree) (Medium)
18. [Amount of Time for Binary Tree to Be Infected](https://www.internhack.in/learn/dsa/problem/amount-of-time-for-binary-tree-to-be-infected) (Medium)
19. [Asteroid Collision](https://www.internhack.in/learn/dsa/problem/asteroid-collision) (Medium)
20. [Boats to Save People](https://www.internhack.in/learn/dsa/problem/boats-to-save-people) (Medium)
21. [Capacity To Ship Packages Within D Days](https://www.internhack.in/learn/dsa/problem/capacity-to-ship-packages-within-d-days) (Medium)
22. [Cheapest Flights Within K Stops](https://www.internhack.in/learn/dsa/problem/cheapest-flights-within-k-stops) (Medium)
23. [Container With Most Water](https://www.internhack.in/learn/dsa/problem/container-with-most-water) (Medium)
24. [Daily Temperatures](https://www.internhack.in/learn/dsa/problem/daily-temperatures) (Medium)
25. [Decode Ways](https://www.internhack.in/learn/dsa/problem/decode-ways) (Medium)
26. [Delete Node in a BST](https://www.internhack.in/learn/dsa/problem/delete-node-in-a-bst) (Medium)
27. [Edit Distance](https://www.internhack.in/learn/dsa/problem/edit-distance) (Medium)
28. [Evaluate Division](https://www.internhack.in/learn/dsa/problem/evaluate-division) (Medium)
29. [Find K Closest Elements](https://www.internhack.in/learn/dsa/problem/find-k-closest-elements) (Medium)
30. [Find K Pairs with Smallest Sums](https://www.internhack.in/learn/dsa/problem/find-k-pairs-with-smallest-sums) (Medium)
31. [Find Leaves of Binary Tree](https://www.internhack.in/learn/dsa/problem/find-leaves-of-binary-tree) (Medium)
32. [Find the Duplicate Number](https://www.internhack.in/learn/dsa/problem/find-the-duplicate-number) (Medium)
33. [Furthest Building You Can Reach](https://www.internhack.in/learn/dsa/problem/furthest-building-you-can-reach) (Medium)
34. [Generate Parentheses](https://www.internhack.in/learn/dsa/problem/generate-parentheses) (Medium)
35. [Koko Eating Bananas](https://www.internhack.in/learn/dsa/problem/koko-eating-bananas) (Medium)
36. [Longest Repeating Character Replacement](https://www.internhack.in/learn/dsa/problem/longest-repeating-character-replacement) (Medium)
37. [Longest Substring Without Repeating Characters](https://www.internhack.in/learn/dsa/problem/longest-substring-without-repeating-characters) (Medium)
38. [Lowest Common Ancestor of a Binary Tree](https://www.internhack.in/learn/dsa/problem/lowest-common-ancestor-of-a-binary-tree) (Medium)
39. [Magnetic Force Between Two Balls](https://www.internhack.in/learn/dsa/problem/magnetic-force-between-two-balls) (Medium)
40. [Maximal Square](https://www.internhack.in/learn/dsa/problem/maximal-square) (Medium)
41. [Maximum Points You Can Obtain from Cards](https://www.internhack.in/learn/dsa/problem/maximum-points-you-can-obtain-from-cards) (Medium)
42. [Maximum Width of Binary Tree](https://www.internhack.in/learn/dsa/problem/maximum-width-of-binary-tree) (Medium)
43. [Min Cost to Connect All Points](https://www.internhack.in/learn/dsa/problem/min-cost-to-connect-all-points) (Medium)
44. [Minimum Area Rectangle](https://www.internhack.in/learn/dsa/problem/minimum-area-rectangle) (Medium)
45. [Minimum Cost to Reach City With Discounts](https://www.internhack.in/learn/dsa/problem/minimum-cost-to-reach-city-with-discounts) (Medium)
46. [Minimum Limit of Balls in a Bag](https://www.internhack.in/learn/dsa/problem/minimum-limit-of-balls-in-a-bag) (Medium)
47. [Minimum Number of Coins to be Added](https://www.internhack.in/learn/dsa/problem/minimum-number-of-coins-to-be-added) (Medium)
48. [Minimum Number of Days to Make m Bouquets](https://www.internhack.in/learn/dsa/problem/minimum-number-of-days-to-make-m-bouquets) (Medium)
49. [Minimum Path Sum](https://www.internhack.in/learn/dsa/problem/minimum-path-sum) (Medium)
50. [Next Greater Element II](https://www.internhack.in/learn/dsa/problem/next-greater-element-ii) (Medium)
51. [Next Permutation](https://www.internhack.in/learn/dsa/problem/next-permutation) (Medium)
52. [Numbers With Same Consecutive Differences](https://www.internhack.in/learn/dsa/problem/numbers-with-same-consecutive-differences) (Medium)
53. [Pacific Atlantic Water Flow](https://www.internhack.in/learn/dsa/problem/pacific-atlantic-water-flow) (Medium)
54. [Partition Equal Subset Sum](https://www.internhack.in/learn/dsa/problem/partition-equal-subset-sum) (Medium)
55. [Path Sum II](https://www.internhack.in/learn/dsa/problem/path-sum-ii) (Medium)
56. [Product of Array Except Self](https://www.internhack.in/learn/dsa/problem/product-of-array-except-self) (Medium)
57. [Reverse Substrings Between Each Pair of Parentheses](https://www.internhack.in/learn/dsa/problem/reverse-substrings-between-each-pair-of-parentheses) (Medium)
58. [Rotting Oranges](https://www.internhack.in/learn/dsa/problem/rotting-oranges) (Medium)
59. [Search in Rotated Sorted Array](https://www.internhack.in/learn/dsa/problem/search-in-rotated-sorted-array) (Medium)
60. [Shortest Bridge](https://www.internhack.in/learn/dsa/problem/shortest-bridge) (Medium)
61. [Single Element in a Sorted Array](https://www.internhack.in/learn/dsa/problem/single-element-in-a-sorted-array) (Medium)
62. [Sort Characters By Frequency](https://www.internhack.in/learn/dsa/problem/sort-characters-by-frequency) (Medium)
63. [Sort Colors](https://www.internhack.in/learn/dsa/problem/sort-colors) (Medium)
64. [Subarray Sum Equals K](https://www.internhack.in/learn/dsa/problem/subarray-sum-equals-k) (Medium)
65. [Sum of Subarray Minimums](https://www.internhack.in/learn/dsa/problem/sum-of-subarray-minimums) (Medium)
66. [Transform Array to All Equal Elements](https://www.internhack.in/learn/dsa/problem/transform-array-to-all-equal-elements) (Medium)
67. [Trim a Binary Search Tree](https://www.internhack.in/learn/dsa/problem/trim-a-binary-search-tree) (Medium)
68. [Unique Paths](https://www.internhack.in/learn/dsa/problem/unique-paths) (Medium)
69. [Ways to Split Array Into Good Subarrays](https://www.internhack.in/learn/dsa/problem/ways-to-split-array-into-good-subarrays) (Medium)
70. [Binary Tree Maximum Path Sum](https://www.internhack.in/learn/dsa/problem/binary-tree-maximum-path-sum) (Hard)
71. [Candy](https://www.internhack.in/learn/dsa/problem/candy) (Hard)
72. [Cherry Pickup](https://www.internhack.in/learn/dsa/problem/cherry-pickup) (Hard)
73. [Cherry Pickup II](https://www.internhack.in/learn/dsa/problem/cherry-pickup-ii) (Hard)
74. [Contain Virus](https://www.internhack.in/learn/dsa/problem/contain-virus) (Hard)
75. [Create Maximum Number](https://www.internhack.in/learn/dsa/problem/create-maximum-number) (Hard)
76. [Critical Connections in a Network](https://www.internhack.in/learn/dsa/problem/critical-connections-in-a-network) (Hard)
77. [Cut Off Trees for Golf Event](https://www.internhack.in/learn/dsa/problem/cut-off-trees-for-golf-event) (Hard)
78. [Design Movie Rental System](https://www.internhack.in/learn/dsa/problem/design-movie-rental-system) (Hard)
79. [Dungeon Game](https://www.internhack.in/learn/dsa/problem/dungeon-game) (Hard)
80. [Find Median from Data Stream](https://www.internhack.in/learn/dsa/problem/find-median-from-data-stream) (Hard)
81. [First Missing Positive](https://www.internhack.in/learn/dsa/problem/first-missing-positive) (Hard)
82. [Largest Rectangle in Histogram](https://www.internhack.in/learn/dsa/problem/largest-rectangle-in-histogram) (Hard)
83. [Longest Valid Parentheses](https://www.internhack.in/learn/dsa/problem/longest-valid-parentheses) (Hard)
84. [Maximal Rectangle](https://www.internhack.in/learn/dsa/problem/maximal-rectangle) (Hard)
85. [Maximum Frequency Stack](https://www.internhack.in/learn/dsa/problem/maximum-frequency-stack) (Hard)
86. [Maximum Performance of a Team](https://www.internhack.in/learn/dsa/problem/maximum-performance-of-a-team) (Hard)
87. [Maximum Profit in Job Scheduling](https://www.internhack.in/learn/dsa/problem/maximum-profit-in-job-scheduling) (Hard)
88. [Median of Two Sorted Arrays](https://www.internhack.in/learn/dsa/problem/median-of-two-sorted-arrays) (Hard)
89. [Number of Atoms](https://www.internhack.in/learn/dsa/problem/number-of-atoms) (Hard)
90. [Palindrome Partitioning II](https://www.internhack.in/learn/dsa/problem/palindrome-partitioning-ii) (Hard)
91. [Reconstruct Itinerary](https://www.internhack.in/learn/dsa/problem/reconstruct-itinerary) (Hard)
92. [Rectangle Area II](https://www.internhack.in/learn/dsa/problem/rectangle-area-ii) (Hard)
93. [Robot Collisions](https://www.internhack.in/learn/dsa/problem/robot-collisions) (Hard)
94. [Serialize and Deserialize Binary Tree](https://www.internhack.in/learn/dsa/problem/serialize-and-deserialize-binary-tree) (Hard)
95. [Smallest Range Covering Elements from K Lists](https://www.internhack.in/learn/dsa/problem/smallest-range-covering-elements-from-k-lists) (Hard)
96. [The Score of Students Solving Math Expression](https://www.internhack.in/learn/dsa/problem/the-score-of-students-solving-math-expression) (Hard)
97. [Trapping Rain Water](https://www.internhack.in/learn/dsa/problem/trapping-rain-water) (Hard)
98. [Trapping Rain Water II](https://www.internhack.in/learn/dsa/problem/trapping-rain-water-ii) (Hard)
99. [Triples with Bitwise AND Equal To Zero](https://www.internhack.in/learn/dsa/problem/triples-with-bitwise-and-equal-to-zero) (Hard)
100. [Word Ladder](https://www.internhack.in/learn/dsa/problem/word-ladder) (Hard)

## Prepare for the rest of the Flipkart process

- [Aptitude questions by company](https://www.internhack.in/learn/aptitude/companies)
- [Technical interview questions](https://www.internhack.in/learn/interview)
- [Free ATS resume check](https://www.internhack.in/ats-score/try), no signup

## Other companies

- [Google](https://www.internhack.in/learn/dsa/companies/google) (2217)
- [Amazon](https://www.internhack.in/learn/dsa/companies/amazon) (1938)
- [Meta](https://www.internhack.in/learn/dsa/companies/meta) (1387)
- [Microsoft](https://www.internhack.in/learn/dsa/companies/microsoft) (1352)
- [Bloomberg](https://www.internhack.in/learn/dsa/companies/bloomberg) (1173)
- [Tiktok](https://www.internhack.in/learn/dsa/companies/tiktok) (383)
- [Uber](https://www.internhack.in/learn/dsa/companies/uber) (381)
- [Apple](https://www.internhack.in/learn/dsa/companies/apple) (356)
- [Oracle](https://www.internhack.in/learn/dsa/companies/oracle) (340)
- [Goldman Sachs](https://www.internhack.in/learn/dsa/companies/goldman-sachs) (270)
- [Adobe](https://www.internhack.in/learn/dsa/companies/adobe) (227)
- [TCS](https://www.internhack.in/learn/dsa/companies/tcs) (217)
- [Salesforce](https://www.internhack.in/learn/dsa/companies/salesforce) (189)
- [Linkedin](https://www.internhack.in/learn/dsa/companies/linkedin) (180)
- [Zoho](https://www.internhack.in/learn/dsa/companies/zoho) (179)
- [IBM](https://www.internhack.in/learn/dsa/companies/ibm) (170)
- [Infosys](https://www.internhack.in/learn/dsa/companies/infosys) (158)
- [Walmart Labs](https://www.internhack.in/learn/dsa/companies/walmart-labs) (152)
- [Accenture](https://www.internhack.in/learn/dsa/companies/accenture) (144)
- [Nvidia](https://www.internhack.in/learn/dsa/companies/nvidia) (137)
- [Yandex](https://www.internhack.in/learn/dsa/companies/yandex) (134)
- [DE Shaw](https://www.internhack.in/learn/dsa/companies/de-shaw) (124)
- [Visa](https://www.internhack.in/learn/dsa/companies/visa) (124)
- [Paypal](https://www.internhack.in/learn/dsa/companies/paypal) (106)

## Related

- [Home](https://www.internhack.in/)
- [Learn](https://www.internhack.in/learn)
- [DSA by company](https://www.internhack.in/learn/dsa/companies)
