Maximum Cities Visited Traveling West to East with Lexicographic City Names
Problem Description
You are given n cities. Each city has:
- a city name
names[i] - an east-west coordinate
x[i], where a smaller coordinate means farther west and a larger coordinate means...
Example
Unlock to view complete problem details
and practice with sample input/output
Was this article helpful?
View Test Cases & Run Code requires membership
Standard Input
Execution Result:
