Uber String Coding Interview Questions
56 string coding problems are tagged as asked at Uber in interviews and online assessments reported by candidates. By difficulty they split into 15 basic, 29 intermediate and 12 advanced. The topics they most often combine with are Two Pointers, Math, Matrix, Stack.
Reported questions change over time and are not a guarantee of what you will be asked, so use the list to see which patterns Uber tends to test. For each problem, practise explaining your approach, its time and space cost and the edge cases before you write the code; every problem opens in an editor that runs your code against test cases.
Coding problems
- Valid Parentheses (Basic)
- Longest Substring Without Repeats (Intermediate)
- Valid Palindrome (Basic)
- Decode Ways (Intermediate)
- Longest Palindromic Substring (Intermediate)
- Valid Anagram (Basic)
- Reverse Vowels of a String (Basic)
- Roman to Integer (Intermediate)
- Excel Column Number (Basic)
- Longest Valid Parentheses (Advanced)
- Longest Palindromic Subsequence (Intermediate)
- Minimum Window Substring (Advanced)
- Shortest Palindrome (Advanced)
- Add Strings (Basic)
- Reconstruct Itinerary (Advanced)
- Text Justification (Intermediate)
- Open the Lock (Intermediate)
- Smallest String With Swaps (Intermediate)
- Regions Cut by Slashes (Intermediate)
- Alien Dictionary Order (Advanced)
- Regular Expression Matching (Advanced)
- Ones and Zeroes (Intermediate)
- Freedom Trail (Advanced)
- Two Keys Keyboard (Intermediate)
- Repeated String Match (Intermediate)
- String to Integer (Intermediate)
- Replace Words (Intermediate)
- Word Search (Intermediate)
- Word Search II Count (Advanced)
- Count Binary Substrings (Basic)
- Goat Latin (Basic)
- Number of Matching Subsequences (Intermediate)
- Basic Calculator (Advanced)
- Basic Calculator II (Intermediate)
- Simplify Path (Intermediate)
- Exclusive Time of Functions (Intermediate)
- Task Scheduler (Intermediate)
- Valid Sudoku (Intermediate)
- Valid Palindrome With One Deletion (Basic)
- Time Based Key-Value Store (Intermediate)
- Sudoku Solver (Advanced)
- Letter Combinations of a Phone Number (Intermediate)
- Word Break II (Advanced)
- Implement Trie Operations (Intermediate)
- Browser History (Intermediate)
- Number of Strings That Appear as Substrings in Word (Basic)
- One Edit Distance (Basic)
- Word Pattern (Basic)
- Palindrome Permutation Check (Basic)
- Merge Strings Alternately (Basic)
- Construct K Palindrome Strings (Intermediate)
- Number of Wonderful Substrings (Advanced)
- Remove Comments (Intermediate)
- Rotating the Box (Intermediate)
- Fizz Buzz (Basic)
- Longest Repeating Character Replacement (Intermediate)
Related
- Uber coding interview questions
- String problems
- Uber basic problems
- Uber intermediate problems
- Uber advanced problems
- Company interview roadmaps
- All interview guides
Frequently asked questions
How should I use the Uber problem list?
Start with the basic problems, then the intermediate and advanced ones, and note which topics repeat. Solve each under a timer, then read the explanation.
Are these the exact Uber interview questions?
They are problems candidates reported being asked. Companies rotate questions, so use them to learn the patterns, not to predict the exact question.