# DE Shaw Coding Interview Questions

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

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

124 DSA problems tagged as asked in DE Shaw coding interviews and online assessments. Below are the first 100 of 124: 12 easy, 50 medium and 38 hard. Start with the easy ones, then move to medium. Practise free on InternHack and track your progress.

## DE Shaw 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. [Count Binary Substrings](https://www.internhack.in/learn/dsa/problem/count-binary-substrings) (Easy)
3. [Determine the Winner of a Bowling Game](https://www.internhack.in/learn/dsa/problem/determine-the-winner-of-a-bowling-game) (Easy)
4. [Excel Sheet Column Title](https://www.internhack.in/learn/dsa/problem/excel-sheet-column-title) (Easy)
5. [Find the Maximum Divisibility Score](https://www.internhack.in/learn/dsa/problem/find-the-maximum-divisibility-score) (Easy)
6. [Linked List Cycle](https://www.internhack.in/learn/dsa/problem/linked-list-cycle) (Easy)
7. [Majority Element](https://www.internhack.in/learn/dsa/problem/majority-element) (Easy)
8. [Merge Sorted Array](https://www.internhack.in/learn/dsa/problem/merge-sorted-array) (Easy)
9. [Relative Sort Array](https://www.internhack.in/learn/dsa/problem/relative-sort-array) (Easy)
10. [Take Gifts From the Richest Pile](https://www.internhack.in/learn/dsa/problem/take-gifts-from-the-richest-pile) (Easy)
11. [Two Sum](https://www.internhack.in/learn/dsa/problem/two-sum) (Easy)
12. [Valid Parentheses](https://www.internhack.in/learn/dsa/problem/valid-parentheses) (Easy)
13. [4Sum](https://www.internhack.in/learn/dsa/problem/4sum) (Medium)
14. [Average Waiting Time](https://www.internhack.in/learn/dsa/problem/average-waiting-time) (Medium)
15. [Basic Calculator II](https://www.internhack.in/learn/dsa/problem/basic-calculator-ii) (Medium)
16. [Best Time to Buy and Sell Stock II](https://www.internhack.in/learn/dsa/problem/best-time-to-buy-and-sell-stock-ii) (Medium)
17. [Combination Sum](https://www.internhack.in/learn/dsa/problem/combination-sum) (Medium)
18. [Copy List with Random Pointer](https://www.internhack.in/learn/dsa/problem/copy-list-with-random-pointer) (Medium)
19. [Decode Ways](https://www.internhack.in/learn/dsa/problem/decode-ways) (Medium)
20. [Equal Row and Column Pairs](https://www.internhack.in/learn/dsa/problem/equal-row-and-column-pairs) (Medium)
21. [Find First and Last Position of Element in Sorted Array](https://www.internhack.in/learn/dsa/problem/find-first-and-last-position-of-element-in-sorted-array) (Medium)
22. [Find Minimum Cost to Remove Array Elements](https://www.internhack.in/learn/dsa/problem/find-minimum-cost-to-remove-array-elements) (Medium)
23. [Find Peak Calling Hours for Each City](https://www.internhack.in/learn/dsa/problem/find-peak-calling-hours-for-each-city) (Medium)
24. [Find the Duplicate Number](https://www.internhack.in/learn/dsa/problem/find-the-duplicate-number) (Medium)
25. [Find Triangular Sum of an Array](https://www.internhack.in/learn/dsa/problem/find-triangular-sum-of-an-array) (Medium)
26. [Flatten Nested List Iterator](https://www.internhack.in/learn/dsa/problem/flatten-nested-list-iterator) (Medium)
27. [Furthest Building You Can Reach](https://www.internhack.in/learn/dsa/problem/furthest-building-you-can-reach) (Medium)
28. [Generate Parentheses](https://www.internhack.in/learn/dsa/problem/generate-parentheses) (Medium)
29. [House Robber](https://www.internhack.in/learn/dsa/problem/house-robber) (Medium)
30. [House Robber II](https://www.internhack.in/learn/dsa/problem/house-robber-ii) (Medium)
31. [Letter Combinations of a Phone Number](https://www.internhack.in/learn/dsa/problem/letter-combinations-of-a-phone-number) (Medium)
32. [Longest Consecutive Sequence](https://www.internhack.in/learn/dsa/problem/longest-consecutive-sequence) (Medium)
33. [Longest Substring Without Repeating Characters](https://www.internhack.in/learn/dsa/problem/longest-substring-without-repeating-characters) (Medium)
34. [LRU Cache](https://www.internhack.in/learn/dsa/problem/lru-cache) (Medium)
35. [Max Number of K-Sum Pairs](https://www.internhack.in/learn/dsa/problem/max-number-of-k-sum-pairs) (Medium)
36. [Maximal Square](https://www.internhack.in/learn/dsa/problem/maximal-square) (Medium)
37. [Maximize Score of Numbers in Ranges](https://www.internhack.in/learn/dsa/problem/maximize-score-of-numbers-in-ranges) (Medium)
38. [Maximum Number of Points with Cost](https://www.internhack.in/learn/dsa/problem/maximum-number-of-points-with-cost) (Medium)
39. [Maximum Number of Subsequences After One Inserting](https://www.internhack.in/learn/dsa/problem/maximum-number-of-subsequences-after-one-inserting) (Medium)
40. [Maximum OR](https://www.internhack.in/learn/dsa/problem/maximum-or) (Medium)
41. [Maximum Points Tourist Can Earn](https://www.internhack.in/learn/dsa/problem/maximum-points-tourist-can-earn) (Medium)
42. [Maximum Product Subarray](https://www.internhack.in/learn/dsa/problem/maximum-product-subarray) (Medium)
43. [Maximum Subarray](https://www.internhack.in/learn/dsa/problem/maximum-subarray) (Medium)
44. [Maximum Subsequence Score](https://www.internhack.in/learn/dsa/problem/maximum-subsequence-score) (Medium)
45. [Median of a Row Wise Sorted Matrix](https://www.internhack.in/learn/dsa/problem/median-of-a-row-wise-sorted-matrix) (Medium)
46. [Minimize Connected Groups by Inserting Interval](https://www.internhack.in/learn/dsa/problem/minimize-connected-groups-by-inserting-interval) (Medium)
47. [Minimum Deletions to Make String K-Special](https://www.internhack.in/learn/dsa/problem/minimum-deletions-to-make-string-k-special) (Medium)
48. [Minimum Number of Pushes to Type Word II](https://www.internhack.in/learn/dsa/problem/minimum-number-of-pushes-to-type-word-ii) (Medium)
49. [Minimum Size Subarray in Infinite Array](https://www.internhack.in/learn/dsa/problem/minimum-size-subarray-in-infinite-array) (Medium)
50. [Minimum Size Subarray Sum](https://www.internhack.in/learn/dsa/problem/minimum-size-subarray-sum) (Medium)
51. [Next Permutation](https://www.internhack.in/learn/dsa/problem/next-permutation) (Medium)
52. [Number of Islands](https://www.internhack.in/learn/dsa/problem/number-of-islands) (Medium)
53. [Number of Ways to Select Buildings](https://www.internhack.in/learn/dsa/problem/number-of-ways-to-select-buildings) (Medium)
54. [Query Kth Smallest Trimmed Number](https://www.internhack.in/learn/dsa/problem/query-kth-smallest-trimmed-number) (Medium)
55. [Remove Duplicate Letters](https://www.internhack.in/learn/dsa/problem/remove-duplicate-letters) (Medium)
56. [Removing Minimum Number of Magic Beans](https://www.internhack.in/learn/dsa/problem/removing-minimum-number-of-magic-beans) (Medium)
57. [Shortest String That Contains Three Strings](https://www.internhack.in/learn/dsa/problem/shortest-string-that-contains-three-strings) (Medium)
58. [Sum Game](https://www.internhack.in/learn/dsa/problem/sum-game) (Medium)
59. [Sum of Subarray Ranges](https://www.internhack.in/learn/dsa/problem/sum-of-subarray-ranges) (Medium)
60. [Unique Paths](https://www.internhack.in/learn/dsa/problem/unique-paths) (Medium)
61. [Using a Robot to Print the Lexicographically Smallest String](https://www.internhack.in/learn/dsa/problem/using-a-robot-to-print-the-lexicographically-smallest-string) (Medium)
62. [Validate Binary Search Tree](https://www.internhack.in/learn/dsa/problem/validate-binary-search-tree) (Medium)
63. [Best Time to Buy and Sell Stock IV](https://www.internhack.in/learn/dsa/problem/best-time-to-buy-and-sell-stock-iv) (Hard)
64. [Binary Tree Cameras](https://www.internhack.in/learn/dsa/problem/binary-tree-cameras) (Hard)
65. [Candy](https://www.internhack.in/learn/dsa/problem/candy) (Hard)
66. [Consecutive Numbers Sum](https://www.internhack.in/learn/dsa/problem/consecutive-numbers-sum) (Hard)
67. [Count the Number of Incremovable Subarrays II](https://www.internhack.in/learn/dsa/problem/count-the-number-of-incremovable-subarrays-ii) (Hard)
68. [Find the Shortest Superstring](https://www.internhack.in/learn/dsa/problem/find-the-shortest-superstring) (Hard)
69. [Find the Sum of the Power of All Subsequences](https://www.internhack.in/learn/dsa/problem/find-the-sum-of-the-power-of-all-subsequences) (Hard)
70. [K-th Smallest in Lexicographical Order](https://www.internhack.in/learn/dsa/problem/k-th-smallest-in-lexicographical-order) (Hard)
71. [Kth Smallest Number in Multiplication Table](https://www.internhack.in/learn/dsa/problem/kth-smallest-number-in-multiplication-table) (Hard)
72. [Largest Rectangle in Histogram](https://www.internhack.in/learn/dsa/problem/largest-rectangle-in-histogram) (Hard)
73. [Longest Valid Parentheses](https://www.internhack.in/learn/dsa/problem/longest-valid-parentheses) (Hard)
74. [Max Sum of Rectangle No Larger Than K](https://www.internhack.in/learn/dsa/problem/max-sum-of-rectangle-no-larger-than-k) (Hard)
75. [Maximal Rectangle](https://www.internhack.in/learn/dsa/problem/maximal-rectangle) (Hard)
76. [Maximum Deletions on a String](https://www.internhack.in/learn/dsa/problem/maximum-deletions-on-a-string) (Hard)
77. [Maximum Performance of a Team](https://www.internhack.in/learn/dsa/problem/maximum-performance-of-a-team) (Hard)
78. [Maximum Points After Collecting Coins From All Nodes](https://www.internhack.in/learn/dsa/problem/maximum-points-after-collecting-coins-from-all-nodes) (Hard)
79. [Maximum Strength of K Disjoint Subarrays](https://www.internhack.in/learn/dsa/problem/maximum-strength-of-k-disjoint-subarrays) (Hard)
80. [Median of Two Sorted Arrays](https://www.internhack.in/learn/dsa/problem/median-of-two-sorted-arrays) (Hard)
81. [Minimum Cost to Make at Least One Valid Path in a Grid](https://www.internhack.in/learn/dsa/problem/minimum-cost-to-make-at-least-one-valid-path-in-a-grid) (Hard)
82. [Minimum Cost to Merge Stones](https://www.internhack.in/learn/dsa/problem/minimum-cost-to-merge-stones) (Hard)
83. [Minimum Cost Walk in Weighted Graph](https://www.internhack.in/learn/dsa/problem/minimum-cost-walk-in-weighted-graph) (Hard)
84. [Minimum Number of Refueling Stops](https://www.internhack.in/learn/dsa/problem/minimum-number-of-refueling-stops) (Hard)
85. [Minimum Number of Taps to Open to Water a Garden](https://www.internhack.in/learn/dsa/problem/minimum-number-of-taps-to-open-to-water-a-garden) (Hard)
86. [Minimum Number of Visited Cells in a Grid](https://www.internhack.in/learn/dsa/problem/minimum-number-of-visited-cells-in-a-grid) (Hard)
87. [Minimum Runes to Add to Cast Spell](https://www.internhack.in/learn/dsa/problem/minimum-runes-to-add-to-cast-spell) (Hard)
88. [Number of Subarrays With AND Value of K](https://www.internhack.in/learn/dsa/problem/number-of-subarrays-with-and-value-of-k) (Hard)
89. [Number of Ways to Reorder Array to Get Same BST](https://www.internhack.in/learn/dsa/problem/number-of-ways-to-reorder-array-to-get-same-bst) (Hard)
90. [Number of Ways to Wear Different Hats to Each Other](https://www.internhack.in/learn/dsa/problem/number-of-ways-to-wear-different-hats-to-each-other) (Hard)
91. [Painting the Walls](https://www.internhack.in/learn/dsa/problem/painting-the-walls) (Hard)
92. [Put Marbles in Bags](https://www.internhack.in/learn/dsa/problem/put-marbles-in-bags) (Hard)
93. [Remove Max Number of Edges to Keep Graph Fully Traversable](https://www.internhack.in/learn/dsa/problem/remove-max-number-of-edges-to-keep-graph-fully-traversable) (Hard)
94. [Sliding Window Maximum](https://www.internhack.in/learn/dsa/problem/sliding-window-maximum) (Hard)
95. [Split Array Largest Sum](https://www.internhack.in/learn/dsa/problem/split-array-largest-sum) (Hard)
96. [Swim in Rising Water](https://www.internhack.in/learn/dsa/problem/swim-in-rising-water) (Hard)
97. [Text Justification](https://www.internhack.in/learn/dsa/problem/text-justification) (Hard)
98. [Trapping Rain Water](https://www.internhack.in/learn/dsa/problem/trapping-rain-water) (Hard)
99. [Wildcard Matching](https://www.internhack.in/learn/dsa/problem/wildcard-matching) (Hard)
100. [Word Search II](https://www.internhack.in/learn/dsa/problem/word-search-ii) (Hard)

## Prepare for the rest of the DE Shaw 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)
- [Visa](https://www.internhack.in/learn/dsa/companies/visa) (124)
- [Flipkart](https://www.internhack.in/learn/dsa/companies/flipkart) (117)
- [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)
