Skip to content
playdsa
Preferences

Make yourself comfortable.

Saved on this browser. Your device’s reduced-motion preference is always respected.

Theme
Advanced settings

Frequency Foundry

Learn
Play
Prove
Problem context and objectives
Mission briefing

Clockwork game engineer · A tournament scoreboard has jammed

Restore the order before the next round begins: Frequency Foundry.

A wrong ordering changes who advances, while a slow repair freezes every active match.

How you win

  1. 1Recognize when Counting sort matches the clues
  2. 2Keep this true after every move: each bucket equals the number of times its value appears
  3. 3Reach the result within O(n + k)

Rules and pressure

  • Target cost: O(n + k)
  • State rule: each bucket equals the number of times its value appears
Lesson 1 of 3

Each value names the numbered silo it enters. Allocate max value plus one silos.

Your call · The maximum value is 4. How many buckets are needed?

Help shape PlayDSA

Something confusing, broken, or missing? Leave a quick note without leaving your lesson.

Please leave out passwords, payment details and other private information.

Page included: /

Sign in to save feedback here, or send it with your email app. Your draft stays here while you sign in.

Open email instead