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.
Find two numbers that add to a target
Detect a duplicate in a list
Check if two strings are anagrams
Build a note from magazine letters
Find a target in a sorted list
Check if a string is a palindrome
Square a sorted array, keep it sorted
Two-sum on a sorted array
Move all zeroes to the end
Highest-average window of length k
Shortest subarray summing to at least target
Longest substring without repeats
Running sum of an array
Sum of a range, many queries
Find the pivot index
Generate all subsets
All combinations of k from n
Generate all permutations
Combinations that sum to a target
Find where a target belongs
Find the first bad version
Slowest speed to finish in time
Reverse a linked list
Find the middle node
Detect a cycle in a linked list
Valid parentheses
Baseball game score
Min stack with O(1) getMin
Evaluate reverse Polish notation
Maximum depth of a binary tree
Invert a binary tree
Are two trees the same
Is a tree symmetric
Flood fill an image
Count the islands
Largest island by area
Count the provinces
Count connected components
Find the redundant edge
Does the graph form a tree
Sort an array of numbers
Can you attend every meeting
Merge overlapping intervals
Best time to buy and sell (many trades)
Can you reach the last index
Fewest jumps to the end
Count ways to climb stairs
Min cost climbing stairs
House robber
Fewest coins for an amount
Kth largest element
K closest points to the origin
Top k frequent elements
Count the set bits
The number that appears once
Find the missing number