Home
Introduction
Algorithms
Big Data
Bloom Filter
Tiny HypterLogLog
HypterLogLog
Quick Select
Word2Vec
Consistency
Raft
Paxos
Container
Open Addressing
Skip List
Graph
Bellman Ford
Dijkstra
Floyd
SPFA
Math
Combinations
Greatest Common Divisor
Lowest Common Multiple
Matrix Multiply
Permutations
Strassen Matrix Multiply
Sort
Bubble Sort
Bucket Sort
Counting Sort
Heap Sort
Insertion Sort
Merging Sort
Quick Sort
Radix Sort
Selection Sort
Shell Sort
String
Edit Distance
KMP
Longest Common Substring
Tree
AVL Tree
Binary Search Tree
B Plus Tree
Huffman Tree
Red Black Tree
Tree Printer
Leetcode
Array
0011 Container With Most Water
0041 First Missing Positive
0045 Jump Game II
0048 Rotate Image
0054 Spiral Matrix
0059 Spiral Matrix II
0066 Plus One
0073 Set Matrix Zeroes
0088 Merge Sorted Array
0118 Pascal's Triangle
0169 Majority Element
0189 Rotate Array
0215 Kth Largest Element in an Array
0217 Contains Duplicate
0238 Product of Array Except Self
0289 Game of Life
0334 Increasing Triplet Subsequence
0419 Battleships in a Board
0448 Find All Numbers Disappeared in an Array
0581 Shortest Unsorted Continuous Subarray
0665 Non-decreasing Array
Backtracking
0022 Generate Parentheses
0031 Next Permutation
0039 Combination Sum
0040 Combination Sum II
0046 Permutations
0047 Permutations II
0051 N-Queens
0052 N-Queens II
0077 Combinations
0078 Subsets
0079 Word Search
0090 Subsets II
0131 Palindrome Partitioning
0140 Word Break II
0216 Combination Sum III
0377 Combination Sum IV
Binary Indexed Tree
0004 Median of Two Sorted Arrays
0315 Count of Smaller Numbers After Self
0327 Count of Range Sum
0493 Reverse Pairs
Binary Search
0033 Search in Rotated Sorted Array
0034 Find First and Last Position of Element in Sorted Array
0035 Search Insert Position
0050 Pow(x, n)
0069 Sqrt(x)
0124 Binary Tree Maximum Path Sum
0162 Find Peak Element
0278 First Bad Version
0349 Intersection of Two Arrays
0378 Kth Smallest Element in a Sorted Matrix
0454 4Sum II
0875 Koko Eating Bananas
1011 Capacity To Ship Packages Within D Days
Binary Search Tree
0096 Unique Binary Search Trees
0098 Validate Binary Search Tree
0108 Convert Sorted Array to Binary Search Tree
0173 Binary Search Tree Iterator
0230 Kth Smallest Element in a BST
0235 Lowest Common Ancestor of a Binary Search Tree
Bit Manipulation
0029 Divide Two Integers
0089 Gray Code
0136 Single Number
0137 Single Number II
0190 Reverse Bits
0191 Number of 1 Bits
0268 Missing Number
0338 Counting Bits
0461 Hamming Distance
0477 Total Hamming Distance
Brainteaser
0292 Nim Game
0319 Bulb Switcher
0777 Swap Adjacent in LR String
BFS
0127 Word Ladder
0301 Remove Invalid Parentheses
0542 01 Matrix
0818 Race Car
DFS
0104 Maximum Depth of Binary Tree
0105 Construct Binary Tree from Preorder and Inorder Traversal
0106 Construct Binary Tree from Inorder and Postorder Traversal
0114 Flatten Binary Tree to Linked List
0337 House Robber III
0721 Accounts Merge
Design
0028 Implement strStr()
0146 LRU Cache
0295 Find Median from Data Stream
0341 Flatten Nested List Iterator
0380 Insert Delete GetRandom O(1)
0705 Design HashSet
0706 Design HashMap
Divide and Conquer
0023 Merge k Sorted Lists
0053 Maximum Subarray
0218 The Skyline Problem
0240 Search a 2D Matrix II
Dynamic Programming
0005 Longest Palindromic Substring
0010 Regular Expression Matching
0032 Longest Valid Parentheses
0062 Unique Paths
0063 Unique Paths II
0064 Minimum Path Sum
0070 Climbing Stairs
0072 Edit Distance
0082 Remove Duplicates from Sorted List II
0091 Decode Ways
0095 Unique Binary Search Trees II
0139 Word Break
0152 Maximum Product Subarray
0198 House Robber
0224 Shortest Palindrome
0279 Perfect Squares
0300 Longest Increasing Subsequence
0309 Best Time to Buy and Sell Stock with Cooldown
0312 Burst Balloons
0322 Coin Change
0416 Partition Equal Subset Sum
0494 Target Sum
0647 Palindromic Substrings
1143 Longest Common Subsequence
Geometry
0587 Erect the Fence
0892 Surface Area of 3D Shapes
0939 Minimum Area Rectangle
0963 Minimum Area Rectangle II
Graph
0133 Clone Graph
0684 Redundant Connection
Greedy
0044 Wildcard Matching
0055 Jump Game
0121 Best Time to Buy and Sell Stock
0122 Best Time to Buy and Sell Stock II
0134 Gas Station
0135 Candy
0406 Queue Reconstruction by Height
0621 Task Scheduler
Hash Table
0001 Two Sum
0030 Substring with Concatenation of All Words
0036 Valid Sudoku
0037 Sudoku Solver
0049 Group Anagrams
0387 First Unique Character in a String
0438 Find All Anagrams in a String
0560 Subarray Sum Equals K
Heap
0347 Top K Frequent Elements
0703 Kth Largest Element in a Stream
Linked List
0021 Merge Two Sorted Lists
0023 Merge k Sorted Lists
0024 Swap Nodes in Pairs
0025 Reverse Nodes in k-Group
0061 Rotate List
0083 Remove Duplicates from Sorted List
0138 Copy List with Random Pointer
0141 Linked List Cycle
0142 Linked List Cycle II
0160 Intersection of Two Linked Lists
0203 Remove Linked List Elements
0206 Reverse Linked List
0234 Palindrome Linked List
0237 Delete Node in a Linked List
0328 Odd Even Linked List
0350 Intersection of Two Arrays II
0371 Sum of Two Integers
Map
0855 Exam Room
Math
0002 Add Two Numbers
0007 Reverse Integer
0149 Max Points on a Line
0166 Fraction to Recurring Decimal
0171 Excel Sheet Column Number
0172 Factorial Trailing Zeroes
0202 Happy Number
0204 Count Primes
0231 Power of Two
0258 Add Digits
0326 Power of Three
0672 Bulb Switcher II
Memoization
0329 Longest Increasing Path in a Matrix
Minimax
0486 Predict the Winner
Queue
0933 Number of Recent Calls
Random
0382 Linked List Random Node
0384 Shuffle an Array
Recursion
0761 Special Binary String
0794 Valid Tic-Tac-Toe State
Rejection Sampling
0470 Implement Rand10() Using Rand7()
0478 Generate Random Point in a Circle
Reservoir Sampling
0398 Random Pick Index
Segment Tree
0307 Range Sum Query - Mutable
0732 My Calendar III
Sliding Window
0003 Longest Substring Without Repeating Characters
0076 Minimum Window Substring
0239 Sliding Window Maximum
0424 Longest Repeating Character Replacement
0480 Sliding Window Median
1004 Max Consecutive Ones III
Sort
0056 Merge Intervals
0075 Sort Colors
0148 Sort List
0179 Largest Number
0242 Valid Anagram
0324 Wiggle Sort II
0922 Sort Array By Parity II
0969 Pancake Sorting
Stack
0020 Valid Parentheses
0084 Largest Rectangle in Histogram
0085 Maximal Rectangle
0150 Evaluate Reverse Polish Notation
0155 Min Stack
0221 Maximal Square
0394 Decode String
0739 Daily Temperatures
String
0006 ZigZag Conversion
0008 String to Integer (atoi)
0009 Palindrome Number
0012 Integer to Roman
0013 Roman to Integer
0014 Longest Common Prefix
0017 Letter Combinations of a Phone Number
0038 Count and Say
0043 Multiply Strings
0058 Length of Last Word
0067 Add Binary
0214 Shortest Palindrome
0227 Basic Calculator II
0344 Reverse String
0395 Longest Substring with At Least K Repeating Characters
0412 Fizz Buzz
0557 Reverse Words in a String III
Topological Sort
0207 Course Schedule
0210 Course Schedule II
Tree
0094 Binary Tree Inorder Traversal
0100 Same Tree
0101 Symmetric Tree
0102 Binary Tree Level Order Traversal
0103 Binary Tree Zigzag Level Order Traversal
0107 Binary Tree Level Order Traversal II
0116 Populating Next Right Pointers in Each Node
0226 Invert Binary Tree
0236 Lowest Common Ancestor of a Binary Tree
0297 Serialize and Deserialize Binary Tree
0437 Path Sum III
0543 Diameter of Binary Tree
0617 Merge Two Binary Trees
Trie
0208 Implement Trie (Prefix Tree)
0212 Word Search II
0648 Replace Words
0745 Prefix and Suffix Search
Two Pointers
0015 3Sum
0016 3Sum Closest
0018 4Sum
0019 Remove Nth Node From End of List
0026 Remove Duplicates from Sorted Array
0027 Remove Element
0042 Trapping Rain Water
0125 Valid Palindrome
0283 Move Zeroes
0287 Find the Duplicate Number
Union Find
0128 Longest Consecutive Sequence
0130 Surrounded Regions
0200 Number of Islands
0778 Swim in Rising Water
0839 Similar String Groups
Published with GitBook
Sliding Window
results matching "
"
No results matching "
"