Skip to content
Lambdian

Coding Arena

Write code. Get a verdict. Level up.

11 language tracks with problems levelled from 1 to 10, weekly rated contests, and a runner that executes every submission in an isolated sandbox, test by test.

arena / problems / two-sum-python
Two SumLevel 3

Given an array nums and an integer target, return the indices of the two numbers that add up to target.

Input

nums = [2, 7, 11, 15], target = 9

Output

[0, 1]

2 ≤ n ≤ 10⁵ · 1 s · 256 MB

def two_sum(nums, target):    seen = {}    for i, n in enumerate(nums):        need = target - n        if need in seen:            return [seen[need], i]        seen[n] = i    return []
  • Sample 118 ms
  • Sample 217 ms
  • Hidden 1–741 ms
  • Accepted · 9/9 tests · +40 XP

01Language tracks

Pick a language. Climb ten levels.

Python

Levels 1–10

C

Levels 1–10

C++

Levels 1–10

Java

Levels 1–10

JavaScript

Levels 1–10

TypeScript

Levels 1–10

Go

Levels 1–10

Rust

Levels 1–10

Kotlin

Levels 1–10

SQL

Levels 1–10

Bash

Levels 1–10

Syntax → logic → DSA → real-world tasks

02Problem types

More than 'print the answer'.

Standard I/O
Read input, print output, pass hidden tests
Function implementation
Fill in a function signature in your language
SQL on real schemas
Queries against realistic tables, checked by result set
Debugging
Fix this code: find the bug, keep the tests green
Output prediction
Read code, predict what it prints
Multi-file mini projects
Small codebases with several files and tests

03Under the hood

How a submission is judged.

The runner lives on its own server with no inbound internet access. It only pulls signed jobs from a queue.
  1. 1

    You submit. Size, language and rate limit are checked first (one submission per 5 seconds).

  2. 2

    The job goes onto a signed queue. The runner server pulls it and never accepts inbound connections from the internet.

  3. 3

    Each test runs in an isolated sandbox: no network, CPU and memory limits, read-only filesystem.

  4. 4

    Verdicts stream back test by test, live.

  5. 5

    On Accepted: XP, streak, heatmap and profile counters update; in contests, your rating moves.

Verdicts

  • ACAccepted
  • WAWrong Answer
  • TLETime Limit Exceeded
  • MLEMemory Limit Exceeded
  • RERuntime Error
  • CECompilation Error

04Contests & learning aids

Compete weekly. Learn from every attempt.

Rated contests

  • Weekly, with a live leaderboard
  • Elo-style rating
  • Virtual participation afterwards
  • Editorials after the end

Learning aids

  • Hints that unlock step by step, for XP
  • Editorial and discussion thread per problem
  • 'Similar problems' suggestions
  • Personal weakness map by topic

Fair play

  • Token-fingerprint similarity checks per problem
  • Large paste events recorded
  • Flags are reviewed by people
  • Never an automatic ban

05Questions

Arena FAQ.

Which languages does the Coding Arena support?

11 language tracks: Python, C, C++, Java, JavaScript, TypeScript, Go, Rust, Kotlin, SQL, Bash. Each track is a levelled ladder from Level 1 to 10, moving from syntax to logic to data structures to real-world tasks.

How are contests rated?

Weekly rated contests use an Elo-style rating with a live leaderboard. You can participate virtually afterwards, and editorials unlock once the contest ends.

What happens if my code looks similar to someone else's?

Similarity checks compare token fingerprints across submissions to the same problem. Pairs above a threshold are reviewed by a person. Signals are never an automatic ban.