# Uber Coding Interview Questions

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

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

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](https://www.internhack.in/learn/dsa/problem/add-digits) (Easy)
2. [Add Strings](https://www.internhack.in/learn/dsa/problem/add-strings) (Easy)
3. [Best Time to Buy and Sell Stock](https://www.internhack.in/learn/dsa/problem/best-time-to-buy-and-sell-stock) (Easy)
4. [Calculate Digit Sum of a String](https://www.internhack.in/learn/dsa/problem/calculate-digit-sum-of-a-string) (Easy)
5. [Check if a String Is an Acronym of Words](https://www.internhack.in/learn/dsa/problem/check-if-a-string-is-an-acronym-of-words) (Easy)
6. [Check If String Is a Prefix of Array](https://www.internhack.in/learn/dsa/problem/check-if-string-is-a-prefix-of-array) (Easy)
7. [Climbing Stairs](https://www.internhack.in/learn/dsa/problem/climbing-stairs) (Easy)
8. [Closest Binary Search Tree Value](https://www.internhack.in/learn/dsa/problem/closest-binary-search-tree-value) (Easy)
9. [Contains Duplicate](https://www.internhack.in/learn/dsa/problem/contains-duplicate) (Easy)
10. [Count Binary Substrings](https://www.internhack.in/learn/dsa/problem/count-binary-substrings) (Easy)
11. [Create Target Array in the Given Order](https://www.internhack.in/learn/dsa/problem/create-target-array-in-the-given-order) (Easy)
12. [Design Parking System](https://www.internhack.in/learn/dsa/problem/design-parking-system) (Easy)
13. [Excel Sheet Column Number](https://www.internhack.in/learn/dsa/problem/excel-sheet-column-number) (Easy)
14. [Final Prices With a Special Discount in a Shop](https://www.internhack.in/learn/dsa/problem/final-prices-with-a-special-discount-in-a-shop) (Easy)
15. [Find the Distance Value Between Two Arrays](https://www.internhack.in/learn/dsa/problem/find-the-distance-value-between-two-arrays) (Easy)
16. [Fixed Point](https://www.internhack.in/learn/dsa/problem/fixed-point) (Easy)
17. [Flood Fill](https://www.internhack.in/learn/dsa/problem/flood-fill) (Easy)
18. [Happy Number](https://www.internhack.in/learn/dsa/problem/happy-number) (Easy)
19. [Intersection of Multiple Arrays](https://www.internhack.in/learn/dsa/problem/intersection-of-multiple-arrays) (Easy)
20. [Isomorphic Strings](https://www.internhack.in/learn/dsa/problem/isomorphic-strings) (Easy)
21. [Kth Missing Positive Number](https://www.internhack.in/learn/dsa/problem/kth-missing-positive-number) (Easy)
22. [Linked List Cycle](https://www.internhack.in/learn/dsa/problem/linked-list-cycle) (Easy)
23. [Longest Common Prefix](https://www.internhack.in/learn/dsa/problem/longest-common-prefix) (Easy)
24. [Majority Element](https://www.internhack.in/learn/dsa/problem/majority-element) (Easy)
25. [Maximize Sum Of Array After K Negations](https://www.internhack.in/learn/dsa/problem/maximize-sum-of-array-after-k-negations) (Easy)
26. [Maximum Average Subarray I](https://www.internhack.in/learn/dsa/problem/maximum-average-subarray-i) (Easy)
27. [Maximum Depth of Binary Tree](https://www.internhack.in/learn/dsa/problem/maximum-depth-of-binary-tree) (Easy)
28. [Meeting Rooms](https://www.internhack.in/learn/dsa/problem/meeting-rooms) (Easy)
29. [Merge Strings Alternately](https://www.internhack.in/learn/dsa/problem/merge-strings-alternately) (Easy)
30. [Move Zeroes](https://www.internhack.in/learn/dsa/problem/move-zeroes) (Easy)
31. [Next Greater Element I](https://www.internhack.in/learn/dsa/problem/next-greater-element-i) (Easy)
32. [Number of Strings That Appear as Substrings in Word](https://www.internhack.in/learn/dsa/problem/number-of-strings-that-appear-as-substrings-in-word) (Easy)
33. [Palindrome Number](https://www.internhack.in/learn/dsa/problem/palindrome-number) (Easy)
34. [Palindrome Permutation](https://www.internhack.in/learn/dsa/problem/palindrome-permutation) (Easy)
35. [Points That Intersect With Cars](https://www.internhack.in/learn/dsa/problem/points-that-intersect-with-cars) (Easy)
36. [Ransom Note](https://www.internhack.in/learn/dsa/problem/ransom-note) (Easy)
37. [Recyclable and Low Fat Products](https://www.internhack.in/learn/dsa/problem/recyclable-and-low-fat-products) (Easy)
38. [Remove Duplicates from Sorted Array](https://www.internhack.in/learn/dsa/problem/remove-duplicates-from-sorted-array) (Easy)
39. [Remove Element](https://www.internhack.in/learn/dsa/problem/remove-element) (Easy)
40. [Replace Employee ID With The Unique Identifier](https://www.internhack.in/learn/dsa/problem/replace-employee-id-with-the-unique-identifier) (Easy)
41. [Reverse Linked List](https://www.internhack.in/learn/dsa/problem/reverse-linked-list) (Easy)
42. [Roman to Integer](https://www.internhack.in/learn/dsa/problem/roman-to-integer) (Easy)
43. [Sqrt(x)](https://www.internhack.in/learn/dsa/problem/sqrtx) (Easy)
44. [Squares of a Sorted Array](https://www.internhack.in/learn/dsa/problem/squares-of-a-sorted-array) (Easy)
45. [Strobogrammatic Number](https://www.internhack.in/learn/dsa/problem/strobogrammatic-number) (Easy)
46. [Sum of Left Leaves](https://www.internhack.in/learn/dsa/problem/sum-of-left-leaves) (Easy)
47. [Time Needed to Buy Tickets](https://www.internhack.in/learn/dsa/problem/time-needed-to-buy-tickets) (Easy)
48. [Two Sum](https://www.internhack.in/learn/dsa/problem/two-sum) (Easy)
49. [Valid Anagram](https://www.internhack.in/learn/dsa/problem/valid-anagram) (Easy)
50. [Valid Palindrome](https://www.internhack.in/learn/dsa/problem/valid-palindrome) (Easy)
51. [Valid Palindrome II](https://www.internhack.in/learn/dsa/problem/valid-palindrome-ii) (Easy)
52. [Valid Parentheses](https://www.internhack.in/learn/dsa/problem/valid-parentheses) (Easy)
53. [Verifying an Alien Dictionary](https://www.internhack.in/learn/dsa/problem/verifying-an-alien-dictionary) (Easy)
54. [Word Pattern](https://www.internhack.in/learn/dsa/problem/word-pattern) (Easy)
55. [Alien Dictionary](https://www.internhack.in/learn/dsa/problem/alien-dictionary) (Hard)
56. [All O\`one Data Structure](https://www.internhack.in/learn/dsa/problem/all-oone-data-structure) (Hard)
57. [Basic Calculator](https://www.internhack.in/learn/dsa/problem/basic-calculator) (Hard)
58. [Binary Tree Maximum Path Sum](https://www.internhack.in/learn/dsa/problem/binary-tree-maximum-path-sum) (Hard)
59. [Burst Balloons](https://www.internhack.in/learn/dsa/problem/burst-balloons) (Hard)
60. [Candy](https://www.internhack.in/learn/dsa/problem/candy) (Hard)
61. [Check for Contradictions in Equations](https://www.internhack.in/learn/dsa/problem/check-for-contradictions-in-equations) (Hard)
62. [Design In-Memory File System](https://www.internhack.in/learn/dsa/problem/design-in-memory-file-system) (Hard)
63. [Design Search Autocomplete System](https://www.internhack.in/learn/dsa/problem/design-search-autocomplete-system) (Hard)
64. [Dungeon Game](https://www.internhack.in/learn/dsa/problem/dungeon-game) (Hard)
65. [Find Median from Data Stream](https://www.internhack.in/learn/dsa/problem/find-median-from-data-stream) (Hard)
66. [Find the Closest Palindrome](https://www.internhack.in/learn/dsa/problem/find-the-closest-palindrome) (Hard)
67. [Freedom Trail](https://www.internhack.in/learn/dsa/problem/freedom-trail) (Hard)
68. [Human Traffic of Stadium](https://www.internhack.in/learn/dsa/problem/human-traffic-of-stadium) (Hard)
69. [Insert Delete GetRandom O(1) - Duplicates allowed](https://www.internhack.in/learn/dsa/problem/insert-delete-getrandom-o1-duplicates-allowed) (Hard)
70. [IPO](https://www.internhack.in/learn/dsa/problem/ipo) (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. [LFU Cache](https://www.internhack.in/learn/dsa/problem/lfu-cache) (Hard)
74. [Longest Increasing Path in a Matrix](https://www.internhack.in/learn/dsa/problem/longest-increasing-path-in-a-matrix) (Hard)
75. [Longest Valid Parentheses](https://www.internhack.in/learn/dsa/problem/longest-valid-parentheses) (Hard)
76. [Median of Two Sorted Arrays](https://www.internhack.in/learn/dsa/problem/median-of-two-sorted-arrays) (Hard)
77. [Merge k Sorted Lists](https://www.internhack.in/learn/dsa/problem/merge-k-sorted-lists) (Hard)
78. [Minimum Window Substring](https://www.internhack.in/learn/dsa/problem/minimum-window-substring) (Hard)
79. [Number of Islands II](https://www.internhack.in/learn/dsa/problem/number-of-islands-ii) (Hard)
80. [Optimal Account Balancing](https://www.internhack.in/learn/dsa/problem/optimal-account-balancing) (Hard)
81. [Patching Array](https://www.internhack.in/learn/dsa/problem/patching-array) (Hard)
82. [Reconstruct Itinerary](https://www.internhack.in/learn/dsa/problem/reconstruct-itinerary) (Hard)
83. [Regular Expression Matching](https://www.internhack.in/learn/dsa/problem/regular-expression-matching) (Hard)
84. [Reverse Nodes in k-Group](https://www.internhack.in/learn/dsa/problem/reverse-nodes-in-k-group) (Hard)
85. [Robot Room Cleaner](https://www.internhack.in/learn/dsa/problem/robot-room-cleaner) (Hard)
86. [Russian Doll Envelopes](https://www.internhack.in/learn/dsa/problem/russian-doll-envelopes) (Hard)
87. [Serialize and Deserialize Binary Tree](https://www.internhack.in/learn/dsa/problem/serialize-and-deserialize-binary-tree) (Hard)
88. [Shortest Palindrome](https://www.internhack.in/learn/dsa/problem/shortest-palindrome) (Hard)
89. [Sliding Window Maximum](https://www.internhack.in/learn/dsa/problem/sliding-window-maximum) (Hard)
90. [Split Array Largest Sum](https://www.internhack.in/learn/dsa/problem/split-array-largest-sum) (Hard)
91. [Strange Printer](https://www.internhack.in/learn/dsa/problem/strange-printer) (Hard)
92. [Sudoku Solver](https://www.internhack.in/learn/dsa/problem/sudoku-solver) (Hard)
93. [Text Justification](https://www.internhack.in/learn/dsa/problem/text-justification) (Hard)
94. [The Skyline Problem](https://www.internhack.in/learn/dsa/problem/the-skyline-problem) (Hard)
95. [Trapping Rain Water](https://www.internhack.in/learn/dsa/problem/trapping-rain-water) (Hard)
96. [Trips and Users](https://www.internhack.in/learn/dsa/problem/trips-and-users) (Hard)
97. [Word Break II](https://www.internhack.in/learn/dsa/problem/word-break-ii) (Hard)
98. [Word Ladder](https://www.internhack.in/learn/dsa/problem/word-ladder) (Hard)
99. [Word Ladder II](https://www.internhack.in/learn/dsa/problem/word-ladder-ii) (Hard)
100. [Word Search II](https://www.internhack.in/learn/dsa/problem/word-search-ii) (Hard)

## Prepare for the rest of the Uber 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)
- [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)
- [DE Shaw](https://www.internhack.in/learn/dsa/companies/de-shaw) (124)
- [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)
