SwiftSwift byteStarter~2h time-box

Traffic Burst

A social media post has gone viral. Every minute since it was published, the number of new views doubles compared to the previous minute.

Traffic Burst
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
  • Package.swift

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
integerserror handlingbitwise operations
Difficulty
Starter

Fundamentals-level. Clear requirements, straightforward execution.

Keep exploring

More Swift bytes

See all Swift bytes
Access Badge
SwiftSwift
Starter~2h
Access Badge

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

Package.swift
Alert Priority
SwiftSwift
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. 3♡ 10♢ 7♧ 8♤ A♢). The ranking rules for these tag sets follow standard poker hand rankings.

Package.swift
Cohort Roster
SwiftSwift
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…

Package.swift
Command Triplets
SwiftSwift
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. When a HALT code is encountered, execution stops immediately.

Package.swift
Contact Cleanup
SwiftSwift
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.

Package.swift
Deploy Window
SwiftSwift
Standard~3h
Deploy Window

Your ops team schedules recurring deployment windows on a specific weekday of a given month. Implement a DeployWindow struct that, given a year and month, returns the date of the requested deployment window.

Package.swift