Halloween Sale
Unlock all premium questions for over 30% off
Rearrange House Numbers in Neighborhoods
Medium
Question
Each row houses[i] of the 2D array houses is one city neighborhood, written as its list of integer house numbers. Move numbers between rows so that, at the end, all three of these are true:
...
Asked at:Google
More Google interview questions
- Count Distinct Elements in Each Windoweasy
- Merge Two Sorted Interval Listsmedium
- Fill Equation with Missing Operatorshard
- Cake Order Completion Counteasy
- Find Minimum Increment Moveseasy
- Find Greatest Digit Tripleeasy
- Find Shortest Tile Moveshard
- ATM Withdrawal Queueeasy
OfferRetriever
Master technical interviews with real questions from top companies. Build your confidence and career.
LEGAL
© 2026 Purple Business Holdings LLC. All rights reserved. See Terms of Service.