leetcode
Introduction
Algorithms and Tips
Binary Search
Time Complexity
Recursion
Dynamic Programming
other thought
system design
Two pointer
Union Find
Sweep Line
Array
Sum
Median of Two Sorted Arrays
Majority Element
Plus one
Best Time to Buy and Sell Stock
Contains Duplicates
Pascal's Triangle
Merge Sorted Array
Summary Ranges
Rotate Array
Jump Game
Continuous Subarray Sum
Maximum Gap
Zigzag Iterator
Find the Celebrity
Insert Delete GetRandom O(1)
H-Index
Shortest Word Distance
Valid Sudoku
Spiral Matrix
Word Pattern
Can Place Flowers
Island Perimeter
Find All Numbers Disappeared in an Array
String
Reverse String
ZigZag Conversion
Reverse Words in a String
Longest Palindromic Substring
Implement strStr()
Count and Say
Encode and Decode Strings
Longest Common Prefix
Group Anagrams
Read N Characters Given Read4
Text Justification
License Key Formatting
Isomorphic Strings
Valid Number
Judge Route Circle
Add Bold Tag in String
Bit Manipulation
Single Number
Subset
Hamming Distance
Repeated DNA Sequences
UTF-8 Validation
Game of Life
Maximum Product of Word Lengths
Binary Watch
Maximum XOR of Two Numbers in an Array
Tree
Serialize and Deserialize Binary Tree
Maximum Depth of Binary Tree
Invert Binary Tree
Same Tree
Lowest Common Ancestor of a Binary Search Tree
Binary Search Tree Iterator
Balanced Binary Tree
Unique Binary Search Trees
Convert Sorted Array to Binary Search Tree
Populating Next Right Pointers in Each Node
Binary Tree Right Side View
Path Sum
Binary Tree Traversal
Symmetric Tree
Validate Binary Search Tree
Binary Tree Upside Down
Find Leaves of Binary Tree
Delete Node in a BST
Binary Tree Longest Consecutive Sequence
Kth Smallest Element in a BST
Linked List
Add Two Numbers
Reverse Linked List
Delete Node in a Linked List
Linked List Cycle
Sort List
Odd Even Linked List
Intersection of Two Linked Lists
Copy List with Random Pointer
Binary Search
First Bad Version
Find Peak Element
Find Minimum in Rotated Sorted Array
Split Array Largest Sum
Search a 2D Matrix
Union Find
Connecting Graph
Number of Islands
Graph Valid Tree
Longest Consecutive Sequence
Heap
Kth Largest in N Arrays
Kth Smallest Number in Sorted Matrix
Building Outline
Find Median from Data Stream
Sliding Window Maximum
Rearrange String k Distance Apart
DFS & recursion
Connected Component in Undirected Graph
Word Search
Combination Sum
Expression Add Operators
Nested List weight sum
Permutations
Word Squares
Strobogrammatic Number
Generalized Abbreviation
Evaluate Division
Optimal Account Balancing
The Maze
Letter Combinations of a Phone Number
BFS
Word Ladder
Build Post Office
Walls and Gates
Dynamic Programming
Minimum Path Sum
Triangle
Regular Expression Matching
House Robber
Climbing Stairs
Product of Array Except Self
Longest Increasing Subsequence
Maximal Square
Coins in a Line
Stone Game
Backpack
Scramble String
Subarray Sum
Decode Ways
Edit Distance
Word Break
Target Sum
Paint House
Bomb Enemy
Can I Win
Sentence Screen Fitting
Android Unlock Patterns
Perfect Squares
Longest Increasing Path in a Matrix
Flip Game
Paint Fence
Maximum Vacation Days
Encode String with Shortest Length
Create Maximum Number
Largest Divisible Subset
Sweep Line
Number of Airplanes in the Sky
Merge Intervals
Meeting Rooms
Stack
Perfect Rectangle
Stack
Simplify Path
Valid Parentheses
Evaluate Reverse Polish Notation
Decode String
Min Stack
Basic Calculator
Next Greater Element I
Math
Multiply Strings
Add Binary
Sparse Matrix Multiplication
Pow(x, n)
Sqrt(x)
Roman to Integer
Excel Sheet Column Title
Max Points on a Line
Nth Digit
Fraction to Recurring Decimal
Power of Two
Count Numbers with Unique Digits
Integer Replacement
Super Ugly Number
Two Pointer
Nuts & Bolts Problem
Container With Most Water
Longest Substring Without Repeating Characters
Minimum Size Subarray Sum
Minimum Window Substring
Sort Colors
Remove Element
Remove Duplicates from Sorted Array
Kth Largest Element in an Array
Sort Transformed Array
Wiggle Sort
Longest Word in Dictionary through Deleting
Heaters
Reservoir Sampling
Random Pick Index
Linked List Random Node
Graph
Clone Graph
Alien Dictionary
Course Schedule II
Reconstruct Itinerary
Sequence Reconstruction
Minimum Height Trees
System Design
Consistent Hashing
LRU Cache
Trie
GFS Client
Tiny Url
Peeking Iterator
Map reduce
All O`one Data Structure
Geohash
Design Hit Counter
Design Tic-Tac-Toe
Design Phone Directory
Design Snake Game
Brain teaser
Circle Division by Lines
Binary Index Tree
Range Sum Query - Mutable
Count of Smaller Numbers After Self
Greedy
Queue Reconstruction by Height
Find Permutation
Patching Array
Powered by
GitBook
BFS
BFS关键点
:
queue存储访问顺序
记录访问过的点
用queue当前的size判断本层元素个数
results matching "
"
No results matching "
"