CodePvP
Now in early access

Code.
Compete.
Conquer.

Real-time competitive coding where speed meets quality. Create a room, challenge your friends, or train solo and prove you write the best code under pressure.

Free to play — no account required

battle — round 1 of 3
04:32
Two SumEasy

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

Example
Input: [2, 7, 11, 15], 9
Output: [0, 1]
JavaScript
RunSubmit
function twoSum(nums, target) {
const seen = new Map();
for (const [i, n] of nums.entries()) {
if (seen.has(target - n))
1 of 2 submitted
No signup requiredSolo or multiplayer1–10 rounds

Built for competitive coders

Everything you need to host and compete in real-time coding battles.

Core

Real-Time Battles

Race head-to-head solving coding challenges. Watch opponents' progress live as every second counts.

Scoring

Smart Scoring

Scored on correctness, execution speed, and code quality. The best code wins — not just the fastest.

Matchmaking

Public Matchmaking

No friends online? Jump into public rooms and compete against coders from around the world.

Competitive

Multi-Round Format

Battle across multiple rounds with escalating difficulty. Consistency crowns the true champion.

Access

Instant Rooms

Create a room and share a link — or jump in solo. Your arena is one click away, no sign-up walls, no friction.

Three steps to your first battle

Get from zero to competing in under a minute.

01

Create or Join

Start a new room or paste an invite link to jump into an existing battle.

02

Solve & Compete

Race to solve challenges while your solution is scored in real time.

03

Claim Victory

Top the leaderboard across rounds and prove your coding prowess.

Ready to compete?

Create a room, send the link — or go solo. Your first battle starts now.