Learn to code like it's a sport.

Race friends on the same problem, and practice with Rena, an AI coach whose hints point you forward without writing the code for you. Free to start, no card.

Back to Practice
Code
Choose language
Run testsSubmit solution
1# Smudged Badge Digit
2import sys
3
4data = sys.stdin.read().split()
5t = int(data[0])
6ptr = 1
7
8for _ in range(t):
9 n = int(data[ptr])
10 s = data[ptr + 1]
11 ptr += 2
12
13 possible = False
14 for i, ch in enumerate(s):
15 if ch == "8" and n - i == 11:
16 possible = True
17 break
18
19 print("YES" if possible else "NO")
Ln 1, Col 22Spaces: 4
Test Result0/3 Passed (0%)
Testcase
Input
1
11
80011223388
Your Output
Pending...
Expected
YES
All 3 public test cases shown

Four ways to practice.

One account keeps your ranked Elo, your streak and your practice history.

Battle classmates and climb the ranked ladder.

Real-time duels on curated problems, matched to your skill level.

Find a match
algoarena.netLobby

Battle Lobby

Finding you a worthy opponent…

Searching for opponent
Elapsed
0:02
Ranked Elo band
625-675
Est. time remaining0:18

Scanning for opponents in your skill range…

9,000+ problems with hints that teach.

Rena nudges you toward the concept first and never gives the full answer.

Practice with hints
Back to Practice
Code
Choose language
Run testsSubmit solution
1# Smudged Badge Digit
2import sys
3
4data = sys.stdin.read().split()
5t = int(data[0])
6ptr = 1
7
8for _ in range(t):
9 n = int(data[ptr])
10 s = data[ptr + 1]
11 ptr += 2
12
13 possible = False
14 for i, ch in enumerate(s):
15 if ch == "8" and n - i == 11:
16 possible = True
17 break
18
19 print("YES" if possible else "NO")
Ln 1, Col 22Spaces: 4
Test Result0/3 Passed (0%)
Testcase
Input
1
11
80011223388
Your Output
Pending...
Expected
YES
All 3 public test cases shown

Sharpen reading speed in 3-minute rounds.

Quick trace-the-code puzzles: read a short program and pick what it prints.

Start a rush
Puzzle Rush 3 min

Pick a rush length

Fast CS puzzles, one opponent, score pressure from the first question.

Practice explaining your approach.

Rena plays the interviewer. You talk through your plan, write the code, and get feedback at the end.

Try interview prep
AI Interviewer
Interview Active
Reading Time:Starting soon...

Timer will start after the introduction

Speaking...

Rena

Speaking

Hello, I'm Rena, your AI interviewer. Please take your time to read and understand the problem. You have about 3 minutes to read through it. I'll check back with you when the time is up. Good luck!

Rena is speaking...

Please read the problem first...

Input blocked during reading

Compete free. Pay only for more Rena.

Competing and practicing never cost money. Paid tiers add monthly Rena budgets when you want more AI coaching.

Free$0

Battles, practice, puzzles, 1 AI analysis a day, 5 Rena hints a day, and a one-time builder credit.

Pro$12.99/mo

$8 of AI credit a month for Rena chat and the builder, 8 mock interviews a month, and unlimited AI analyses.

Ultimate$25.99/mo

$30 of AI credit a month for Rena chat and the builder, and up to 5 mock interviews a day.