Toggle navigation
小明MaxMing
Home
About
Tags
Tags
Tree
DFS
Linked List
Binary Search
Hash Table
BFS
Greedy
Sliding Window
Stack
Bit Manipulation
String
Recursion
Math
Heap
DP
Design
Two Pointers
Union Find
Array
Hash Set
Geometry
Graph
Trie
Set
Sort
BST
Topology Sort
Priority Queue
Random
Hash
BSF
Topological Sort
Backtracking
HashTable
dp
backtracking
Reservoir Sampling
Binary Index Tree
Prefix Sum
Recursive
stack
HashMap
LinkedList
Medium
Tree
LeetCode 2477 Minimum Fuel Cost to Report to the Capital (Python)
LeetCode 144 Binary Tree Preorder Traversal (Python)
LeetCode 145 Binary Tree Postorder Traversal (Python)
LeetCode 94 Binary Tree Inorder Traversal (Python)
LeetCode 589 N-ary Tree Preorder Traversal (Python)
LeetCode 623 Add One Row to Tree (Python)
LeetCode 637 Average of Levels in Binary Tree (Python)
LeetCode 1457 Pseudo-Palindromic Paths in a Binary Tree (Python)
LeetCode 865 Smallest Subtree with all the Deepest Nodes (Python)
LeetCode 104 Maximum Depth of Binary Tree (Python)
LeetCode 117 Populating Next Right Pointers in Each Node II (Python)
LeetCode 1026 Maximum Difference Between Node and Ancestor (Python)
LeetCode 563 Binary Tree Tilt (Python)
LeetCode 111 Minimum Depth of Binary Tree (Python)
LeetCode 404 Sum of Left Leaves (Python)
LeetCode 437 Path Sum III (Python)
LeetCode 987 Vertical Order Traversal of a Binary Tree (Python)
LeetCode 106 Construct Binary Tree from Inorder and Postorder Traversal (Python)
LeetCode 103 Binary Tree Zigzag Level Order Traversal (Python)
LeetCode 100 Same Tree (Python)
LeetCode 222 Count Complete Tree Nodes (Python)
LeetCode 662 Maximum Width of Binary Tree (Python)
LeetCode 226 Invert Binary Tree (Python)
LeetCode 1448 Count Good Nodes in Binary Tree (Python)
LeetCode 1443 Minimum Time to Collect All Apples in a Tree (Python)
LeetCode Cousins in Binary Tree (Python)
LeetCode Check If a String Is a Valid Sequence from Root to Leaves Path in a Binary Tree (Python)
LeetCode 124 Binary Tree Maximum Path Sum (Python)
LeetCode 543 Diameter of Binary Tree (Python)
LeetCode 1008 Construct Binary Search Tree from Preorder Traversal (Python)
LeetCode 1379 Find a Corresponding Node of a Binary Tree in a Clone of That Tree (Python)
DFS
LeetCode 1778 Shortest Path in a Hidden Grid (Python)
LeetCode 543 Diameter of Binary Tree (Python)
LeetCode 333 Largest BST Subtree (Python)
LeetCode 426 Convert Binary Search Tree to Sorted Doubly Linked List (Python)
LeetCode 339 Nested List Weight Sum (Python)
LeetCode 1644 Lowest Common Ancestor of a Binary Tree II (Python)
LeetCode 236 Lowest Common Ancestor of a Binary Tree (Python)
LeetCode 2421 Number of Good Paths (Python)
LeetCode 2316 Count Unreachable Pairs of Nodes in an Undirected Graph (Python)
LeetCode 1020 Number of Enclaves (Python)
LeetCode 1466 Reorder Routes to Make All Paths Lead to the City Zero (Python)
Leetcode 1254 Number of Closed Islands (Python)
LeetCode 1339 Maximum Product of Splitted Binary Tree (Python)
LeetCode 113 Path Sum II (Python)
LeetCode 827 Making A Large Island (Python)
LeetCode 417 Pacific Atlantic Water Flow (Python)
LeetCode 841 Keys and Rooms (Python)
LeetCode 785 Is Graph Bipartite (Python)
LeetCode 199 Binary Tree Right Side View (Python)
LeetCode 1457 Pseudo-Palindromic Paths in a Binary Tree (Python)
LeetCode 110 Balanced Binary Tree (Python)
LeetCode 865 Smallest Subtree with all the Deepest Nodes (Python)
LeetCode 1306 Jump Game III (Python)
LeetCode 1026 Maximum Difference Between Node and Ancestor (Python)
LeetCode 563 Binary Tree Tilt (Python)
LeetCode 133 Clone Graph (Python)
LeetCode 1022 Sum of Root To Leaf Binary Numbers (Python)
LeetCode 490 The Maze (Python)
LeetCode 437 Path Sum III (Python)
LeetCode 140 Word Break II (Python)
LeetCode 79 Word Search (Python)
LeetCode 212 Word Search II (Python)
LeetCode 332 Reconstruct Itinerary (Python)
LeetCode 129 Sum Root to Leaf Numbers (Python)
LeetCode 130 Surrounded Regions (Python)
LeetCode 207 Course Schedule (Python)
LeetCode 886 Possible Bipartition (Python)
LeetCode 1448 Count Good Nodes in Binary Tree (Python)
LeetCode 733 Flood Fill (Python)
LeetCode 1443 Minimum Time to Collect All Apples in a Tree (Python)
LeetCode Check If a String Is a Valid Sequence from Root to Leaves Path in a Binary Tree (Python)
LeetCode 124 Binary Tree Maximum Path Sum (Python)
LeetCode 200 Number of Islands (Python)
LeetCode 526 Beautiful Arrangement (Python)
Linked List
LeetCode 21 Merge Two Sorted Lists (Python)
LeetCode 19 Remove Nth Node From End of List (Python)
LeetCode 1721 Swapping Nodes in a Linked List (Python)
LeetCode 160 Intersection of Two Linked Lists (Python)
LeetCode 138 Copy List with Random Pointer (Python)
LeetCode 141 Linked List Cycle (Python)
LeetCode 24 Swap Nodes in Pairs (Python)
LeetCode 445 Add Two Numbers II (Python)
LeetCode 147 Insertion Sort List (Python)
LeetCode 142 Linked List Cycle II (Python)
LeetCode 148 Sort List (Python)
LeetCode 61 Rotate List (Python)
LeetCode 143 Reorder List (Python)
LeetCode 203 Remove Linked List Elements (Python)
LeetCode 430 Flatten a Multilevel Doubly Linked List (Python)
LeetCode 237 Delete Node in a Linked List (Python)
LeetCode 328 Odd Even Linked List (Python)
LeetCode 876 Middle of the Linked List (Python)
LeetCode 21 Merge Two Sorted Lists (Python)
Binary Search
LeetCode 1060 Missing Element in Sorted Array (Python)
LeetCode 153 Find Minimum in Rotated Sorted Array (Python)
LeetCode 162 Find Peak Element (Python)
LeetCode 2300 Successful Pairs of Spells and Potions (Python)
LeetCode 1011 Capacity To Ship Packages Within D Days (Python)
LeetCode 1283 Find the Smallest Divisor Given a Threshold (Python)
LeetCode 74 Search a 2D Matrix (Python)
LeetCode 704 Binary Search (Python)
LeetCode 436 Find Right Interval (Python)
LeetCode 497 Random Point in Non-overlapping Rectangles (Python)
LeetCode 154 Find Minimum in Rotated Sorted Array II (Python)
LeetCode 1044 Longest Duplicate Substring (Python)
LeetCode 275 H-Index II (Python)
LeetCode 35 Search Insert Position (Introduce python bisect) (Python)
LeetCode 392 Is Subsequence (With Follow up) (Python)
LeetCode 528 Random Pick with Weight (Python)
LeetCode 540 Single Element in a Sorted Array (Python)
LeetCode 367 Valid Perfect Square (Python)
LeetCode 278 First Bad Version (Python)
LeetCode 33 Search in Rotated Sorted Array (Python)
LeetCode 1539 Kth Missing Positive Number (Python)
Hash Table
LeetCode 1329 Sort the Matrix Diagonally (Python)
LeetCode 1679 Max Number of K-Sum Pairs (Python)
LeetCode 454 4Sum II (Python)
LeetCode 389 Find the Difference (Python)
LeetCode 299 Bulls and Cows (Python)
LeetCode 290 Word Pattern (Python)
LeetCode 359 Logger Rate Limiter (Python)
LeetCode 957 Prison Cells After N Days (Python)
LeetCode 451 Sort Characters By Frequency (Python)
LeetCode 567 Permutation in String (Python)
LeetCode 438 Find All Anagrams in a String (Python)
LeetCode 387 First Unique Character in a String (Python)
LeetCode 53 Maximum Subarray (Python)
LeetCode 202 Happy Number (Python)
LeetCode 49 Group Anagrams (Python)
LeetCode 1001 Grid Illumination (Python)
LeetCode 1002 Find Common Characters (Python)
LeetCode 525 Contiguous Array (Python)
LeetCode 3 Longest Substring Without Repeating Characters (Python)
BFS
LeetCode 1778 Shortest Path in a Hidden Grid (Python)
LeetCode 1609 Even Odd Tree (Python)
LeetCode 863 All Nodes Distance K in Binary Tree (Python)
LeetCode 2850 Minimum Moves to Spread Stones Over Grid (Python)
LeetCode 2316 Count Unreachable Pairs of Nodes in an Undirected Graph (Python)
LeetCode 1020 Number of Enclaves (Python)
LeetCode 1466 Reorder Routes to Make All Paths Lead to the City Zero (Python)
LeetCode 1129 Shortest Path with Alternating Colors (Python)
LeetCode 1162 As Far from Land as Possible (Python)
Leetcode 1254 Number of Closed Islands (Python)
LeetCode 126 Word Ladder II (Python)
LeetCode 429 N-ary Tree Level Order Traversal (Python)
LeetCode 113 Path Sum II (Python)
LeetCode 45 Jump Game II (Python)
LeetCode 417 Pacific Atlantic Water Flow (Python)
LeetCode 637 Average of Levels in Binary Tree (Python)
LeetCode 1091 Shortest Path in Binary Matrix (Python)
LeetCode 1306 Jump Game III (Python)
LeetCode 117 Populating Next Right Pointers in Each Node II (Python)
LeetCode 111 Minimum Depth of Binary Tree (Python)
LeetCode 967 Numbers With Same Consecutive Differences (Python)
LeetCode 994 Rotting Oranges (Python)
LeetCode 107 Binary Tree Level Order Traversal II (Python)
LeetCode 279 Perfect Squares (Python)
LeetCode Cousins in Binary Tree (Python)
LeetCode 200 Number of Islands (Python)
LeetCode 127 Word Ladder (Python)
Greedy
LeetCode 670 Maximum Swap (Python)
LeetCode 2405 Optimal Partition of String (Python)
LeetCode 2439 Minimize Maximum of Array (Python)
LeetCode 1402 Reducing Dishes (Python)
LeetCode 1675 Minimize Deviation in Array (Python)
LeetCode 502 IPO (Python)
LeetCode 2477 Minimum Fuel Cost to Report to the Capital (Python)
LeetCode 954 Array of Doubled Pairs (Python)
LeetCode 968 Binary Tree Cameras (Python)
LeetCode 1642 Furthest Building You Can Reach (Python)
LeetCode 376 Wiggle Subsequence (Python)
LeetCode 1663 Smallest String With A Given Numeric Value (Python)
LeetCode 1673 Find the Most Competitive Subsequence (Python)
LeetCode 910 Smallest Range II (Python)
LeetCode 605 Can Place Flowers (Python)
LeetCode 1217 Minimum Cost to Move Chips to The Same Position (Python)
LeetCode 948 Bag of Tokens (Python)
LeetCode LeetCode 每日一题 Daily Challenge 188 Best Time to Buy and Sell Stock IV (Python)
LeetCode 316 Remove Duplicate Letters (Python)
LeetCode 452 Minimum Number of Arrows to Burst Balloons (Python)
LeetCode 1288 Remove Covered Intervals (Python)
LeetCode 134 Gas Station (Python)
LeetCode 121 Best Time to Buy and Sell Stock (Python)
LeetCode 435 Non-overlapping Intervals (Python)
LeetCode 621 Task Scheduler (Python)
LeetCode 406 Queue Reconstruction by Height (Python)
LeetCode 1029 Two City Scheduling (Python)
LeetCode 402 Remove K Digits (Python)
LeetCode 1046 Last Stone Weight (Python)
LeetCode 55 Jump Game (Python)
LeetCode 122 Best Time to Buy and Sell Stock II (Python)
LeetCode 881 Boats to Save People (Python)
Sliding Window
LeetCode 239 Sliding Window Maximum (Python)
LeetCode 395 Longest Substring with At Least K Repeating Characters (Python)
LeetCode 1658 Minimum Operations to Reduce X to Zero (Python)
Stack
LeetCode 636 Exclusive Time of Functions (Python)
LeetCode 1762 Buildings With an Ocean View (Python)
LeetCode 84 Largest Rectangle in Histogram (Python)
LeetCode 1475 Final Prices With a Special Discount in a Shop (Python)
LeetCode 496 Next Greater Element I (Python)
LeetCode 1209 Remove All Adjacent Duplicates in String II (Python)
LeetCode 32 Longest Valid Parentheses (Python)
LeetCode 946 Validate Stack Sequences (Python)
LeetCode 71 Simplify Path (Python)
LeetCode 1673 Find the Most Competitive Subsequence (Python)
LeetCode 20 Valid Parentheses (Python)
LeetCode 227 Basic Calculator II (Python)
LeetCode 394 Decode String (Python)
LeetCode 456 132 Pattern (Python)
LeetCode 735 Asteroid Collision (Python)
LeetCode 316 Remove Duplicate Letters (Python)
LeetCode 430 Flatten a Multilevel Doubly Linked List (Python)
LeetCode 901 Online Stock Span (Python)
LeetCode 402 Remove K Digits (Python)
LeetCode 1441 Build an Array With Stack Operations (Python)
LeetCode 155 Min Stack (Python)
LeetCode 844 Backspace String Compare (Python)
Bit Manipulation
LeetCode 1470 Shuffle the Array (Python)
LeetCode 1342 Number of Steps to Reduce a Number to Zero (Python)
LeetCode 191 Number of 1 Bits (Python)
LeetCode 1290 Convert Binary Number in a Linked List to Integer (Python)
LeetCode 421 Maximum XOR of Two Numbers in an Array (Python)
LeetCode 342 Power of Four (Python)
LeetCode 260 Single Number III (Python)
LeetCode 190 Reverse Bits (Python)
LeetCode 461 Hamming Distance (Python)
LeetCode 137 Single Number II (Python)
LeetCode 231 Power of Two (Python)
LeetCode 338 Counting Bits (Python)
LeetCode 1442 Count Triplets That Can Form Two Arrays of Equal XOR (Python)
LeetCode 1009 Complement of Base 10 Integer (Python)
LeetCode 476 Number Complement (Python)
LeetCode 136 Single Number (Python)
LeetCode 201 Bitwise AND of Numbers Range (Python)
String
LeetCode 921 Minimum Add to Make Parentheses Valid (Python)
LeetCode 616 Add Bold Tag in String (Python)
LeetCode 415 Add Strings (Python)
LeetCode 680 Valid Palindrome II (Python)
LeetCode 8 String to Integer (atoi) (Python)
LeetCode 767 Reorganize String (Python)
LeetCode 14 Longest Common Prefix (Python)
LeetCode 68 Text Justification (Python)
LeetCode 1446 Consecutive Characters (Python)
LeetCode 859 Buddy Strings (Python)
LeetCode 58 Length of Last Word (Python)
LeetCode 165 Compare Version Numbers (Python)
LeetCode 824 Goat Latin (Python)
LeetCode 125 Valid Palindrome (Python)
LeetCode 520 Detect Capital (Python)
LeetCode 151 Reverse Words in a String (Python)
LeetCode 468 Validate IP Address (Python)
LeetCode 1513 Number of Substrings With Only 1s (Python)
LeetCode 344 Reverse String (Python)
LeetCode 1446 Consecutive Characters (Python)
LeetCode 383 Ransom Note (Python)
LeetCode 678 Valid Parenthesis String (Python)
LeetCode 1003 Check If Word Is Valid After Substitutions (Python)
Recursion
LeetCode 226 Invert Binary Tree (Python)
LeetCode 1003 Check If Word Is Valid After Substitutions (Python)
Math
LeetCode 296 Best Meeting Point (Python)
LeetCode 319 Bulb Switcher (Python)
LeetCode 989 Add to Array-Form of Integer (Python)
LeetCode 1523 Count Odd Numbers in an Interval Range (Python)
LeetCode 1071 Greatest Common Divisor of Strings (Python)
LeetCode 633 Sum of Square Numbers (Python)
LeetCode 537 Complex Number Multiplication (Python)
LeetCode 877 Stone Game (Python)
LeetCode 906 Super Palindromes (Python)
LeetCode 509 Fibonacci Number (Python)
LeetCode 1551 Minimum Operations to Make Array Equal (Python)
LeetCode 923 3Sum With Multiplicity (Python)
LeetCode 869 Reordered Power of 2 (Python)
LeetCode 478 Generate Random Point in a Circle (Python)
LeetCode 268 Missing Number (Python)
LeetCode 645 Set Mismatch (Python)
LeetCode 13 Roman to Integer (Python)
LeetCode 413 Arithmetic Slices (Python)
LeetCode 1641 Count Sorted Vowel Strings (Python)
LeetCode 1492 The kth Factor of n (Python)
LeetCode 1015 Smallest Integer Divisible by K (Python)
LeetCode 902 Numbers At Most N Given Digit Set (Python)
LeetCode 858 Mirror Reflection (Python)
LeetCode 458 Poor Pigs (Python)
LeetCode 593 Valid Square (Python)
LeetCode 1041 Robot Bounded In Circle (Python)
LeetCode 949 Largest Time for Given Digits (Python)
LeetCode 952 Largest Component Size by Common Factor (Python)
LeetCode 1103 Distribute Candies to People (Python)
LeetCode 171 Excel Sheet Column Number (Python)
LeetCode 258 Add Digits (Python)
LeetCode 67 Add Binary (Python)
LeetCode 50 Pow(x, n) (Python)
LeetCode 1344 Angle Between Hands of a Clock (Python)
LeetCode LeetCode 1515 Best Position for a Service Centre (Python)
LeetCode 1502 Can Make Arithmetic Progression From Sequence (Python)
LeetCode 441 Arranging Coins (Python)
LeetCode 62 Unique Paths (Python)
LeetCode 279 Perfect Squares (Python)
LeetCode 60 Permutation Sequence (Python)
LeetCode Leetcode 1447 Simplified Fractions (Python)
LeetCode 1442 Count Triplets That Can Form Two Arrays of Equal XOR (Python)
LeetCode 367 Valid Perfect Square (Python)
LeetCode 1232 Check If It Is a Straight Line (Python)
LeetCode 53 Maximum Subarray (Python)
LeetCode 202 Happy Number (Python)
Heap
LeetCode 215 Kth Largest Element in an Array (Python)
LeetCode 347 Top K Frequent Elements (Python)
LeetCode 264 Ugly Number II (Python)
LeetCode 1046 Last Stone Weight (Python)
DP
LeetCode 1216 Valid Palindrome III (Python)
LeetCode 1416 Restore The Array (Python)
LeetCode 87 Scramble String (Python)
LeetCode 91 Decode Ways (Python)
LeetCode 926 Flip String to Monotone Increasing (Python)
LeetCode 132 Palindrome Partitioning II (Python)
LeetCode 1048 Longest String Chain (Python)
LeetCode 63 Unique Paths II (Python)
LeetCode 120 Triangle (Python)
LeetCode 377 Combination Sum IV (Python)
LeetCode 714 Best Time to Buy and Sell Stock with Transaction Fee (Python)
LeetCode 823 Binary Trees With Factors (Python)
LeetCode 1463 Cherry Pickup II (Python)
LeetCode 312 Burst Balloons (Python)
LeetCode 416 Partition Equal Subset Sum (Python)
LeetCode 337 House Robber III (Python)
LeetCode 902 Numbers At Most N Given Digit Set (Python)
LeetCode 673 Number of Longest Increasing Subsequence (Python)
LeetCode 1510 Stone Game IV (Python)
LeetCode LeetCode 每日一题 Daily Challenge 188 Best Time to Buy and Sell Stock IV (Python)
LeetCode 213 House Robber II (Python)
LeetCode 198 House Robber (Python)
LeetCode 983 Minimum Cost For Tickets (Python)
LeetCode 123 Best Time to Buy and Sell Stock III (Python)
LeetCode 70 Climbing Stairs (Python)
LeetCode 309 Best Time to Buy and Sell Stock with Cooldown (Python)
LeetCode 264 Ugly Number II (Python)
LeetCode 62 Unique Paths (Python)
LeetCode 279 Perfect Squares (Python)
LeetCode 96 Unique Binary Search Trees (Python)
LeetCode 174 Dungeon Game (Python)
LeetCode 368 Largest Divisible Subset (Python)
LeetCode 518 Coin Change 2 (Python)
LeetCode 72 Edit Distance (Python)
LeetCode 1035 Uncrossed Lines (Python)
LeetCode 1277 Count Square Submatrices with All Ones (Python)
LeetCode 1449 Form Largest Integer With Digits That Add up to Target (Python)
LeetCode 1444 Number of Ways of Cutting a Pizza (Python)
LeetCode 221 Maximal Square (Python)
LeetCode 64 Minimum Path Sum (Python)
LeetCode 1143 Longest Common Subsequence (Python)
Design
LeetCode 348 Design Tic-Tac-Toe (Python)
LeetCode 2336 Smallest Number in Infinite Set (Python)
LeetCode 622 Design Circular Queue (Python)
LeetCode 1396 Design Underground System (Python)
LeetCode 284 Peeking Iterator (Python)
LeetCode 173 Binary Search Tree Iterator (Python)
LeetCode 449 Serialize and Deserialize BST (Python)
LeetCode 933 Number of Recent Calls (Python)
LeetCode 346 Moving Average from Data Stream (Python)
LeetCode 1286 Iterator for Combination (Python)
LeetCode 705 Design HashSet (Python)
LeetCode 359 Logger Rate Limiter (Python)
LeetCode 380 Insert Delete GetRandom O(1) (Python)
LeetCode 208 Implement Trie (Prefix Tree) (Python)
LeetCode 155 Min Stack (Python)
Two Pointers
LeetCode 1004 Max Consecutive Ones III (Python)
LeetCode 16 3Sum Closest (Python)
LeetCode 408 Valid Word Abbreviation (Python)
LeetCode 1650 Lowest Common Ancestor of a Binary Tree III (Python)
LeetCode 2300 Successful Pairs of Spells and Potions (Python)
LeetCode 904 Fruit Into Baskets (Python)
LeetCode 11 Container With Most Water (Python)
LeetCode 923 3Sum With Multiplicity (Python)
LeetCode 80 Remove Duplicates from Sorted Array II (Python)
LeetCode 845 Longest Mountain in Array (Python)
LeetCode 713 Subarray Product Less Than K (Python)
LeetCode 15 3Sum (Python)
LeetCode 287 Find the Duplicate Number (Python)
LeetCode 986 Interval List Intersections (Python)
LeetCode 283 Move Zeroes (Python)
Union Find
LeetCode 2421 Number of Good Paths (Python)
LeetCode 1579 Remove Max Number of Edges to Keep Graph Fully Traversable (Python)
LeetCode 1697 Checking Existence of Edge Length Limited Paths (Python)
LeetCode 839 Similar String Groups (Python)
LeetCode 1632 Rank Transform of a Matrix (Python)
LeetCode 952 Largest Component Size by Common Factor (Python)
LeetCode 200 Number of Islands (Python)
Array
LeetCode 163 Missing Ranges (Python)
LeetCode 766 Toeplitz Matrix (Python)
LeetCode 498 Diagonal Traverse (Python)
LeetCode 1470 Shuffle the Array (Python)
LeetCode 189 Rotate Array (Python)
LeetCode 442 Find All Duplicates in an Array (Python)
LeetCode 1535 Find the Winner of an Array Game (Python)
LeetCode 1534 Count Good Triplets (Python)
LeetCode 1450 Number of Students Doing Homework at a Given Time (Python)
LeetCode 918 Maximum Sum Circular Subarray (Python)
LeetCode 238 Product of Array Except Self (Python)
Hash Set
LeetCode 3043 Find the Length of the Longest Common Prefix (Python)
LeetCode 128 Longest Consecutive Sequence (Python)
LeetCode 771 Jewels and Stones (Python)
Geometry
LeetCode 1453 Maximum Number of Darts Inside of a Circular Dartboard (Python)
LeetCode 1232 Check If It Is a Straight Line (Python)
Graph
LeetCode 1129 Shortest Path with Alternating Colors (Python)
LeetCode 2477 Minimum Fuel Cost to Report to the Capital (Python)
LeetCode 743 Network Delay Time (Python)
LeetCode 547 Number of Provinces (Python)
LeetCode 785 Is Graph Bipartite (Python)
LeetCode 1631 Path With Minimum Effort (Python)
LeetCode 310 Minimum Height Trees (Python)
LeetCode 133 Clone Graph (Python)
LeetCode 399 Evaluate Division (Python)
LeetCode 797 All Paths From Source to Target (Python)
LeetCode 1514 Path with Maximum Probability (Python)
LeetCode 787 Cheapest Flights Within K Stops (Python)
LeetCode 207 Course Schedule (Python)
LeetCode 997 Find the Town Judge (Python)
Trie
LeetCode 1032 Stream of Characters (Python)
LeetCode 211 Add and Search Word - Data structure design (Python)
LeetCode 212 Word Search II (Python)
LeetCode 208 Implement Trie (Prefix Tree) (Python)
Set
LeetCode 1452 People Whose List of Favorite Companies Is Not a Subset of Another List (Python)
Sort
LeetCode 791 Custom Sort String (Python)
LeetCode 539 Minimum Time Difference (Python)
LeetCode 23 Merge k Sorted Lists (Python)
LeetCode 179 Largest Number (Python)
LeetCode 220 Contains Duplicate III (Python)
LeetCode 969 Pancake Sorting (Python)
LeetCode 274 H-Index (Python)
LeetCode 1451 Rearrange Words in a Sentence (Python)
BST
LeetCode 783 Minimum Distance Between BST Nodes (Python)
LeetCode 538 Convert BST to Greater Tree (Python)
LeetCode 669 Trim a Binary Search Tree (Python)
LeetCode 110 Balanced Binary Tree (Python)
LeetCode 98 Validate Binary Search Tree (Python)
LeetCode 173 Binary Search Tree Iterator (Python)
LeetCode 938 Range Sum of BST (Python)
LeetCode 449 Serialize and Deserialize BST (Python)
LeetCode 701 Insert into a Binary Search Tree (Python)
LeetCode 1305 All Elements in Two Binary Search Trees (Python)
LeetCode 450 Delete Node in a BST (Python)
LeetCode 270 Closest Binary Search Tree Value (Python)
LeetCode 700 Search in a Binary Search Tree (Python)
LeetCode 230 Kth Smallest Element in a BST (Python)
Topology Sort
LeetCode 207 Course Schedule (Python)
Priority Queue
LeetCode 23 Merge k Sorted Lists (Python)
LeetCode 973 K Closest Points to Origin (Python)
Random
LeetCode 470 Implement Rand10() Using Rand7() (Python)
LeetCode 497 Random Point in Non-overlapping Rectangles (Python)
LeetCode 528 Random Pick with Weight (Python)
Hash
LeetCode 205 Isomorphic Strings (Python)
LeetCode 350 Intersection of Two Arrays II (Python)
LeetCode 653 Two Sum IV - Input is a BST (Python)
LeetCode 36 Valid Sudoku (Python)
LeetCode 1 Two Sum (Python)
LeetCode 953 Verifying an Alien Dictionary (Python)
LeetCode 966 Vowel Spellchecker (Python)
LeetCode 594 Longest Harmonious Subsequence (Python)
LeetCode 187 Repeated DNA Sequences (Python)
LeetCode 380 Insert Delete GetRandom O(1) (Python)
BSF
LeetCode 130 Surrounded Regions (Python)
Topological Sort
LeetCode 1857 Largest Color Value in a Directed Graph (Python)
LeetCode 310 Minimum Height Trees (Python)
LeetCode 210 Course Schedule II (Python)
Backtracking
LeetCode 980 Unique Paths III (Python)
LeetCode 216 Combination Sum III (Python)
LeetCode 1286 Iterator for Combination (Python)
LeetCode 79 Word Search (Python)
HashTable
LeetCode 398 Random Pick Index (Python)
LeetCode 1650 Lowest Common Ancestor of a Binary Tree III (Python)
LeetCode 249 Group Shifted Strings (Python)
LeetCode 1570 Dot Product of Two Sparse Vectors (Python)
LeetCode 314 Binary Tree Vertical Order Traversal (Python)
LeetCode 409 Longest Palindrome (Python)
dp
LeetCode 139 Word Break (Python)
backtracking
LeetCode 39 Combination Sum (Python)
Reservoir Sampling
LeetCode 382 Linked List Random Node (Python)
Binary Index Tree
LeetCode 1649 Create Sorted Array through Instructions (Python)
Prefix Sum
LeetCode 303 Range Sum Query - Immutable (Python)
Recursive
LeetCode 95 Unique Binary Search Trees II (Python)
LeetCode 779 K-th Symbol in Grammar (Python)
LeetCode 206 Reverse Linked List (Python)
stack
LeetCode 224 Basic Calculator (Python)
HashMap
LeetCode 1748 Sum of Unique Elements (Python)
LeetCode 76 Minimum Window Substring (Python)
LinkedList
LeetCode 708 Insert into a Sorted Circular Linked List (Python)
Medium
LeetCode 116 Populating Next Right Pointers in Each Node (Python)