Prepare for your coding interviewwith genuinely better tools
- Visualise your code line by line with an actual debugger
- Understand algorithms with animated illustrations
- Check your solution against every test case
A real debugger that can visualise data structures
This is an actual debugger, it runs your code and shows deterministic results line-by-line. It draws variables, stack frames, objects and pointers, and identifies common data structures like arrays, hash tables, stacks, queues, linked lists, trees, graphs, etc.
Two Sum
Given an array of integers nums and an integer target, return the indexes of the two numbers that add up to target.
def twoSum(nums: list[int], target: int) -> list[int]: seen = {} for i, n in enumerate(nums): if target - n in seen: return [seen[target - n], i] seen[n] = i raise ValueError('no answer')Being able to explain how your code runs is an important signal in a real interview.
Animated illustrations
Each problem comes with illustrated solutions.
Palindrome Linked List
Given the head of a singly linked list, return true if the values read the same forwards and backwards.
Merge Intervals
Given an array of intervals where intervals[i] = [start, end], return a new array with overlapping intervals merged.
Container With Most Water
You are given an integer array lines, where each element is the height of a vertical line standing at that index. Two lines and the axis between them form a container. Find the two lines that form the largest container and return its area.
Largest Island
You are given an m x n matrix grid of 0s and 1s, where 1 is land and 0 is water. Land cells joined horizontally or vertically form an island. Return the number of land cells in the largest island, or 0 if there is no land.
Free, no signup
Explore problems and studies, run the code, and visualise it a few times without signing in. Sign in for unlimited visualisation, submissions and progress tracking.
Common questions
What languages are supported?
Python, JavaScript and Java today, and we are working on adding more. Let us know if you need another language supported.