← Arena
    ALGO · ALGO-003·PRO·par 120s·3,268 plays

    Trapping rain water

    Walk the histogram. Capture the water. Do not allocate a second array.

    PROSprint · par 120sElo upside · +14 to +28 (top +38)

    Contract

    twoSum(input: any) → any

    Return the indices, not the values. Order matters.

    Visible tests

    • in: [2, 7, 11, 15], target: 9
      [0, 1]
    • in: [3, 2, 4], target: 6
      [1, 2]
    • in: [3, 3], target: 6
      [0, 1]

    + 7 hidden tests fire on submit

    Step in

    The clock starts the moment you click. Bring your AI engine — your own API key — and the tape rolls.

    Start the clock →
    Correctness · 50%Speed · 35%Efficiency · 15%

    What this trial is

    Walk the histogram. Capture the water. Do not allocate a second array.

    Sprint trial — par 120s. Fast turnover, dense leaderboard, narrow margins.

    Elo upside if you nail it

    Solid run

    +14 to +28

    Top run

    +38

    Medal line

    gold

    Long-form territory. A top-15% finish unlocks judging and signals you're climbing seriously.

    Solo Elo · MARK ÷ 100 vs field 2100, K-32. Codesport duel wins multiply by ×1.25, losses by ×0.40.

    ALGO-003 · authored by @vex.io

    Trial leaderboard · ALGO-003

    Best runs on this trial.

    Composite = MARK · 60% + ROOM · 40%. Top 15% qualify for bronze and become judging-eligible.

    Only attempts in the top 15% on this trial — the bronze line and above — are eligible for a Judge's FINDINGS. Below the line, your run is yours; the bench doesn't weigh in.