Algorithm Practice

Solve LeetCode-style puzzles with arrays, strings, and dynamic programming.

0 / 6 complete0%
Interactive Game

LeetCode 1: Two Sum

Find two numbers in an array that add up to a target.

ArraysAlgorithms
Play
Interactive Game

LeetCode 121: Best Time to Buy and Sell Stock

Find the maximum profit from buying and selling a stock once.

ArraysDynamic Programming
Play
Interactive Game

LeetCode 20: Valid Parentheses

Determine if the input string has valid parentheses ordering.

StringsStacks
Play
Interactive Game

LeetCode 3: Longest Substring Without Repeating Characters

Find the length of the longest substring without repeating characters.

StringsAlgorithms
Play
Interactive Game

LeetCode 53: Maximum Subarray

Find the contiguous subarray with the largest sum.

ArraysDynamic Programming
Play
Interactive Game

LeetCode 70: Climbing Stairs

Calculate the number of ways to climb n stairs, taking 1 or 2 steps at a time.

Dynamic Programming
Play