DE Shaw Coding Interview Questions

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 (Easy)
  2. Count Binary Substrings (Easy)
  3. Determine the Winner of a Bowling Game (Easy)
  4. Excel Sheet Column Title (Easy)
  5. Find the Maximum Divisibility Score (Easy)
  6. Linked List Cycle (Easy)
  7. Majority Element (Easy)
  8. Merge Sorted Array (Easy)
  9. Relative Sort Array (Easy)
  10. Take Gifts From the Richest Pile (Easy)
  11. Two Sum (Easy)
  12. Valid Parentheses (Easy)
  13. 4Sum (Medium)
  14. Average Waiting Time (Medium)
  15. Basic Calculator II (Medium)
  16. Best Time to Buy and Sell Stock II (Medium)
  17. Combination Sum (Medium)
  18. Copy List with Random Pointer (Medium)
  19. Decode Ways (Medium)
  20. Equal Row and Column Pairs (Medium)
  21. Find First and Last Position of Element in Sorted Array (Medium)
  22. Find Minimum Cost to Remove Array Elements (Medium)
  23. Find Peak Calling Hours for Each City (Medium)
  24. Find the Duplicate Number (Medium)
  25. Find Triangular Sum of an Array (Medium)
  26. Flatten Nested List Iterator (Medium)
  27. Furthest Building You Can Reach (Medium)
  28. Generate Parentheses (Medium)
  29. House Robber (Medium)
  30. House Robber II (Medium)
  31. Letter Combinations of a Phone Number (Medium)
  32. Longest Consecutive Sequence (Medium)
  33. Longest Substring Without Repeating Characters (Medium)
  34. LRU Cache (Medium)
  35. Max Number of K-Sum Pairs (Medium)
  36. Maximal Square (Medium)
  37. Maximize Score of Numbers in Ranges (Medium)
  38. Maximum Number of Points with Cost (Medium)
  39. Maximum Number of Subsequences After One Inserting (Medium)
  40. Maximum OR (Medium)
  41. Maximum Points Tourist Can Earn (Medium)
  42. Maximum Product Subarray (Medium)
  43. Maximum Subarray (Medium)
  44. Maximum Subsequence Score (Medium)
  45. Median of a Row Wise Sorted Matrix (Medium)
  46. Minimize Connected Groups by Inserting Interval (Medium)
  47. Minimum Deletions to Make String K-Special (Medium)
  48. Minimum Number of Pushes to Type Word II (Medium)
  49. Minimum Size Subarray in Infinite Array (Medium)
  50. Minimum Size Subarray Sum (Medium)
  51. Next Permutation (Medium)
  52. Number of Islands (Medium)
  53. Number of Ways to Select Buildings (Medium)
  54. Query Kth Smallest Trimmed Number (Medium)
  55. Remove Duplicate Letters (Medium)
  56. Removing Minimum Number of Magic Beans (Medium)
  57. Shortest String That Contains Three Strings (Medium)
  58. Sum Game (Medium)
  59. Sum of Subarray Ranges (Medium)
  60. Unique Paths (Medium)
  61. Using a Robot to Print the Lexicographically Smallest String (Medium)
  62. Validate Binary Search Tree (Medium)
  63. Best Time to Buy and Sell Stock IV (Hard)
  64. Binary Tree Cameras (Hard)
  65. Candy (Hard)
  66. Consecutive Numbers Sum (Hard)
  67. Count the Number of Incremovable Subarrays II (Hard)
  68. Find the Shortest Superstring (Hard)
  69. Find the Sum of the Power of All Subsequences (Hard)
  70. K-th Smallest in Lexicographical Order (Hard)
  71. Kth Smallest Number in Multiplication Table (Hard)
  72. Largest Rectangle in Histogram (Hard)
  73. Longest Valid Parentheses (Hard)
  74. Max Sum of Rectangle No Larger Than K (Hard)
  75. Maximal Rectangle (Hard)
  76. Maximum Deletions on a String (Hard)
  77. Maximum Performance of a Team (Hard)
  78. Maximum Points After Collecting Coins From All Nodes (Hard)
  79. Maximum Strength of K Disjoint Subarrays (Hard)
  80. Median of Two Sorted Arrays (Hard)
  81. Minimum Cost to Make at Least One Valid Path in a Grid (Hard)
  82. Minimum Cost to Merge Stones (Hard)
  83. Minimum Cost Walk in Weighted Graph (Hard)
  84. Minimum Number of Refueling Stops (Hard)
  85. Minimum Number of Taps to Open to Water a Garden (Hard)
  86. Minimum Number of Visited Cells in a Grid (Hard)
  87. Minimum Runes to Add to Cast Spell (Hard)
  88. Number of Subarrays With AND Value of K (Hard)
  89. Number of Ways to Reorder Array to Get Same BST (Hard)
  90. Number of Ways to Wear Different Hats to Each Other (Hard)
  91. Painting the Walls (Hard)
  92. Put Marbles in Bags (Hard)
  93. Remove Max Number of Edges to Keep Graph Fully Traversable (Hard)
  94. Sliding Window Maximum (Hard)
  95. Split Array Largest Sum (Hard)
  96. Swim in Rising Water (Hard)
  97. Text Justification (Hard)
  98. Trapping Rain Water (Hard)
  99. Wildcard Matching (Hard)
  100. Word Search II (Hard)

Prepare for the rest of the DE Shaw process

Other companies