Structured prep covering the data structures and algorithms big-tech interviews expect. Interactive visualizations, a Python playground, AI-powered feedback, and progress tracking.
Google Interview Readiness
Start practicing to build your score
Try it now - no signupTwo Sum · easy
Given an array of integers `nums` and an integer `target`, return the indices of the two numbers that add up to `target`. Each input has exactly one solution. You may not use the same element twice.
Real Python, real tests - it all runs in your browser.
Run your code to see output
Not sure where to start?
Follow the skill tree - learn concepts in the right order with prerequisites mapped out.
avg O(n)space O(1)
avg O(n)space O(1)
avg O(1)space O(n)
avg O(1)space O(n)
avg O(log n)space O(h)
avg O(V + E)space O(V + E)
avg O(log n)space O(n)
avg O(m)space O(n * m)
avg O(n log n)space O(log n)
avg O(log n)space O(1)
avg O(2^n)space O(n)
avg O(n^2)space O(n)
avg O(V + E)space O(V)
avg O(n log n)space O(1)
avg N/Aspace N/A
avg O(1)space O(n)