C++C++ 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
3 files
  • CMakeLists.txt
  • access_badge.cpp
  • access_badge.h

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
randomnessstrings
Difficulty
Standard

Standard engineering judgment. Multiple edge cases worth handling.

Keep exploring

More C++ bytes

See all C++ bytes
Codec Bridge
C++C++
Standard~3h
Codec Bridge

Convert an encoded payload, represented as a sequence of symbol values in one radix, to any other radix.

CMakeLists.txt
codec_bridge.cpp
+1 more files
Cohort Roster
C++C++
Starter~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…

CMakeLists.txt
cohort_roster.cpp
+1 more files
Command Triplets
C++C++
Starter~2h
Command Triplets

You are writing 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. If a HALT code appears, execution stops immediately.

CMakeLists.txt
command_triplets.cpp
+1 more files
Config Drift
C++C++
Starter~2h
Config Drift

You are working on a small internal tool that compares two configuration snapshots.

CMakeLists.txt
config_diff.cpp
+1 more files
Contact Cleanup
C++C++
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.

CMakeLists.txt
contact_cleanup.cpp
+1 more files
Flag Sequence
C++C++
Starter~2h
Flag Sequence

A maritime signal station transmits messages using a sequence of signal flags. A numeric transmission code determines which flags to raise and in what order.

CMakeLists.txt
flag_sequence.cpp
+1 more files