Available question text
Given city prices (and optionally connections), identify which cities are "expensive" — e.g., whose price exceeds a given threshold or is strictly greater than all directly connected/neighboring cities — and return their indices. This is solved with a single pass or simple graph traversal comparing each city's cost to the threshold or its neighbors.
Related questions
Continue with questions that share topics or the same question type.
Sources · 1 reference
These records explain where the question appears. A company tag or candidate report does not guarantee a future interview question.
Hello Interview · 1 record
No company association
Leetcode 2987. Find Expensive Cities
Reported date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source