</>OfferRetriever
DashboardDiscuss
NEW

Summer Sale

Limited Time Deal: Unlock all premium questions for over 30% off

$10.42$7.08

14

:

03

:

44

:

53

Get this deal
Back to Dashboard

Find Minimum City Hops

Medium

You are given a list of cities, where each city is represented as a 3-character lowercase string. Two cities are directly connected if they differ in exactly one character position.

Given a startCity and an endCity, find the minimum number of hops to travel from startCity to endCity through the network of connected cities. Return -1 if endCity is not reachable from startCity. ...

OfferRetriever

Master technical interviews with real questions from top companies. Build your confidence and career.

PRODUCT
PricingDashboardDiscussOfferRetriever vs LeetCode
LEGAL
POPULAR COMPANIES
GoogleMetaAmazonMicrosoftNetflixStripeUberTikTokBrowse all companies →

© 2026 Purple Business Holdings LLC. All rights reserved. See Terms of Service.