Algorithm Challenges
Master data structures and algorithms through interactive visualizations and step-by-step explanations.
4
Challenges
12
Solution Steps
4
Topics
Two Sum
LeetCode #1Given an array of integers nums and an integer target, return indices of the two numbers such that they add up to target. You may assume that each in...
ArrayHash Table
2 approachesSolve →
Remove Duplicates from Sorted Array II
LeetCode #80Given an integer array nums sorted in non-decreasing order, remove the duplicates in-place such that each unique element appears **at most twice**. Th...
ArrayTwo Pointers
3 approachesSolve →
Remove Element
LeetCode #27Given an integer array nums and an integer val, remove all occurrences of val in nums **in-place**. The order of the elements may be changed. Then ret...
ArrayTwo Pointers
3 approachesSolve →
Merge Sorted Array
LeetCode #88You are given two integer arrays nums1 and nums2, sorted in **non-decreasing order**, and two integers m and n, representing the number of elements in...
ArrayTwo PointersSorting
4 approachesSolve →