TypeScriptTypeScript byteStandard~3h time-box

Access Badge

Manage badge factory settings. When a badge comes off the factory floor, it has no name.

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
  • access-badge.test.ts
  • access-badge.ts
  • jest.config.js

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
control flow conditionalsexception handlingrandomnessregular expressions
Difficulty
Standard

Standard engineering judgment. Multiple edge cases worth handling.

Keep exploring

More TypeScript bytes

See all TypeScript bytes
Alias Clusters
TypeScriptTypeScript
Starter~2h
Alias Clusters

In a user identity system, an alias cluster is a group of usernames that share exactly the same letters in a different arrangement. Two usernames belong to the same cluster if one can be formed by rearranging the letters of the other.

alias-clusters.test.ts
alias-clusters.ts
+1 more files
Badge Points
TypeScriptTypeScript
Standard~3h
Badge Points

Given a word, compute the badge points for that word. You'll need these:

badge-points.test.ts
badge-points.ts
+1 more files
Billing Cycle
TypeScriptTypeScript
Starter~2h
Billing Cycle

An internal billing system assigns sequential period numbers to billing cycles. Some periods are designated as extended — they receive an extra processing day for reconciliation.

billing-cycle.test.ts
billing-cycle.ts
+1 more files
Codec Bridge
TypeScriptTypeScript
Standard~3h
Codec Bridge

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

codec-bridge.test.ts
codec-bridge.ts
+1 more files
Cohort Roster
TypeScriptTypeScript
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…

cohort-roster.test.ts
cohort-roster.ts
+1 more files
Command Triplets
TypeScriptTypeScript
Standard~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.

command-triplets.test.ts
command-triplets.ts
+1 more files