Jpmorgan logo JP
Verified Company Vault 30d Active

Jpmorgan DSA Interview Questions

72 curated coding interview questions directly asked in Jpmorgan technical rounds, sorted by frequency with recency and difficulty diagnostics.

72 Total Questions
23 (32%) Easy Problems
42 (58%) Medium Problems
7 (10%) Hard Problems
🔥 Most Tested Topics:
Arrays (32)Core DSA (20)Strings (17)Trees (5)Greedy (3)
📂 Sourced Datasets:
Last 30 daysLast 3 monthsLast 6 monthsAll questionsOlder than 6 months
Showing 72 of 72 displayed
IDProblemDifficultyTopicPatternAcceptanceFrequencyRecency
253Meeting Rooms IIMediumGreedyGreedy52.7%100.0%30d
2182Construct String With Repeat LimitMediumStringsHashing / Sliding Window70.8%100.0%3m
49Group AnagramsMediumStringsHashing / Sliding Window72.6%100.0%3m
696Count Binary SubstringsEasyStrings; TreesHashing / Sliding Window; DFS / BFS70.4%100.0%6m
1710Maximum Units on a TruckEasyArraysSorting / Prefix / Scan74.9%87.5%3m
239Sliding Window MaximumHardArraysSorting / Prefix / Scan; Sliding Window48.8%87.5%6m
560Subarray Sum Equals KMediumArraysSorting / Prefix / Scan47.3%75.0%3m
678Valid Parenthesis StringMediumStringsHashing / Sliding Window40.1%75.0%3m
3Longest Substring Without Repeating CharactersMediumStrings; TreesHashing / Sliding Window; DFS / BFS; Sliding Window39.1%75.0%3m
48Rotate ImageMediumArraysSorting / Prefix / Scan80.1%75.0%3m
1Two SumEasyArraysSorting / Prefix / Scan; Two Pointers57.5%75.0%3m
2491Divide Players Into Teams of Equal SkillMediumCore DSAImplementation / Reasoning68.9%75.0%6m
2283Check if Number Has Equal Digit Count and Digit ValueEasyCore DSAImplementation / Reasoning73.2%75.0%all
1247Minimum Swaps to Make Strings EqualMediumArrays; StringsSorting / Prefix / Scan; Hashing / Sliding Window65.4%75.0%all
2415Reverse Odd Levels of Binary TreeMediumTreesDFS / BFS86.6%75.0%all
1418Display Table of Food Orders in a RestaurantMediumCore DSAImplementation / Reasoning76.4%75.0%all
2503Maximum Number of Points From Grid QueriesHardArraysSorting / Prefix / Scan59.3%75.0%all
1625Lexicographically Smallest String After Applying OperationsMediumStrings; GraphsHashing / Sliding Window; BFS / DFS / Topological Sort79.3%75.0%all
1812Determine Color of a Chessboard SquareEasyCore DSAImplementation / Reasoning79.9%75.0%all
1843Suspicious Bank AccountsMediumCore DSAImplementation / Reasoning44.1%75.0%all
3216Lexicographically Smallest String After a SwapEasyStrings; GraphsHashing / Sliding Window; BFS / DFS / Topological Sort54.6%75.0%all
3386Button with Longest Push TimeEasyCore DSAImplementation / Reasoning41.1%75.0%all
1347Minimum Number of Steps to Make Two Strings AnagramMediumArrays; StringsSorting / Prefix / Scan; Hashing / Sliding Window82.5%75.0%all
3818Minimum Prefix Removal to Make Array Strictly IncreasingMediumArraysSorting / Prefix / Scan73.9%75.0%all
2054Two Best Non-Overlapping EventsMediumGreedyGreedy64.0%62.5%6m
121Best Time to Buy and Sell StockEasyCore DSAImplementation / Reasoning56.8%62.5%6m
1529Minimum Suffix FlipsMediumArraysSorting / Prefix / Scan73.9%62.5%6m
146LRU CacheMediumDesignData Structure Design47.4%62.5%6m
56Merge IntervalsMediumArraysSorting / Prefix / Scan51.8%62.5%all
202Happy NumberEasyCore DSAImplementation / Reasoning59.7%62.5%all
1200Minimum Absolute DifferenceEasyArraysSorting / Prefix / Scan75.1%62.5%all
2273Find Resultant Array After Removing AnagramsEasyArrays; StringsSorting / Prefix / Scan; Hashing / Sliding Window69.9%62.5%all
2602Minimum Operations to Make All Array Elements EqualMediumArraysSorting / Prefix / Scan38.4%62.5%all
1464Maximum Product of Two Elements in an ArrayEasyArraysSorting / Prefix / Scan83.6%62.5%all
2587Rearrange Array to Maximize Prefix ScoreMediumArraysSorting / Prefix / Scan42.8%62.5%all
3147Taking Maximum Energy From the Mystic DungeonMediumArraysSorting / Prefix / Scan61.0%62.5%all
1974Minimum Time to Type Word Using Special TypewriterEasyArrays; StringsSorting / Prefix / Scan; Hashing / Sliding Window78.7%62.5%all
1208Get Equal Substrings Within BudgetMediumStrings; TreesHashing / Sliding Window; DFS / BFS59.7%62.5%all
1167Minimum Cost to Connect SticksMediumArraysSorting / Prefix / Scan71.9%50.0%all
780Reaching PointsHardCore DSAImplementation / Reasoning34.4%50.0%all
384Shuffle an ArrayMediumArraysSorting / Prefix / Scan59.7%50.0%all
2270Number of Ways to Split ArrayMediumArraysSorting / Prefix / Scan55.9%50.0%all
476Number ComplementEasyCore DSAImplementation / Reasoning70.4%50.0%all
115Distinct SubsequencesHardCore DSAImplementation / Reasoning51.9%50.0%all
42Trapping Rain WaterHardCore DSATwo Pointers67.4%50.0%all
5Longest Palindromic SubstringMediumStrings; TreesHashing / Sliding Window; DFS / BFS37.8%37.5%all
20Valid ParenthesesEasyStringsHashing / Sliding Window44.2%37.5%all
122Best Time to Buy and Sell Stock IIMediumCore DSAImplementation / Reasoning71.1%37.5%all
322Coin ChangeMediumDynamic ProgrammingState Transition48.4%37.5%all
349Intersection of Two ArraysEasyArraysSorting / Prefix / Scan77.8%37.5%all
412Fizz BuzzEasyCore DSAImplementation / Reasoning75.5%37.5%all
435Non-overlapping IntervalsMediumArrays; GreedySorting / Prefix / Scan; Greedy57.1%37.5%all
1012Numbers With Repeated DigitsHardCore DSAImplementation / Reasoning46.6%37.5%all
347Top K Frequent ElementsMediumHeapPriority Queue66.4%37.5%all
167Two Sum II - Input Array Is SortedMediumArraysSorting / Prefix / Scan; Two Pointers65.1%37.5%all
3159Find Occurrences of an Element in an ArrayMediumArraysSorting / Prefix / Scan73.4%37.5%all
73Set Matrix ZeroesMediumArraysSorting / Prefix / Scan62.9%37.5%all
295Find Median from Data StreamHardHeapPriority Queue54.5%37.5%all
53Maximum SubarrayMediumArraysSorting / Prefix / Scan53.3%37.5%all
1535Find the Winner of an Array GameMediumArraysSorting / Prefix / Scan56.8%37.5%all
974Subarray Sums Divisible by KMediumArraysSorting / Prefix / Scan56.3%37.5%all
1046Last Stone WeightEasyCore DSAImplementation / Reasoning66.5%37.5%all
13Roman to IntegerEasyStringsHashing / Sliding Window66.6%37.5%all
1648Sell Diminishing-Valued Colored BallsMediumCore DSAImplementation / Reasoning30.2%37.5%all
387First Unique Character in a StringEasyStringsHashing / Sliding Window65.5%37.5%all
1629Slowest KeyEasyCore DSAImplementation / Reasoning59.6%37.5%all
128Longest Consecutive SequenceMediumCore DSAImplementation / Reasoning47.1%37.5%all
643Maximum Average Subarray IEasyArraysSorting / Prefix / Scan47.8%37.5%all
2461Maximum Sum of Distinct Subarrays With Length KMediumArraysSorting / Prefix / Scan43.0%37.5%all
118Pascal's TriangleEasyCore DSAImplementation / Reasoning78.9%37.5%all
12Integer to RomanMediumStringsHashing / Sliding Window71.0%37.5%all
912Sort an ArrayMediumArraysSorting / Prefix / Scan55.9%37.5%all