Leetcode Lintcode Amazon Facebook OS OA Python Deep Learning Docker Html Binary Search Greedy Leetcode 890 - Find And Replace Pattern 34 - Find First And Last Position Of Element In Sorted Array 1047 - Remove All Adjacent Duplicates In String 1209 - Remove All Adjacent Duplicates In String Ii 576 - Out Of Boundary Paths 1472 - Design Browser History 1429 - First Unique Number 346 - Moving Average From Data Stream 876 - Middle Of The Linked List 973 - K Closest Points To Origin 1192 - Critical Connections In A Network 896 - Monotonic Array 689 - Maximum Sum Of 3 Non Overlapping Subarrays 785 - Is Graph Bipartite 824 - Goat Latin 636 - Exclusive Time Of Functions 523 - Continuous Subarray Sum 987 - Vertical Order Traversal Of A Binary Tree 833 - Find And Replace In String 588 - Design In Memory File System 889 - Construct Binary Tree From Preorder And Postorder Traversal 1011 - Capacity To Ship Packages Within D Days 844 - Backspace String Compare 1197 - Minimum Knight Moves 363 - Max Sum Of Rectangle No Larger Than K 951 - Flip Equivalent Binary Trees 1146 - Snapshot Array 489 - Robot Room Cleaner 1219 - Path With Maximum Gold 752 - Open The Lock 743 - Network Delay Time 729 - My Calender I 731 - My Calendar II 939 - Minimum Area Rectangle 846 - Hand Of Straights 1145 - Binary Tree Coloring Game 1074 - Numbers Of Submatrices That Sum To Target 727 - Minimum Window Subsequence 801 - Minimum Swaps To Make Sequence Increasing 552 - Student Attendance Record Ii 1153 - String Transformations Into Another String 659 - Split Array Into Consecutive Subsequences 1055 - Shortest Way To Form String 465 - Optimal Account Balancing 1000 - Minimum Cost To Merge Stones 809 - Expressive Words 1110 - Delete Nodes And Return Forest 1056 - Confusing Number 1088 - Confusing Number II 1170 - Compare Strings By Frequency Of The Smallest Character 1155 - Number Of Dice Rolls With Target Sum 545 - Boundary Of Binary Tree 1152 - Analyze User Website Visit Pattern 1099 - Two Sum Less Than K 866 - Prime_Palindrome 1102 - Path With Maximum Minimum Value 694 - Number Of Distinct Islands 819 - Most Common Word 1167 - Minimum Cost To Connect Sticks 456 - 132 Pattern 787 - Cheapest Flights Within K Stops 1057 - Campus Bikes 679 - 24 Game 721 - Accounts Merge 1031 - Maximum Sum Of Two Non-Overlapping Subarrays 622 - Design Circular Queue 518 - Coin Change 2 426 - Convert Binary Search Tree To Sorted Doubly Linked List 647 - Palindromic Substrings 1249 - Minimum Remove To Make Valid Parentheses 498 - Diagonal Traverse 863 - All Nodes Distance K In Binary Tree 680 - Valid Palindrome II 773 - Sliding Puzzle 767 - Reorganize String 957 - Prison Cells After N Days 755 - Pour Water 716 - Max Stack 695 - Max Area Of Island 739 - Daily Temperatures 525 - Contiguous Array 472 - Concatenated Words 692 - Top K Frequent Words 843 - Guess The Word 438 - Find All Anagrams In A String 772 - Basic Calculator III 443 - String Compression 528 - Random Pick With Weight 986 - Interval List Intersections 445 - Add Two Numbers II 415 - Add Strings 228 - Summary Ranges 236 - Lowest Common Ancestor of a Binary Tree 339 - Nested List Weight Sum 364 - Nested List Weight Sum II 348 - Design Tic Tac Toe 44 - Wildcard Matching 72 - Edit Distance 239 - Sliding Window Maximum 412 - Fizz Buzz 140 - Word Break II 811 - Subdomain Visit Count 780 - Reaching Points 362 - Design Hit Counter 341 - Flatten Nested List Iterator 227 - Basic Calculator II 45 - Jump Game II 1048 - Longest String Chain 430 - Flatten A Multilevel Doubly Linked List 621 - Task Scheduler 759 - Employee Free Time 460 - Lfu Cache 547 - Friend Circles 1181 - Before And After Puzzle 735 - Asteroid Collision 981 - Time Based Key Value Store 642 - Design Search Autocomplete System 336 - Palindrome Pairs 539 - Minimum Time Difference 609 - Find Duplicate File In System 953 - Verifying An Alien Dictionary 560 - Subarray Sum Equals K 1007 - Minmum Domino Rotations For Equal Row 347 - Top K Frequent Elements 1268 - Search Suggestions System 994 - Rotting Oranges 937 - Reorder Data in Log Files 766 - Toeplitz Matrix 734 - Sentence Similarity 737 - Sentence Similarity II 418 - Sentence Screen Fitting 686 - Repeated String Match 406 - Queue Reconstruction By Height 417 - Pacific Atlantic Water Flow 681 - Next Closest Time 524 - Longest Word In Dictionary Through Deleting 687 - Longest Univalue Path 482 - License Key Formatting 616 - Add Bold Tag In String 354 - Russian Doll Envelopes 370 - Range Addition 369 - Plus One Linked List 359 - Logger Rate Limiter 356 - Line Reflection 353 - Design Snake Game 351 - Android Unlock Patterns 503 - Next Greater Element II 487 - Max Consecutive Ones II 384 - Shuffle An Array 396 - Rotate Function 398 - Random Pick Index 400 - Nth Digit 395 - Longest Substring With At Least K Repeating Characters 382 - Linked List Random Node 397 - Integer Replacement 380 - Insert Delete Getrandom O1 381 - Insert Delete Getrandom O1 Duplicates Allowed 399 - Evaluate Division 393 - UTF-8 Validation 388 - Longest Absolute File Path 392 - Is Subsequence 387 - First Unique Character In A String 390 - Elimination Game 394 - Decode String 376 - Wiggle Subsequence 365 - Water And Jug Problem 367 - Valid Perfect Square 347 - Top K Frequent Elements 372 - Super Pow 371 - Sum Of Two Integers 383 - Ransom Note 385 - Mini Parser 386 - Lexicographical Numbers 374 - Guess Number Higher Or Lower 373 - Find K Pairs With Smallest Sums 357 - Count Numbers With Unique Digits 377 - Combination Sum Iv 297 - Serialize And Deserialize Binary Tree 345 - Reverse Vowels Of A String 342 - Power Of Four 337 - House Robber III 349 - Intersection Of Two Arrays 350 - Intersection Of Two Arrays II 343 - Integer Break 410 - Split Array Largest Sum 416 - Partition Equal Subset Sum 421 - Maximum Xor Of Two Numbers In An Array 242 - Valid Anagram 217 - Contains Duplicate 191 - Number Of 1 Bits 167 - Two Sum II 189 - Rotate Array 368 - Largest Divisible Subset Matchsticks To Square Increasing Subsequences Beautiful Arrangement Kill Process 375 - Guess Number Higher Or Lower II 1 - Two Sum 575 - Distribute Candies Find The Difference Longest Uncommon Subsequence ii Longest Uncommon Subsequence i 448 - Find All Numbers Disappeared in an Array 355 - Design Twitter 485 - Max Consecutive Ones Detect Capital 463 - Island Perimeter Reverse String 496 - Next Greater Element I Reshape the Matrix 476 - Number Complement Keyboard Row Reverse Words in a String III 461 - Hamming Distance 561 - Array Partition 1 507 - Perfect number 501 - Find Mode in Binary Search Tree 333 - Largest BST Subtree 331 - Verify Preorder Serialization of a Binary Tree 334 - Increasing Triplet Subsequence 332 - Reconstruct Itinerary 330 - Patching Array Longest Increasing Path in a Matrix Top k elements with most occurrences 328 - Odd Even Linked List 327 - Count of Range Sum 326 - Power of Three 325 - Maximum Size Subarray Sum Equals k Wiggle Sort II 323 - Number of Connected Components in an Undirected Graph 322 - Coin Change 321 - Create Maximum Number 320 - Generalized Abbreviation Java interview questions 319 - Bulb Switcher 317 - Shortest Distance from All Buildings 318 - Maximum Product of Word Lengths Reverse half of a Linkedlist Remove Duplicate Letters System design readings 315 - Count of Smaller Numbers After Self 314 - Binary Tree Vertical Order Traversal 313 - Super Ugly Number 312 - Burst Balloons Sparse Matrix Multiplication 290 - Word Pattern 310 - Minimum Height Trees Asynchronous vs synchronous execution 309 - Best Time to Buy and Sell Stock with Cooldown 308 - Range Sum Query 2D - Mutable 340 - Longest Substring with At Most K Distinct Characters 307 - Range Sum Query - Mutable 306 - Additive Number Quick Sort 9 - Palindrome Number 6 - ZigZag Conversion 14 - Longest Common Prefix 22 - Generate Parentheses 30 - Substring with Concatenation of All Words 32 - Longest Valid Parentheses 37 - Sudoku Solver 43 - Multiply Strings 59 - Spiral Matrix II 54 - Spiral Matrix Swap two digits in a integer 68 - Text Justification 85 - Maximal Rectangle 91 - Decode Ways 93 - Restore IP Addresses 304 - Range Sum Query 2D - Immutable 99 - Recover Binary Search Tree 100 - Same Tree 101 - Symmetric Tree 113 - Path Sum II 303 - Range Sum Query - Immutable 117 - Populating Next Right Pointers in Each Node II 116 - Populating Next Right Pointers in Each Node 119 - Pascal's Triangle II 118 - Pascal's Triangle 50 - Pow(x, n) What is the difference between a thread and a process? Smallest Rectangle Enclosing Black Pixels 130 - Surrounded Regions 112 - Path Sum 129 - Sum Root to Leaf Numbers 132 - Palindrome Partitioning II Difference between a stack and a heap 158 - Read N Characters Given Read4 II - Call multiple times 157 - Read N Characters Given Read4 156 - Binary Tree Upside Down 159 - Longest Substring with At Most Two Distinct Characters One Edit Distance 163 - Missing Ranges 165 - Compare Version Numbers 166 - Fraction to Recurring Decimal Two Sum III - Data structure design 171 - Excel Sheet Column Number 168 - Excel Sheet Column Title 301 - Remove Invalid Parentheses Dungeon Game 187 - Repeated DNA Sequences 190 - Reverse Bits 199 - Binary Tree Right Side View 201 - Bitwise AND of Numbers Range 202 - Happy Number 204 - Count Primes Isomorphic Strings 210 - Course Schedule II 207 - Course Schedule 211 - Add and Search Word 213 - House Robber II 214 - Shortest Palindrome 216 - Combination Sum III 220 - Contains Duplicate III 219 - Contains Duplicate II 221 - Maximal Square 222 - Count Complete Tree Nodes 225 - Implement Stack using Queues 224 - Basic Calculator 海量数据处理 230 - Kth Smallest Element in a BST 241 - Different Ways to Add Parentheses Shortest Word Distance III Shortest Word Distance II Shortest Word Distance Strobogrammatic Number III Strobogrammatic Number II 246 - Strobogrammatic Number 249 - Group Shifted Strings 250 - Count Univalue Subtrees Flatten 2D Vector 253 - Meeting Rooms II 252 - Meeting Rooms Factor Combinations 299 - Bulls and Cows 255 - Verify Preorder Sequence in Binary Search Tree 256 - Paint House 257 - Binary Tree Paths 258 - Add Digits 259 - 3Sum Smaller 261 - Graph Valid Tree 264 - Ugly Number II Paint House II 267 - Palindrome Permutation II 266 - Palindrome Permutation 269 - Alien Dictionary 270 - Closest Binary Search Tree Value 271 - Encode and Decode Strings 272 - Closest Binary Search Tree Value II 273 - Integer to English Words 275 - H-Index II 274 - H-Index 276 - Paint Fence 277 - Find the Celebrity 280 - Wiggle Sort 281 - Zigzag Iterator Inorder Successor in BST Walls and Gates 288 - Unique Word Abbreviation Flip Game II 293 - Flip Game Best Meeting Point 298 - Binary Tree Longest Consecutive Sequence 295 Find Median from Data Stream 292 - Nim Game 289 - Game of Life 287 - Find the Duplicate Number 284 - Peeking Iterator 283 - Move Zeroes 282 - Expression Add Operators 279 - Perfect Squares 146 - LRU Cache Search in a Big Sorted Array Coins in a Line III 135 - Candy Data Stream Median Expression Evaluation 84 - Largest Rectangle in Histogram Max Tree 10 - Regular Expression Matching 65 - Valid Number Scramble String Post Office Problem Bucket sort Maximum gap 223 - Rectangle Area Largest sibling 547 - Friend circles Summary for leetcode, zz from peking2 Copy Books Expression Tree Build Triangle Count Buy one get one free Counting heads Local maximum Binary Representation Word Pattern II Building skyline Outline 218 - The Skyline Problem Sliding Window Median 160 - Intersection of Two Linked Lists 234 - Palindrome Linked List 24 - Swap Nodes in Pairs 203 - Remove Linked List Elements 114 - Flatten Binary Tree to Linked List 17 - Letter Combinations of a Phone Number 25 - Reverse Nodes in k-Group Find the Weak Connected Component in the Directed Graph Trapping Rain Water II 42 - Trapping Rain Water 212 - Word Search II 79 - Word Search The Smallest Difference Sort Letters by Case Sort Colors II 75 - Sort Colors 71 - Simplify Path 73 - Set Matrix Zeroes 61 - Rotate List 48 - Rotate Image Rehashing Number of Airplanes in the Sky 31 - Next Permutation Minimum Adjustment Cost 209 - Minimum Size Subarray Sum Maximum Subarray Difference 152 - Maximum Product Subarray 149 - Max Points on a Line 3 - Longest Substring Without Repeating Characters 128 - Longest Consecutive Sequence 179 - Largest Number 378 - Kth Smallest Element in a Sorted Matrix k Sum II k Sum 208 - Implement Trie Interleaving Positive and Negative Numbers 13 - Roman to Integer 12 - Integer to Roman 198 - House Robber 134 - Gas Station Convert Expression to Polish Notation Convert Expression to Reverse Polish Notation 150 - Evaluate Reverse Polish Notation 29 - Divide Two Integers Digit Counts Delete Digits 248 - Count of Smaller Number Segment Tree Modify Segment Tree Query II Segment Tree Query Segmemt Tree Build II Segment Tree Build 11 - Container With Most Water Coins in a Line II Coins in a Line 133 - Clone Graph 52 - N-Queens II 51 - N-Queens 8 - String to Integer(atoi) Nuts & Bolts Problem 89 - Gray Code 76 - Minimum Window Substring Matrix Zigzag Traversal 56 - Merge Intervals 57 - Insert Interval 268 - Find the Missing Number 36 - Valid Sudoku Heapify 155 - Min Stack 232 - Implement Queue Using Stacks Longest Words 126 - Word Ladder II 127 - Word Ladder Topological Sorting Route Between Two Nodes in Graph Find the Connected Component in the Undirected Graph Longest Increasing Continuous subsequence II 300 - Longest Increasing Subsequence Maximum Subarray III Maximum Subarray II 53 - Maximum Subarray 97 - Interleaving String Distinct Subsequences Best Time to Buy and Sell Stock IV 123 - Best Time to Buy and Sell Stock III 122 - Best Time to Buy and Sell Stock II 121 - Best Time to Buy and Sell Stock Longest Common Subsequence 139 - Word Break 55 - Jump Game 70 - Climbing Stairs 63 - Unique Paths II 62 - Unique Paths 64 - Minimum Path Sum 120 - Triangle 60 - Permutation Sequence 40 - Combination Sum II 39 - Combination Sum 77 - Combinations 95 - Unique Binary Search Trees II 47 - Permutations II 46 - Permutations 90 - Subsets II 78 - Subsets 20 - Valid parentheses Unique Characters 7 - Reverse Integer 131 - Palindrome Partitioning 305 - Number of Islands II 200 - Number of Islands Nth to Last Node in List 111 - Minimum Depth of Binary Tree Cosine Similarity 173 - Binary Search Tree Iterator 109 - Convert Sorted List to Binary Search Tree 108 - Convert Sorted Array to Binary Search Tree 98 - Validate Binary Search Tree 103 - Binary Tree Zigzag Level Order Traversal 106 - Construct Binary Tree from Inorder and Postorder Traversal 105 - Construct Binary Tree from Preorder and Inorder Traversal 543 - Diameter of a Binary Tree 226 - Invert Binary Tree 124 - Binary Tree Maximum Path Sum 110 - Balanced Binary Tree 104 - Maximum Depth of Binary Tree 107 - Binary Tree Level Order Traversal II 102 - Binary Tree Level Order Traversal 145 - Binary Tree Postorder Traversal 94 - Binary Tree Inorder Traversal 144 - Binary Tree Preorder Traversal 138 - Copy List with Random Pointer 148 - Sort List 147 - Insertion Sort List 234 - Palindrome Linked List 143 - Reorder List 23 - Merge k Sorted Lists 21 - Merge Two Sorted Lists 92 - Reverse Linked List II 206 - Reverse Linked List 142 - Linked List Cycle II 141 - Linked List Cycle 19 - Remove Nth Node From End of List Two Lists Sum 86 - Partition List Remove Duplicates from Unsorted List 82 - Remove Duplicates from Sorted List II 83 - Remove Duplicates from Sorted List 66 - Plus One 263 - Ugly Number Majority Number III 229 - Majority Element II 169 - Majority Number Print Numbers by Recursion Fibonacci Hash Function Fast Power 96 - Unique Binary Search Trees 172 - Factorial Trailing Zeroes 231 - Power of Two 260 - Single Number III 137 - Single Number II 136 - Single Number Wood Cut 69 - Sqrt(x) 4 - Median of Two Sorted Arrays 240 - Search a 2D Matrix II 154 - Find Minimum in Rotated Sorted Array II 153 - Find Minimum in Rotated Sorted Array 81 - Search in Rotated Sorted Array II 33 - Search in Rotated Sorted Array 162 - Find Peak Element 278 - First Bad Version 34 - Search for a Range 35 - Search Insert Position Binary Search 215 - Kth Largest Element in an Array Partition Array by Odd and Even Median of unsorted array Merge Sorted Array II 88 - Merge Sorted Array 80 - Remove Duplicates from Sorted Array II 26 - Remove Duplicates from Sorted Array 16 - 3Sum Closest 18 - 4Sum 15 - 3Sum 41 - First Missing Positive 238 - Product of Array Exclude Itself Recover Rotated Sorted Array Subarray Sum K 27 - Remove Element 38 - Count and Say 58 - Length of Last Word Space Replacement 5 - Longest Palindromic Substring 125 - Valid Palindrome 151 - Reverse Words in a String Rotate String Longest Common Substring 49 - Group Anagrams Compare Strings Two Strings Are Anagrams 28 - Implement strStr() Find sum Sort array 237 - Delete Node in the Middle of Singly Linked List 450 - Delete Node in a BST 2 - Add Two Numbers 67 - Add Binary Lintcode 572 - Subtree of Another Tree 378 - Convert Binary Search Tree to Doubly Linked List 207 - Interval Sum II 249 - Count of Smaller Number before itself 206 - Interval Sum 205 - Interval Minimum Number 397 - Longest Increasing Continuous subsequence 44 - Minimum Subarray Backpack II Backpack Singleton 11 - Search Range in Binary Search Tree 1 - A + B Problem 365 - Count 1 in Binary 179 - Update Bits 31 - Partition Array 139 - Subarray Sum Closest 139 - Subarray Sum II 138 - Subarray Sum 181 - Flip Bits Amazon 74 - Search a 2D Matrix Facebook 74 - Search a 2D Matrix OS Top 50 Operating System Interview Questions OA Update Tree Find the difference between two set 360 - Sort Transformed Array Pick a random number from a BST OA - Randomly Choose k Samples Find best container OA - Flattening a Linked List OA - Max multiplication OA - String matching Python Beautiful Soup Cheat Sheet Build crawler using scrapy Python notes Deep Learning Deep Learning Notes Docker Docker cheat sheet Html Add google analytics to your website HTML Tags Binary Search 1231 - Divide Chocolate Greedy 1231 - Divide Chocolate