Maximum Cities Visited Traveling West to East with Lexicographic City Names
Asked at Upstart · Coding Questions · Difficulty: Medium
You are given `n` cities. Each city has a name `names[i]` and an east-west coordinate `x[i]` (smaller = farther west, larger = farther east).
Loading the problem…
More Upstart interview questions
- Design an Online Chess Platform (Matchmaking, Live Games, Clocks)
- Decrypt String (Two-Cipher Relay)
- Parse a Comma-Separated String with Quoted Fields
- Remove Duplicate Integers While Preserving Order
- Babysitter Quote with Time-of-Day Rate Bands
- addDrama