DSA Trainer
New · 2026 interview format

The AI writes the code now. Can you catch what it got wrong?

Meta and Google now run a coding round where you get an AI assistant and a real codebase. They are not testing whether you can write a loop. They are testing whether you can read code that looks right, prove it wrong, and fix it, while explaining yourself. That is the exact skill beginners are missing: telling good code from confident, wrong code.

Each drill shows you an AI-generated solution and its confident pitch. Your job: give a verdict, point to the flaw, and see the input that breaks it.

2 free · 54 premium
Drill #1Free

Find two numbers that add to a target

Hash MapVerdict: It's buggy?
Start drill
Drill #2Free

Detect a duplicate in a list

SetVerdict: Too slow?
Start drill
Drill #3Free

Check if two strings are anagrams

Frequency MapVerdict: Ship it?
Start drill
Drill #4Premium

Build a note from magazine letters

Frequency MapVerdict: It's buggy?
Preview
Drill #5Premium

Find a target in a sorted list

Binary SearchVerdict: It's buggy?
Preview
Drill #6Free

Check if a string is a palindrome

Two PointersVerdict: It's buggy?
Start drill
Drill #7Premium

Square a sorted array, keep it sorted

Two PointersVerdict: Ship it?
Preview
Drill #8Premium

Two-sum on a sorted array

Two PointersVerdict: Too slow?
Preview
Drill #9Premium

Move all zeroes to the end

Two PointersVerdict: It's buggy?
Preview
Drill #10Premium

Highest-average window of length k

Sliding WindowVerdict: Ship it?
Preview
Drill #11Premium

Shortest subarray summing to at least target

Sliding WindowVerdict: It's buggy?
Preview
Drill #12Premium

Longest substring without repeats

Sliding WindowVerdict: Too slow?
Preview
Drill #13Premium

Running sum of an array

Prefix SumVerdict: Too slow?
Preview
Drill #14Premium

Sum of a range, many queries

Prefix SumVerdict: It's buggy?
Preview
Drill #15Premium

Find the pivot index

Prefix SumVerdict: Ship it?
Preview
Drill #16Premium

Generate all subsets

BacktrackingVerdict: It's buggy?
Preview
Drill #17Premium

All combinations of k from n

BacktrackingVerdict: It's buggy?
Preview
Drill #18Premium

Generate all permutations

BacktrackingVerdict: It's buggy?
Preview
Drill #19Premium

Combinations that sum to a target

BacktrackingVerdict: Ship it?
Preview
Drill #20Premium

Find where a target belongs

Binary SearchVerdict: Ship it?
Preview
Drill #21Premium

Find the first bad version

Binary SearchVerdict: It's buggy?
Preview
Drill #22Premium

Slowest speed to finish in time

Binary SearchVerdict: Too slow?
Preview
Drill #23Premium

Reverse a linked list

Linked ListVerdict: Ship it?
Preview
Drill #24Premium

Find the middle node

Fast and Slow PointersVerdict: It's buggy?
Preview
Drill #25Premium

Detect a cycle in a linked list

Fast and Slow PointersVerdict: Too slow?
Preview
Drill #26Premium

Valid parentheses

StackVerdict: It's buggy?
Preview
Drill #27Premium

Baseball game score

StackVerdict: It's buggy?
Preview
Drill #28Premium

Min stack with O(1) getMin

StackVerdict: Ship it?
Preview
Drill #29Premium

Evaluate reverse Polish notation

StackVerdict: It's buggy?
Preview
Drill #30Premium

Maximum depth of a binary tree

Tree TraversalVerdict: It's buggy?
Preview
Drill #31Premium

Invert a binary tree

Tree TraversalVerdict: Ship it?
Preview
Drill #32Premium

Are two trees the same

Tree TraversalVerdict: It's buggy?
Preview
Drill #33Premium

Is a tree symmetric

Tree TraversalVerdict: It's buggy?
Preview
Drill #34Premium

Flood fill an image

Graph TraversalVerdict: It's buggy?
Preview
Drill #35Premium

Count the islands

Graph TraversalVerdict: It's buggy?
Preview
Drill #36Premium

Largest island by area

Graph TraversalVerdict: It's buggy?
Preview
Drill #37Premium

Count the provinces

Graph TraversalVerdict: Ship it?
Preview
Drill #38Premium

Count connected components

Union-FindVerdict: Ship it?
Preview
Drill #39Premium

Find the redundant edge

Union-FindVerdict: It's buggy?
Preview
Drill #40Premium

Does the graph form a tree

Union-FindVerdict: It's buggy?
Preview
Drill #41Premium

Sort an array of numbers

Sorting AlgorithmsVerdict: It's buggy?
Preview
Drill #42Premium

Can you attend every meeting

Sorting AlgorithmsVerdict: Ship it?
Preview
Drill #43Premium

Merge overlapping intervals

IntervalsVerdict: It's buggy?
Preview
Drill #44Premium

Best time to buy and sell (many trades)

GreedyVerdict: It's buggy?
Preview
Drill #45Premium

Can you reach the last index

GreedyVerdict: It's buggy?
Preview
Drill #46Premium

Fewest jumps to the end

GreedyVerdict: Ship it?
Preview
Drill #47Premium

Count ways to climb stairs

Dynamic ProgrammingVerdict: Ship it?
Preview
Drill #48Premium

Min cost climbing stairs

Dynamic ProgrammingVerdict: It's buggy?
Preview
Drill #49Premium

House robber

Dynamic ProgrammingVerdict: It's buggy?
Preview
Drill #50Premium

Fewest coins for an amount

Dynamic ProgrammingVerdict: It's buggy?
Preview
Drill #51Premium

Kth largest element

Heap / Priority QueueVerdict: It's buggy?
Preview
Drill #52Premium

K closest points to the origin

Heap / Priority QueueVerdict: Ship it?
Preview
Drill #53Premium

Top k frequent elements

Heap / Priority QueueVerdict: It's buggy?
Preview
Drill #54Premium

Count the set bits

Bit ManipulationVerdict: It's buggy?
Preview
Drill #55Premium

The number that appears once

Bit ManipulationVerdict: Too slow?
Preview
Drill #56Premium

Find the missing number

Bit ManipulationVerdict: Ship it?
Preview