Uber Coding Interview Questions

381 DSA problems tagged as asked in Uber coding interviews and online assessments. Below are the first 100 of 381: 54 easy, 0 medium and 46 hard. Start with the easy ones, then move to medium. Practise free on InternHack and track your progress.

Uber DSA problems, easiest first

  1. Add Digits (Easy)
  2. Add Strings (Easy)
  3. Best Time to Buy and Sell Stock (Easy)
  4. Calculate Digit Sum of a String (Easy)
  5. Check if a String Is an Acronym of Words (Easy)
  6. Check If String Is a Prefix of Array (Easy)
  7. Climbing Stairs (Easy)
  8. Closest Binary Search Tree Value (Easy)
  9. Contains Duplicate (Easy)
  10. Count Binary Substrings (Easy)
  11. Create Target Array in the Given Order (Easy)
  12. Design Parking System (Easy)
  13. Excel Sheet Column Number (Easy)
  14. Final Prices With a Special Discount in a Shop (Easy)
  15. Find the Distance Value Between Two Arrays (Easy)
  16. Fixed Point (Easy)
  17. Flood Fill (Easy)
  18. Happy Number (Easy)
  19. Intersection of Multiple Arrays (Easy)
  20. Isomorphic Strings (Easy)
  21. Kth Missing Positive Number (Easy)
  22. Linked List Cycle (Easy)
  23. Longest Common Prefix (Easy)
  24. Majority Element (Easy)
  25. Maximize Sum Of Array After K Negations (Easy)
  26. Maximum Average Subarray I (Easy)
  27. Maximum Depth of Binary Tree (Easy)
  28. Meeting Rooms (Easy)
  29. Merge Strings Alternately (Easy)
  30. Move Zeroes (Easy)
  31. Next Greater Element I (Easy)
  32. Number of Strings That Appear as Substrings in Word (Easy)
  33. Palindrome Number (Easy)
  34. Palindrome Permutation (Easy)
  35. Points That Intersect With Cars (Easy)
  36. Ransom Note (Easy)
  37. Recyclable and Low Fat Products (Easy)
  38. Remove Duplicates from Sorted Array (Easy)
  39. Remove Element (Easy)
  40. Replace Employee ID With The Unique Identifier (Easy)
  41. Reverse Linked List (Easy)
  42. Roman to Integer (Easy)
  43. Sqrt(x) (Easy)
  44. Squares of a Sorted Array (Easy)
  45. Strobogrammatic Number (Easy)
  46. Sum of Left Leaves (Easy)
  47. Time Needed to Buy Tickets (Easy)
  48. Two Sum (Easy)
  49. Valid Anagram (Easy)
  50. Valid Palindrome (Easy)
  51. Valid Palindrome II (Easy)
  52. Valid Parentheses (Easy)
  53. Verifying an Alien Dictionary (Easy)
  54. Word Pattern (Easy)
  55. Alien Dictionary (Hard)
  56. All O`one Data Structure (Hard)
  57. Basic Calculator (Hard)
  58. Binary Tree Maximum Path Sum (Hard)
  59. Burst Balloons (Hard)
  60. Candy (Hard)
  61. Check for Contradictions in Equations (Hard)
  62. Design In-Memory File System (Hard)
  63. Design Search Autocomplete System (Hard)
  64. Dungeon Game (Hard)
  65. Find Median from Data Stream (Hard)
  66. Find the Closest Palindrome (Hard)
  67. Freedom Trail (Hard)
  68. Human Traffic of Stadium (Hard)
  69. Insert Delete GetRandom O(1) - Duplicates allowed (Hard)
  70. IPO (Hard)
  71. Kth Smallest Number in Multiplication Table (Hard)
  72. Largest Rectangle in Histogram (Hard)
  73. LFU Cache (Hard)
  74. Longest Increasing Path in a Matrix (Hard)
  75. Longest Valid Parentheses (Hard)
  76. Median of Two Sorted Arrays (Hard)
  77. Merge k Sorted Lists (Hard)
  78. Minimum Window Substring (Hard)
  79. Number of Islands II (Hard)
  80. Optimal Account Balancing (Hard)
  81. Patching Array (Hard)
  82. Reconstruct Itinerary (Hard)
  83. Regular Expression Matching (Hard)
  84. Reverse Nodes in k-Group (Hard)
  85. Robot Room Cleaner (Hard)
  86. Russian Doll Envelopes (Hard)
  87. Serialize and Deserialize Binary Tree (Hard)
  88. Shortest Palindrome (Hard)
  89. Sliding Window Maximum (Hard)
  90. Split Array Largest Sum (Hard)
  91. Strange Printer (Hard)
  92. Sudoku Solver (Hard)
  93. Text Justification (Hard)
  94. The Skyline Problem (Hard)
  95. Trapping Rain Water (Hard)
  96. Trips and Users (Hard)
  97. Word Break II (Hard)
  98. Word Ladder (Hard)
  99. Word Ladder II (Hard)
  100. Word Search II (Hard)

Prepare for the rest of the Uber process

Other companies