De Shaw logo DS
Verified Company Vault

De Shaw DSA Interview Questions

110 curated coding interview questions directly asked in De Shaw technical rounds, sorted by frequency with recency and difficulty diagnostics.

110 Total Questions
11 (10%) Easy Problems
66 (60%) Medium Problems
33 (30%) Hard Problems
🔥 Most Tested Topics:
Arrays (50)Core DSA (30)Strings (17)Trees (6)Graphs (6)
📂 Sourced Datasets:
Last 3 monthsLast 6 monthsAll questionsOlder than 6 months
Showing 110 of 110 displayed
IDProblemDifficultyTopicPatternAcceptanceFrequencyRecency
968Binary Tree CamerasHardTreesDFS / BFS47.9%100.0%3m
1642Furthest Building You Can ReachMediumCore DSAImplementation / Reasoning50.9%100.0%3m
3469Find Minimum Cost to Remove Array ElementsMediumArraysSorting / Prefix / Scan21.7%87.5%all
316Remove Duplicate LettersMediumArrays; StringsSorting / Prefix / Scan; Hashing / Sliding Window53.2%75.0%6m
17Letter Combinations of a Phone NumberMediumStrings; BacktrackingHashing / Sliding Window; Backtracking66.1%75.0%all
2920Maximum Points After Collecting Coins From All NodesHardArrays; Trees; Dynamic ProgrammingSorting / Prefix / Scan; DFS / BFS; State Transition36.6%75.0%all
1122Relative Sort ArrayEasyArraysSorting / Prefix / Scan75.2%75.0%all
3077Maximum Strength of K Disjoint SubarraysHardArraysSorting / Prefix / Scan27.8%75.0%all
2171Removing Minimum Number of Magic BeansMediumArraysSorting / Prefix / Scan44.6%75.0%all
3082Find the Sum of the Power of All SubsequencesHardArraysSorting / Prefix / Scan38.4%75.0%all
3108Minimum Cost Walk in Weighted GraphHardArrays; GraphsSorting / Prefix / Scan; BFS / DFS / Topological Sort68.2%75.0%all
3085Minimum Deletions to Make String K-SpecialMediumArrays; StringsSorting / Prefix / Scan; Hashing / Sliding Window67.1%75.0%all
1262Greatest Sum Divisible by ThreeMediumArraysSorting / Prefix / Scan57.0%75.0%all
2343Query Kth Smallest Trimmed NumberMediumHeapPriority Queue47.6%75.0%all
2352Equal Row and Column PairsMediumCore DSAImplementation / Reasoning70.9%75.0%all
3209Number of Subarrays With AND Value of KHardArraysSorting / Prefix / Scan35.3%75.0%all
1326Minimum Number of Taps to Open to Water a GardenHardArraysSorting / Prefix / Scan51.0%75.0%all
1358Number of Substrings Containing All Three CharactersMediumStrings; TreesHashing / Sliding Window; DFS / BFS73.7%75.0%all
2875Minimum Size Subarray in Infinite ArrayMediumArraysSorting / Prefix / Scan32.2%75.0%all
2430Maximum Deletions on a StringHardArrays; StringsSorting / Prefix / Scan; Hashing / Sliding Window35.9%75.0%all
2387Median of a Row Wise Sorted MatrixMediumArrays; HeapSorting / Prefix / Scan; Priority Queue71.0%75.0%all
2542Maximum Subsequence ScoreMediumArraysSorting / Prefix / Scan54.7%75.0%all
2660Determine the Winner of a Bowling GameEasyCore DSAImplementation / Reasoning37.6%75.0%all
2558Take Gifts From the Richest PileEasyCore DSAImplementation / Reasoning75.5%75.0%all
2644Find the Maximum Divisibility ScoreEasyArraysSorting / Prefix / Scan51.9%75.0%all
1679Max Number of K-Sum PairsMediumArraysSorting / Prefix / Scan57.1%75.0%all
2800Shortest String That Contains Three StringsMediumStringsHashing / Sliding Window31.8%75.0%all
1927Sum GameMediumArraysSorting / Prefix / Scan49.3%75.0%all
2972Count the Number of Incremovable Subarrays IIHardArraysSorting / Prefix / Scan40.2%75.0%all
2984Find Peak Calling Hours for Each CityMediumBinary SearchBinary Search61.9%75.0%all
3323Minimize Connected Groups by Inserting IntervalMediumArrays; GraphsSorting / Prefix / Scan; BFS / DFS / Topological Sort50.5%75.0%all
3332Maximum Points Tourist Can EarnMediumArraysSorting / Prefix / Scan47.6%75.0%all
3383Minimum Runes to Add to Cast SpellHardArraysSorting / Prefix / Scan44.6%75.0%all
3628Maximum Number of Subsequences After One InsertingMediumArraysSorting / Prefix / Scan31.9%75.0%all
42Trapping Rain WaterHardCore DSATwo Pointers67.4%62.5%all
198House RobberMediumDynamic ProgrammingState Transition53.2%62.5%all
239Sliding Window MaximumHardArraysSorting / Prefix / Scan; Sliding Window48.8%62.5%all
440K-th Smallest in Lexicographical OrderHardGraphsBFS / DFS / Topological Sort46.3%62.5%all
20Valid ParenthesesEasyStringsHashing / Sliding Window44.2%62.5%all
169Majority ElementEasyCore DSAImplementation / Reasoning66.3%62.5%all
871Minimum Number of Refueling StopsHardArraysSorting / Prefix / Scan41.4%62.5%all
2434Using a Robot to Print the Lexicographically Smallest StringMediumStrings; GraphsHashing / Sliding Window; BFS / DFS / Topological Sort62.3%62.5%all
128Longest Consecutive SequenceMediumCore DSAImplementation / Reasoning47.1%50.0%all
152Maximum Product SubarrayMediumArraysSorting / Prefix / Scan36.4%50.0%all
227Basic Calculator IIMediumStack / QueueMonotonic Stack / Simulation46.9%50.0%all
380Insert Delete GetRandom O(1)MediumCore DSAImplementation / Reasoning55.4%50.0%all
2551Put Marbles in BagsHardCore DSAImplementation / Reasoning72.1%50.0%all
2742Painting the WallsHardCore DSAImplementation / Reasoning49.1%50.0%all
1701Average Waiting TimeMediumCore DSAImplementation / Reasoning73.1%50.0%all
778Swim in Rising WaterHardCore DSAImplementation / Reasoning67.8%50.0%all
752Open the LockMediumCore DSAImplementation / Reasoning61.3%50.0%all
3016Minimum Number of Pushes to Type Word IIMediumArrays; StringsSorting / Prefix / Scan; Hashing / Sliding Window80.0%50.0%all
875Koko Eating BananasMediumBinary SearchBinary Search50.0%50.0%all
1283Find the Smallest Divisor Given a ThresholdMediumCore DSAImplementation / Reasoning65.9%50.0%all
475HeatersMediumCore DSAImplementation / Reasoning41.9%50.0%all
1574Shortest Subarray to be Removed to Make Array SortedMediumArraysSorting / Prefix / Scan51.3%50.0%all
668Kth Smallest Number in Multiplication TableHardHeapPriority Queue54.1%50.0%all
410Split Array Largest SumHardArraysSorting / Prefix / Scan60.4%50.0%all
829Consecutive Numbers SumHardArraysSorting / Prefix / Scan42.7%50.0%all
518Coin Change IIMediumDynamic ProgrammingState Transition60.0%50.0%all
779K-th Symbol in GrammarMediumCore DSAImplementation / Reasoning48.3%50.0%all
470Implement Rand10() Using Rand7()MediumCore DSAImplementation / Reasoning46.4%50.0%all
168Excel Sheet Column TitleEasyCore DSAImplementation / Reasoning46.5%50.0%all
1048Longest String ChainMediumStringsHashing / Sliding Window63.0%50.0%all
3281Maximize Score of Numbers in RangesMediumCore DSAImplementation / Reasoning35.7%50.0%all
2104Sum of Subarray RangesMediumArraysSorting / Prefix / Scan61.1%50.0%all
2221Find Triangular Sum of an ArrayMediumArraysSorting / Prefix / Scan82.0%50.0%all
200Number of IslandsMediumGraphsBFS / DFS / Topological Sort64.4%50.0%all
146LRU CacheMediumDesignData Structure Design47.4%50.0%all
994Rotting OrangesMediumCore DSAImplementation / Reasoning58.7%50.0%all
1000Minimum Cost to Merge StonesHardArraysSorting / Prefix / Scan46.1%50.0%all
767Reorganize StringMediumStringsHashing / Sliding Window57.1%50.0%all
4Median of Two Sorted ArraysHardArrays; HeapSorting / Prefix / Scan; Priority Queue46.6%37.5%all
53Maximum SubarrayMediumArraysSorting / Prefix / Scan53.3%37.5%all
62Unique PathsMediumCore DSAImplementation / Reasoning66.8%37.5%all
121Best Time to Buy and Sell StockEasyCore DSAImplementation / Reasoning56.8%37.5%all
1383Maximum Performance of a TeamHardArraysSorting / Prefix / Scan47.8%37.5%all
852Peak Index in a Mountain ArrayMediumArrays; Binary SearchSorting / Prefix / Scan; Binary Search66.8%37.5%all
122Best Time to Buy and Sell Stock IIMediumCore DSAImplementation / Reasoning71.1%37.5%all
787Cheapest Flights Within K StopsMediumHeapPriority Queue41.8%37.5%all
1569Number of Ways to Reorder Array to Get Same BSTHardArrays; TreesSorting / Prefix / Scan; DFS / BFS54.1%37.5%all
2617Minimum Number of Visited Cells in a GridHardArraysSorting / Prefix / Scan23.9%37.5%all
2680Maximum ORMediumArraysSorting / Prefix / Scan43.0%37.5%all
209Minimum Size Subarray SumMediumArraysSorting / Prefix / Scan51.7%37.5%all
184SumMediumArraysSorting / Prefix / Scan40.6%37.5%all
1423Maximum Points You Can Obtain from CardsMediumArraysSorting / Prefix / Scan57.7%37.5%all
943Find the Shortest SuperstringHardStringsHashing / Sliding Window45.4%37.5%all
34Find First and Last Position of Element in Sorted ArrayMediumArraysSorting / Prefix / Scan48.9%37.5%all
1579Remove Max Number of Edges to Keep Graph Fully TraversableHardGraphsBFS / DFS / Topological Sort70.2%37.5%all
341Flatten Nested List IteratorMediumLinked List; DesignTwo Pointers; Data Structure Design65.7%37.5%all
735Asteroid CollisionMediumCore DSAImplementation / Reasoning47.9%37.5%all
1244Design A LeaderboardMediumDesignData Structure Design68.1%37.5%all
91Decode WaysMediumDynamic ProgrammingState Transition38.0%37.5%all
68Text JustificationHardCore DSAImplementation / Reasoning51.2%37.5%all
1434Number of Ways to Wear Different Hats to Each OtherHardCore DSAImplementation / Reasoning46.0%37.5%all
212Word Search IIHardStrings; Binary SearchHashing / Sliding Window; Binary Search38.5%37.5%all
32Longest Valid ParenthesesHardStringsHashing / Sliding Window38.8%37.5%all
1292Maximum Side Length of a Square with Sum Less than or Equal to ThresholdMediumArraysSorting / Prefix / Scan65.4%37.5%all
44Wildcard MatchingHardCore DSAImplementation / Reasoning32.0%37.5%all
3Longest Substring Without Repeating CharactersMediumStrings; TreesHashing / Sliding Window; DFS / BFS; Sliding Window39.1%37.5%all
1368Minimum Cost to Make at Least One Valid Path in a GridHardArrays; StringsSorting / Prefix / Scan; Hashing / Sliding Window71.0%37.5%all
2222Number of Ways to Select BuildingsMediumCore DSAImplementation / Reasoning50.9%37.5%all
962Maximum Width RampMediumArraysSorting / Prefix / Scan55.9%37.5%all
851Loud and RichMediumCore DSAImplementation / Reasoning63.5%37.5%all
696Count Binary SubstringsEasyStrings; TreesHashing / Sliding Window; DFS / BFS70.4%37.5%all
1Two SumEasyArraysSorting / Prefix / Scan; Two Pointers57.5%37.5%all
88Merge Sorted ArrayEasyArraysSorting / Prefix / Scan54.9%37.5%all
31Next PermutationMediumBacktrackingBacktracking45.3%37.5%all
213House Robber IIMediumDynamic ProgrammingState Transition44.9%37.5%all
11Container With Most WaterMediumCore DSATwo Pointers60.0%37.5%all