SwiftSwift · Bytes catalog

Screen Swift candidates on real starter repos

26 short Swift tasks, each shipping with a public test file and a language-specific runner. Candidates work in their own style; reviewers see how the code actually hangs together.

Starter
14
Standard
9
Advanced
3
Catalog
26 Swift bytes
Page 1 of 1
Access Badge
Featured
SwiftSwiftStarter~2h

Access Badge

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

Package.swift
Open byte →
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
Flag Sequence
SwiftSwift
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.

Package.swift
Hailstone Cascade
SwiftSwift
Starter~2h
Hailstone Cascade

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

Package.swift
Incident Chain
SwiftSwift
Standard~3h
Incident Chain

An internal post-mortem tool reconstructs incident chains. Each step in the chain describes an event and how it caused the next, building a cumulative narrative from the root cause forward.

Package.swift
League Table
SwiftSwift
Standard~3h
League Table

Compile a standings table from match results for a small sports league. Given a list of match results, produce a formatted standings table. Each result line contains two team names and an outcome, separated by semicolons:

Package.swift
Meter Reader
SwiftSwift
Standard~3h
Meter Reader

Read the digits shown on an industrial meter's segment display. Each digit is represented as a 3-column x 4-row pattern of pipes, underscores, and spaces.

Package.swift
Parcel Verifier
SwiftSwift
Starter~2h
Parcel Verifier

The parcel reference checksum process is used to validate operational parcel identifiers. These normally contain dashes and look like: 3-598-21508-8

Package.swift
Planter Rows
SwiftSwift
Starter~2h
Planter Rows

Given a layout diagram, determine which plants belong to each tenant in a shared rooftop planter.

Package.swift
Priority Index
SwiftSwift
Starter~2h
Priority Index

Build a priority index that maps individual codes to their priority levels. Your team maintains an internal incident management tool that groups alert codes by priority level.

Package.swift
Release Cadence
SwiftSwift
Starter~2h
Release Cadence

A product team tracks how quickly a release ages across several cadence tiers. Given an age in seconds, calculate how old that release would be on:

Package.swift
Restart Ballad
SwiftSwift
Standard~3h
Restart Ballad

Generate the lyrics of the song 'I Know an Old Lady Who Swallowed a Fly'. While you could copy/paste the lyrics, or read them from a file, this problem is much more interesting if you approach it algorithmically.

Package.swift
Route Chains
SwiftSwift
Advanced~4h
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.

Package.swift
Sensitivity Flags
SwiftSwift
Standard~3h
Sensitivity Flags

Given a person's allergy score, determine whether or not they're allergic to a given item, and their full list of allergies.

Package.swift
Sensor Grid
SwiftSwift
Advanced~4h
Sensor Grid

Add the adjacent hazard counts to a completed Sensor Grid board. Sensor Grid is a popular game where the user has to find the hazards using numeric hints that indicate how many hazards are directly adjacent (horizontally, vertically, diagonally) to a square.

Package.swift
Service Scorecard
SwiftSwift
Standard~3h
Service Scorecard

Score a service scorecard. Service scorecards use the same scoring rules as the original bowling exercise, but the story is operational instead of a game. Keep track of the score across 10 windows and apply the same spare and strike bonuses.

Package.swift
Signal Weave
SwiftSwift
Standard~3h
Signal Weave

Your team maintains a mesh-network relay that transmits short text messages across low-bandwidth channels. Before transmission each message is woven — cleaned, arranged into a rectangular frame, then read column-by-column so characters are spread across time s…

Package.swift
Status Signals
SwiftSwift
Starter~2h
Status Signals

A support dashboard turns certain factors into status signals. The rules of status-signals are that if a given number:

Package.swift
Traffic Burst
SwiftSwift
Starter~2h
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.

Package.swift
Warehouse Rover
SwiftSwift
Starter~2h
Warehouse Rover

Implement a warehouse rover controller. A fulfillment center uses autonomous rovers to fetch items from shelving aisles. Before deploying a rover to the floor, the control software needs to verify that movement commands produce the expected outcomes.

Package.swift
Watchtower Overlap
SwiftSwift
Starter~2h
Watchtower Overlap

You are building a patrol planning tool for a network of watchtowers on an 8×8 observation grid.

Package.swift
Wave Mixer
SwiftSwift
Standard~3h
Wave Mixer

Implement a wave signal mixer that models two-component signals. In signal processing, a wave can be represented by two components: an in-phase component (real) and a quadrature component (imaginary).

Package.swift