RustRust byteAdvanced~4h time-box

Route Chains

Arrange route segments into a circular path. You're given a collection of bidirectional route segments. Each segment connects two numbered stops — for example, a segment (2, 3) connects stop 2 to stop 3 and can be traversed in either direction.

Route Chains
Step 1
Clone the starter repo
Candidate gets the full project locally — README, source, tests, runner config.
Step 2
Run the visible tests
Public test file is right there. Expectations are explicit from minute one.
Step 3
Make tests pass, push
Candidate works in their own style, pushes reviewable commits for your team.
Starter repo
What candidates clone
1 files
  • Cargo.toml

The full README and the hidden test suite are available once you open the byte in your CodeSubmit workspace. Candidates never see the hidden tests.

Skills tested
graph theorysearching
Difficulty
Advanced

Non-trivial design choices. Tests multiple skills under time pressure.

Also available in
Keep exploring

More Rust bytes

See all Rust bytes