AI writes the code.
You're judged on everything else.

Practice the part AI can't do for you: understanding the problem, choosing the approach, and knowing whether it's the best one.

Your first AI round is free.

When the clock stops, your round is scored.

Whether your solution works, whether it's the best one, how well you used the AI agent, and what it cost.

Scoring your round
int trap(int[] height) { int lo = 0, hi = height.length - 1, level = 0, water = 0; while (lo < hi) { int low = Math.min(height[lo], height[hi]); level = Math.max(level, low); water += level - low; if (height[lo] < height[hi]) lo++; else hi--; } return water; } AI agent, 6 messages
  1. Running hidden tests69 of 69 pass
  2. Comparing with the best approachMatches it
  3. Reviewing how you used the agent6 messages
  4. Adding up the agent's cost27,400 tokens
Round reportTrapping Rain Water
Final solution
Optimal
O(n) time, O(1) space
One pass from both ends, nothing stored. Every bar must be read, so O(n) is the floor.
input sizetimen²nyours
AI efficiency
82 / 100
Short, specific questions. You wrote the code and used the agent to check your thinking.
Cost per task
$0.004
Messages6 of 20
Tokens27,400
69 of 69hidden tests pass
21:40of 30:00 used
Harddifficulty

Pick up where the video ends.

Practice by pattern, revise before you forget, and keep one-page notes for everything else. One account, and your progress follows you to any device.

AI roundsPracticeReviseNotesFind a problemA
Two pointers
2 of 9 solved, in suggested order
MediumHard
ProblemDifficultyCompaniesVideo
Container With Most WaterMedium59
3SumMedium61
Trapping Rain Water AI roundHard78AI round
Find the Duplicate NumberMedium22
Sort ColorsMedium40
Remove Nth Node From End of ListMedium19
Next PermutationMedium34

Learn the thinking, then practice it.

Free videos walk through how a problem is solved, step by step. Then you solve it here, at your own pace or on the clock.

Merge Intervals
Asked by 119 companies
Two Sum
Asked by 134 companies
Longest Substring Without Repeating Characters
Asked by 110 companies

Start with one round.

Your first AI round is free.