0 day streak

Urban Company coding interview questions

ProductE-commerce and consumer India Machine coding / LLD AI-assisted coding

Ranked by how often candidates report them. Each opens in the editor with hidden tests, an animated walkthrough and solutions in four languages; a question you solve once counts for every company that asks it.

0%ready
Your level: practise every reported question.
ProgressTitleDifficultyTopicHow often hereAlso asked atNext step
Pacific Atlantic Water FlowMulti source BFS Medium Graphs Google, Amazon, Nutanix +3 Solve
Trapping Rain WaterTwo Pointer Hard Arrays & Hashing Google, Amazon, Microsoft +88 Solve
CandyGreedy Hard Arrays & Hashing Nutanix, Dropbox, Goldman Sachs +7 Solve
Maximum Profit in Job Scheduling1D DP Hard Dynamic Programming Amazon, Airbnb, Snowflake +15 Solve
Number of IslandsConnected Components Medium Graphs Google, Amazon, Microsoft +114 Solve
Rotting OrangesMulti source BFS Medium Graphs Google, Amazon, Microsoft +48 Solve
Course Schedule IITopological Sort Medium Graphs Google, Amazon, Meta +42 Solve
Find Peak ElementUnique 1-D Binary Search Medium Binary Search Meta, Netflix, Uber +26 Solve
Evaluate DivisionConnected Components Medium Graphs Amazon, Apple, Uber +17 Solve
Frequency of the Most Frequent ElementSliding Window · Variable Medium Arrays & Hashing Goldman Sachs, Red Hat, Brex +1 Solve
Surrounded RegionsDFS - Complement Trick Medium Graphs Apple, Uber, Nutanix +4 Solve
Search in Rotated Sorted ArrayRotated Array Medium Binary Search Amazon, Microsoft, Apple +59 Solve
Binary Tree CamerasPostorder + Multiple Return Values Hard Trees & BST Nutanix, eBay, Quora +5 Solve
Split Array Largest SumBinary Search on Answer Space Hard Binary Search Amazon, Uber, Pinterest +16 Solve
Stock Price FluctuationAdvanced Medium Heaps MongoDB, Atlassian Solve
Binary Tree Maximum Path SumPostorder + Multiple Return Values Hard Trees & BST Google, Amazon, Meta +29 Solve
Jump GameGreedy Medium Arrays & Hashing Google, Apple, DoorDash +28 Solve
Jump Game IIGreedy Medium Arrays & Hashing Google, DoorDash, Nutanix +25 Solve
Longest Substring Without Repeating CharactersSliding Window · Variable Medium Arrays & Hashing Google, Amazon, Microsoft +114 Solve
Merge IntervalsBasics Medium Intervals Google, Amazon, Microsoft +107 Solve
Longest Common SubsequenceStrings Medium Dynamic Programming Google, Amazon, Apple +20 Solve
Copy List with Random PointerMiscellaneous Medium Linked List Google, Amazon, Microsoft +23 Solve
Clone GraphBFS / DFS Basics Medium Graphs Google, Microsoft, Meta +11 Solve
Find Minimum in Rotated Sorted ArrayRotated Array Medium Binary Search Microsoft, Nutanix, Expedia Group +11 Solve
Valid PalindromeTwo Pointer Easy Arrays & Hashing Microsoft, Meta, Apple +53 Solve
Find the Index of the First Occurrence in a StringString Matching (KMP) Easy Arrays & Hashing Dropbox, Zscaler, Discord +12 Solve
Also reported, being added to AlgoRung (7)

Paint House IV · Minimum Deletions to Make String Balanced · Count of Smaller Numbers After Self · Aggressive Cows · Decode Ways II · Can Make Palindrome from Substring · Missing Element in Sorted Array

Questions people ask

What coding questions does Urban Company ask most?

Pacific Atlantic Water Flow, Trapping Rain Water, Candy, Maximum Profit in Job Scheduling, Number of Islands, Rotting Oranges, Course Schedule II, Find Peak Element.

Which topics come up in Urban Company coding rounds?

graphs, dynamic programming, binary search, sliding window, trees, greedy.

How hard are Urban Company coding questions?

Of the reported questions, 2 are easy, 18 medium and 6 hard. A 45 to 60 minute live interview where you solve one or two data-structures-and-algorithms problems while explaining your thinking. Interviewers score problem solving, code quality, testing and communication.