The Salesforce onsite contained two reported coding rounds. The first focused on reconstructing flight routes from directed city-to-city connections. The second contained two classic graph-style problems: identifying a celebrity through a knows(a, b) API and finding the minimum number of single-character transformations between two words.
Interview Details
Onsite Round 1 — Find All Flight Paths
You are given a collection of directed flight connections. For example: