Now in open beta — 100,000+ developers

Compete. Solve.
Become legendary.

Solve algorithmic challenges against real developers in real time. Sharpen your DSA through live 1v1 duels, ranked contests, and instant matchmaking.

NKARSWDP
Rated 4.9/5 by competitive programmers
duel / room-92a8 · two-sum
Live
A
Alice1524 elo
04:32Live 1v1
1468 eloBob
B

1. Two Sum

Medium

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

Example 1
Input: nums = [2,7,11,15], target = 9
Output: [0,1]
nums[0] + nums[1] == 9, so return [0, 1].
Testcases
saved
1from typing import List
2
3class Solution:
4 def twoSum(self, nums: List[int], target: int) -> List[int]:
5 lookup = {}
6 for i, num in enumerate(nums):
7 if target - num in lookup:
8 return [lookup[target - num], i]
9 lookup[num] = i
10 return []
11
Accepted36 ms runtime14.2 MB memory

Season badges

Compete. Climb.Become the highest rated.

Every duel you win earns rating and moves you up the leagues. Reach Legend and stand above everyone else on the platform.

Bronze league badge
Bronze
0–1549
58% of players
Crystal league badge
Crystal
1550–1749
24% of players
Champion league badge
Champion
1750–1899
12% of players
Titan league badge
Titan
1900–2049
5% of players
Legend league badge
Legend
2050+
1% of players

Badges are earned every season and pinned to your profile forever. The higher the pedestal, the harder it was to reach.

Live duels
Nneha_42beatCcode_masterPython · 142 msAalgoNinjabeatDdevKarticC++ · 96 msSsyntax_kingbeatQquant_domTypeScript · 210 msBbinary_brainbeatNneon_devJava · 168 msDdevKarticbeatLloop_legendPython · 88 msCcode_masterbeatAalgoNinjaC++ · 120 ms

Features

Built for competitive programmers

Everything you need to sharpen your algorithmic speed and dominate technical interviews — in one focused platform.

Real-time duels

Pair with developers worldwide and solve head-to-head in synchronized dual IDEs with zero network lag.

Fair matchmaking

An ELO system balances every match so each duel is genuinely close and every win feels earned.

Curated problem set

Hundreds of hand-selected DSA questions across arrays, trees, dynamic programming, and graphs.

Instant execution

A sub-second sandbox validates your solution against testcases the moment you submit.

Ranked contests

Weekly global tournaments with rating shifts, badges, and a hall of fame for the fastest solvers.

Deep analytics

Track topic mastery, solve speed, win rates, and rating trends over time with clear visual reports.

How it works

From queue to ranked win in three steps

A deliberately simple flow. No lobbies, no waiting rooms — just match, solve, and rank.

01

Find a match

The ELO engine pairs you with an opponent of similar skill in seconds.

02

Solve faster

Write the optimal solution under live head-to-head pressure.

03

Climb the ranks

Earn rating points, unlock badges, and rise on the global leaderboard.

Try the matchmaking — live

Watch how quickly the ELO engine finds an opponent in your skill bracket.

Rankings

Live leaderboard

Top-rated competitors, updated in real time.

RankPlayerRatingWin rate
01N@neha_42Legend210472.4%
02C@code_masterLegend205169.7%
03A@algoNinjaTitan198766.1%
04D@devKarticTitan192463.8%
05S@syntax_kingTitan190061.5%

Season leagues

Season 7

Every duel shifts your rating. Climb into the top league before the season resets.

  • Legend league badge
    Legend2050+
  • Titan league badge
    Titan1900–2049
  • Champion league badge
    Champion1750–1899
  • Crystal league badge
    Crystal1550–1749
  • Bronze league badge
    Bronze0–1549

Ready to become the fastest coder on the leaderboard?

Create an account in seconds, challenge developers worldwide, and start climbing today.