RustRust byteStandard~3h time-box

Access Badge

Manage badge factory settings. When an access badge is issued, it starts out unnamed.

Access Badge
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
lifetimesmutabilityrandomnessslices
Difficulty
Standard

Standard engineering judgment. Multiple edge cases worth handling.

Keep exploring

More Rust bytes

See all Rust bytes
Alert Priority
RustRust
Advanced~4h
Alert Priority

Your team maintains an internal alert triage service. Each incoming alert carries five severity tags — tokens composed of a level indicator and a category code (e.g. 4S 5H 7C 8D JC). The ranking rules for these tag sets follow standard poker hand rankings.

Cargo.toml
Bundle Pricing
RustRust
Advanced~4h
Bundle Pricing

An online retailer sells five distinct product SKUs. Each item costs $8 at full price. To encourage bundle purchases, the retailer offers tiered discounts when a customer buys distinct items together:

Cargo.toml
Cohort Roster
RustRust
Standard~2h
Cohort Roster

You are building a roster system for a developer training academy. Participants are assigned to numbered cohorts based on their experience track. The program coordinator needs to view participants grouped by cohort, with each cohort's list sorted alphabeticall…

Cargo.toml
Command Triplets
RustRust
Starter~2h
Command Triplets

You are building a decoder for a legacy industrial robot controller. The controller receives a continuous stream of 3-character instruction codes. Each triplet maps to a named operation:

Cargo.lock
Cargo.toml
Contact Cleanup
RustRust
Starter~2h
Contact Cleanup

You are cleaning imported contact records before they are saved into a CRM. Each record includes a freeform phone field entered by a human, so the data can contain spaces, dots, parentheses, hyphens, and an optional leading country code of 1.

Cargo.lock
Cargo.toml
Hailstone Cascade
RustRust
Starter~2h
Hailstone Cascade

Implement a steps function that computes how many cascade steps a hailstone particle takes to reach unit mass.

Cargo.toml