Contents Menu Expand Light mode Dark mode Auto light/dark mode
Support my work by buying my book!
LeetSolve documentation
Logo

Data Structures

  • Array
    • Transpose Matrix
    • Valid Mountain Array
    • Shift 2D Grid
    • Find All Numbers Disappeared in an Array
    • Rotate Image
    • Spiral Matrix II
    • Daily Temperatures
  • Linked List
    • Merge Two Sorted Lists
    • Remove Linked List Elements
    • Intersection of Two Linked Lists
    • Swap Nodes in Pairs
    • Add Two Numbers
  • Hash Table
    • Roman to Integer
    • Maximum Erasure Value
    • Find and Replace Pattern
  • String
    • Valid Anagram
    • Detect Capital
    • Unique Morse Code Words
    • Unique Email Addresses
    • Longest Substring Without Repeating Characters
    • Compare Version Numbers
  • Stack
    • Baseball Game
    • Valid Parentheses
    • Backspace String Compare
    • Remove All Adjacent Duplicates in String II
  • Priority Queue (Heap)
    • Last Stone Weight
    • Kth Largest Element in a Stream
    • Kth Smallest Element in a Sorted Matrix
    • Construct Target Array With Multiple Sums
  • Binary Tree
    • Same Tree
    • Maximum Depth of Binary Tree
    • Lowest Common Ancestor of a Binary Search Tree
    • Search in a Binary Search Tree

Algorithms

  • Sorting
    • Majority Element
    • Merge Sorted Array
    • Remove Covered Intervals
    • My Calendar I
    • Remove Duplicates from Sorted Array II
  • Greedy Algorithm
    • Can Place Flowers
    • Minimum Deletions to Make Character Frequencies Unique
    • Wiggle Subsequence
    • Partitioning Into Minimum Number Of Deci-Binary Numbers
    • Maximum Units on a Truck
  • Dynamic Programming
    • Fibonacci Number
    • Unique Paths
    • Largest Divisible Subset
    • Triangle
    • Unique Paths II
  • Counting
    • Single Number
    • First Unique Character in a String
    • Max Number of K-Sum Pairs
  • Prefix Sums
    • Running Sum of 1d Array
    • Maximum Subarray
    • Product of Array Except Self
    • Subarray Sum Equals K
  • Two Pointers
    • Middle of the Linked List
    • Linked List Cycle
    • Sort Array By Parity II
    • Container With Most Water
    • Remove Nth Node From End of List
    • Shortest Unsorted Continuous Subarray
  • Bit Manipulation
    • Hamming Distance
    • Power of Four
    • Find the Duplicate Number
    • Maximum Product of Word Lengths
  • Graph
    • Is Graph Bipartite?
    • All Paths From Source to Target

Mathematics

  • Mathematics
    • Excel Sheet Column Number
    • Power of Three
    • Best Time to Buy and Sell Stock
    • Subsets
    • Minimum Moves to Equal Array Elements II
    • Array Nesting
    • Count Sorted Vowel Strings
    • Concatenation of Consecutive Binary Numbers
    • Perfect Squares
Back to top
Copyright © 2024, Nhut Nguyen
Made with Sphinx and @pradyunsg's Furo