Skip to content

kasperyhr/leetcode-solutions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

这个是我自己整理的leetcode Java版本的题解(或许以后会有更多版本的解法)

我将题目按照知识点进行分类,只要是属于该知识点,或者和该知识点相关的,我都会放在该知识点下。如果有链接问题,或者解答提交错误,请在issues指出。

  1. Two Pointers (Not Ready)
  2. Binary Search
  3. Hash Table
  4. Heap (Not Ready)
  5. Tree (Not Ready)
  6. Segment Tree (Not Ready)
  7. Design (Not Ready)
  8. Stack
  9. Priority Queue (Not Ready)
  10. DFS (Not Ready)
  11. BFS (Not Ready)
  12. Trie Tree (Not Ready)
  13. Greedy (Not Ready)
  14. Linked List
  15. Dynamic Programming (Not Ready)
  16. Bit Manipulation (Not Ready)
  17. Divide and Conquer (Not Ready)
  18. String
  19. Sort (Not Ready)
  20. Sweep Line (Not Ready)
  21. Union Find (Not Ready)
  22. Recursion (Not Ready)
  23. Graph (Not Ready)
  24. Math (Not Ready)
  25. Array (Not Ready)
  26. Others (Not Ready)

Problem Checklist (9/1318 = 0.68%):

Number Problem Name Difficulty Solution
0001 Two Sum Easy- Solution
0002 Add Two Numbers Easy Solution
0003 Longest Substring Without Repeating Characters TBD Solution
0004 Median of Two Sorted Arrays TBD Solution
0005 Longest Palindromic Substring TBD Solution
0006 ZigZag Conversion TBD Solution
0007 Reverse Integer TBD Solution
0008 String to Integer (atoi) TBD Solution
0009 Palindrome Number TBD Solution
0010 Regular Expression Matching TBD Solution
0011 Container With Most Water TBD Solution
0012 Integer to Roman TBD Solution
0013 Roman to Integer TBD Solution
0014 Longest Common Prefix TBD Solution
0015 3Sum TBD Solution
0016 3Sum Closest TBD Solution
0017 Letter Combinations of a Phone Number TBD Solution
0018 4Sum TBD Solution
0019 Remove Nth Node From End of List TBD Solution
0020 Valid Parentheses Easy- Solution
0021 Merge Two Sorted Lists Easy- Solution
0022 Generate Parentheses TBD Solution
0023 Merge k Sorted Lists TBD Solution
0024 Swap Nodes in Pairs TBD Solution
0025 Reverse Nodes in k-Group TBD Solution
0026 Remove Duplicates from Sorted Array TBD Solution
0027 Remove Element TBD Solution
0028 Implement strStr() TBD Solution
0029 Divide Two Integers TBD Solution
0030 Substring with Concatenation of All Words TBD Solution
0031 Next Permutation TBD Solution
0032 Longest Valid Parentheses TBD Solution
0033 Search in Rotated Sorted Array TBD Solution
0034 Find First and Last Position of Element in Sorted Array TBD Solution
0035 Search Insert Position Easy- Solution
0036 Valid Sudoku TBD Solution
0037 Sudoku Solver TBD Solution
0038 Count and Say TBD Solution
0039 Combination Sum TBD Solution
0040 Combination Sum II TBD Solution
0041 First Missing Positive TBD Solution
0042 Trapping Rain Water TBD Solution
0043 Multiply Strings TBD Solution
0044 Wildcard Matching TBD Solution
0045 Jump Game II TBD Solution
0046 Permutations TBD Solution
0047 Permutations II TBD Solution
0048 Rotate Image TBD Solution
0049 Group Anagrams TBD Solution
0050 Pow(x, n) TBD Solution
0051 N-Queens TBD Solution
0052 N-Queens II TBD Solution
0053 Maximum Subarray TBD Solution
0054 Spiral Matrix TBD Solution
0055 Jump Game TBD Solution
0056 Merge Intervals TBD Solution
0057 Insert Interval TBD Solution
0058 Length of Last Word TBD Solution
0059 Spiral Matrix II TBD Solution
0060 Permutation Sequence TBD Solution
0061 Rotate List TBD Solution
0062 Unique Paths TBD Solution
0063 Unique Paths II TBD Solution
0064 Minimum Path Sum TBD Solution
0065 Valid Number TBD Solution
0066 Plus One TBD Solution
0067 Add Binary TBD Solution
0068 Text Justification TBD Solution
0069 Sqrt(x) Easy- Solution
0070 Climbing Stairs TBD Solution
0071 Simplify Path TBD Solution
0072 Edit Distance TBD Solution
0073 Set Matrix Zeroes TBD Solution
0074 Search a 2D Matrix TBD Solution
0075 Sort Colors TBD Solution
0076 Minimum Window Substring TBD Solution
0077 Combinations TBD Solution
0078 Subsets TBD Solution
0079 Word Search TBD Solution
0080 Remove Duplicates from Sorted Array II TBD Solution
0081 Search in Rotated Sorted Array II TBD Solution
0082 Remove Duplicates from Sorted List II TBD Solution
0083 Remove Duplicates from Sorted List TBD Solution
0084 Largest Rectangle in Histogram TBD Solution
0085 Maximal Rectangle TBD Solution
0086 Partition List TBD Solution
0087 Scramble String TBD Solution
0088 Merge Sorted Array TBD Solution
0089 Gray Code TBD Solution
0090 Subsets II TBD Solution
0091 Decode Ways TBD Solution
0092 Reverse Linked List II TBD Solution
0093 Restore IP Addresses TBD Solution
0094 Binary Tree Inorder Traversal TBD Solution
0095 Unique Binary Search Trees II TBD Solution
0096 Unique Binary Search Trees TBD Solution
0097 Interleaving String TBD Solution
0098 Validate Binary Search Tree TBD Solution
0099 Recover Binary Search Tree TBD Solution
0100 Same Tree TBD Solution
0101 Symmetric Tree TBD Solution
0102 Binary Tree Level Order Traversal TBD Solution
0103 Binary Tree Zigzag Level Order Traversal TBD Solution
0104 Maximum Depth of Binary Tree TBD Solution
0105 Construct Binary Tree from Preorder and Inorder Traversal TBD Solution
0106 Construct Binary Tree from Inorder and Postorder Traversal TBD Solution
0107 Binary Tree Level Order Traversal II TBD Solution
0108 Convert Sorted Array to Binary Search Tree TBD Solution
0109 Convert Sorted List to Binary Search Tree TBD Solution
0110 Balanced Binary Tree TBD Solution
0111 Minimum Depth of Binary Tree TBD Solution
0112 Path Sum TBD Solution
0113 Path Sum II TBD Solution
0114 Flatten Binary Tree to Linked List TBD Solution
0115 Distinct Subsequences TBD Solution
0116 Populating Next Right Pointers in Each Node TBD Solution
0117 Populating Next Right Pointers in Each Node II TBD Solution
0118 Pascal's Triangle TBD Solution
0119 Pascal's Triangle II TBD Solution
0120 Triangle TBD Solution
0121 Best Time to Buy and Sell Stock TBD Solution
0122 Best Time to Buy and Sell Stock II TBD Solution
0123 Best Time to Buy and Sell Stock III TBD Solution
0124 Binary Tree Maximum Path Sum TBD Solution
0125 Valid Palindrome TBD Solution
0126 Word Ladder II TBD Solution
0127 Word Ladder TBD Solution
0128 Longest Consecutive Sequence TBD Solution
0129 Sum Root to Leaf Numbers TBD Solution
0130 Surrounded Regions TBD Solution
0131 Palindrome Partitioning TBD Solution
0132 Palindrome Partitioning II TBD Solution
0133 Clone Graph TBD Solution
0134 Gas Station TBD Solution
0135 Candy TBD Solution
0136 Single Number Easy Solution
0137 Single Number II TBD Solution
0138 Copy List with Random Pointer TBD Solution
0139 Word Break TBD Solution
0140 Word Break II TBD Solution
0141 Linked List Cycle TBD Solution
0142 Linked List Cycle II TBD Solution
0143 Reorder List TBD Solution
0144 Binary Tree Preorder Traversal TBD Solution
0145 Binary Tree Postorder Traversal TBD Solution
0146 LRU Cache TBD Solution
0147 Insertion Sort List TBD Solution
0148 Sort List TBD Solution
0149 Max Points on a Line TBD Solution
0150 Evaluate Reverse Polish Notation TBD Solution
0151 Reverse Words in a String TBD Solution
0152 Maximum Product Subarray TBD Solution
0153 Find Minimum in Rotated Sorted Array TBD Solution
0154 Find Minimum in Rotated Sorted Array II TBD Solution
0155 Min Stack TBD Solution
0156 Binary Tree Upside Down TBD Solution
0157 Read N Characters Given Read4 TBD Solution
0158 Read N Characters Given Read4 II - Call multiple times TBD Solution
0159 Longest Substring with At Most Two Distinct Characters TBD Solution
0160 Intersection of Two Linked Lists TBD Solution
0161 One Edit Distance TBD Solution
0162 Find Peak Element TBD Solution
0163 Missing Ranges TBD Solution
0164 Maximum Gap TBD Solution
0165 Compare Version Numbers TBD Solution
0166 Fraction to Recurring Decimal TBD Solution
0167 Two Sum II - Input array is sorted TBD Solution
0168 Excel Sheet Column Title TBD Solution
0169 Majority Element TBD Solution
0170 Two Sum III - Data structure design TBD Solution
0171 Excel Sheet Column Number TBD Solution
0172 Factorial Trailing Zeroes TBD Solution
0173 Binary Search Tree Iterator TBD Solution
0174 Dungeon Game TBD Solution
0179 Largest Number TBD Solution
0186 Reverse Words in a String II TBD Solution
0187 Repeated DNA Sequences TBD Solution
0188 Best Time to Buy and Sell Stock IV TBD Solution
0189 Rotate Array TBD Solution
0190 Reverse Bits TBD Solution
0191 Number of 1 Bits TBD Solution
0198 House Robber TBD Solution
0199 Binary Tree Right Side View TBD Solution
0200 Number of Islands TBD Solution
0201 Bitwise AND of Numbers Range TBD Solution
0202 Happy Number TBD Solution
0203 Remove Linked List Elements TBD Solution
0204 Count Primes TBD Solution
0205 Isomorphic Strings TBD Solution
0206 Reverse Linked List TBD Solution
0207 Course Schedule TBD Solution
0208 Implement Trie (Prefix Tree) TBD Solution
0209 Minimum Size Subarray Sum TBD Solution
0210 Course Schedule II TBD Solution
0211 Add and Search Word - Data structure design TBD Solution
0212 Word Search II TBD Solution
0213 House Robber II TBD Solution
0214 Shortest Palindrome TBD Solution
0215 Kth Largest Element in an Array TBD Solution
0216 Combination Sum III TBD Solution
0217 Contains Duplicate TBD Solution
0218 The Skyline Problem TBD Solution
0219 Contains Duplicate II TBD Solution
0220 Contains Duplicate III TBD Solution
0221 Maximal Square TBD Solution
0222 Count Complete Tree Nodes TBD Solution
0223 Rectangle Area TBD Solution
0224 Basic Calculator TBD Solution
0225 Implement Stack using Queues TBD Solution
0226 Invert Binary Tree TBD Solution
0227 Basic Calculator II TBD Solution
0228 Summary Ranges TBD Solution
0229 Majority Element II TBD Solution
0230 Kth Smallest Element in a BST TBD Solution
0231 Power of Two TBD Solution
0232 Implement Queue using Stacks TBD Solution
0233 Number of Digit One TBD Solution
0234 Palindrome Linked List TBD Solution
0235 Lowest Common Ancestor of a Binary Search Tree TBD Solution
0236 Lowest Common Ancestor of a Binary Tree TBD Solution
0237 Delete Node in a Linked List TBD Solution
0238 Product of Array Except Self TBD Solution
0239 Sliding Window Maximum TBD Solution
0240 Search a 2D Matrix II TBD Solution
0241 Different Ways to Add Parentheses TBD Solution
0242 Valid Anagram TBD Solution
0243 Shortest Word Distance TBD Solution
0244 Shortest Word Distance II TBD Solution
0245 Shortest Word Distance III TBD Solution
0246 Strobogrammatic Number TBD Solution
0247 Strobogrammatic Number II TBD Solution
0248 Strobogrammatic Number III TBD Solution
0249 Group Shifted Strings TBD Solution
0250 Count Univalue Subtrees TBD Solution
0251 Flatten 2D Vector TBD Solution
0252 Meeting Rooms TBD Solution
0253 Meeting Rooms II TBD Solution
0254 Factor Combinations TBD Solution
0255 Verify Preorder Sequence in Binary Search Tree TBD Solution
0256 Paint House TBD Solution
0257 Binary Tree Paths TBD Solution
0258 Add Digits TBD Solution
0259 3Sum Smaller TBD Solution
0260 Single Number III TBD Solution
0261 Graph Valid Tree TBD Solution
0263 Ugly Number TBD Solution
0264 Ugly Number II TBD Solution
0265 Paint House II TBD Solution
0266 Palindrome Permutation TBD Solution
0267 Palindrome Permutation II TBD Solution
0268 Missing Number TBD Solution
0269 Alien Dictionary TBD Solution
0270 Closest Binary Search Tree Value TBD Solution
0271 Encode and Decode Strings Easy Solution
0272 Closest Binary Search Tree Value II TBD Solution
0273 Integer to English Words TBD Solution
0274 H-Index TBD Solution
0275 H-Index II TBD Solution
0276 Paint Fence TBD Solution
0277 Find the Celebrity TBD Solution
0278 First Bad Version TBD Solution
0279 Perfect Squares TBD Solution
0280 Wiggle Sort TBD Solution
0281 Zigzag Iterator TBD Solution
0282 Expression Add Operators TBD Solution
0283 Move Zeroes TBD Solution
0284 Peeking Iterator TBD Solution
0285 Inorder Successor in BST TBD Solution
0286 Walls and Gates TBD Solution
0287 Find the Duplicate Number TBD Solution
0288 Unique Word Abbreviation TBD Solution
0289 Game of Life TBD Solution
0290 Word Pattern TBD Solution
0291 Word Pattern II TBD Solution
0292 Nim Game TBD Solution
0293 Flip Game TBD Solution
0294 Flip Game II TBD Solution
0295 Find Median from Data Stream TBD Solution
0296 Best Meeting Point TBD Solution
0297 Serialize and Deserialize Binary Tree TBD Solution
0298 Binary Tree Longest Consecutive Sequence TBD Solution
0299 Bulls and Cows TBD Solution
0300 Longest Increasing Subsequence TBD Solution
0301 Remove Invalid Parentheses TBD Solution
0302 Smallest Rectangle Enclosing Black Pixels TBD Solution
0303 Range Sum Query - Immutable TBD Solution
0304 Range Sum Query 2D - Immutable TBD Solution
0305 Number of Islands II TBD Solution
0306 Additive Number TBD Solution
0307 Range Sum Query - Mutable TBD Solution
0308 Range Sum Query 2D - Mutable TBD Solution
0309 Best Time to Buy and Sell Stock with Cooldown TBD Solution
0310 Minimum Height Trees TBD Solution
0311 Sparse Matrix Multiplication TBD Solution
0312 Burst Balloons TBD Solution
0313 Super Ugly Number TBD Solution
0314 Binary Tree Vertical Order Traversal TBD Solution
0315 Count of Smaller Numbers After Self TBD Solution
0316 Remove Duplicate Letters TBD Solution
0317 Shortest Distance from All Buildings TBD Solution
0318 Maximum Product of Word Lengths TBD Solution
0319 Bulb Switcher TBD Solution
0320 Generalized Abbreviation TBD Solution
0321 Create Maximum Number TBD Solution
0322 Coin Change TBD Solution
0323 Number of Connected Components in an Undirected Graph TBD Solution
0324 Wiggle Sort II TBD Solution
0325 Maximum Size Subarray Sum Equals k TBD Solution
0326 Power of Three TBD Solution
0327 Count of Range Sum TBD Solution
0328 Odd Even Linked List TBD Solution
0329 Longest Increasing Path in a Matrix TBD Solution
0330 Patching Array TBD Solution
0331 Verify Preorder Serialization of a Binary Tree TBD Solution
0332 Reconstruct Itinerary TBD Solution
0333 Largest BST Subtree TBD Solution
0334 Increasing Triplet Subsequence TBD Solution
0335 Self Crossing TBD Solution
0336 Palindrome Pairs TBD Solution
0337 House Robber III TBD Solution
0338 Counting Bits TBD Solution
0339 Nested List Weight Sum TBD Solution
0340 Longest Substring with At Most K Distinct Characters TBD Solution
0341 Flatten Nested List Iterator TBD Solution
0342 Power of Four TBD Solution
0343 Integer Break TBD Solution
0344 Reverse String TBD Solution
0345 Reverse Vowels of a String TBD Solution
0346 Moving Average from Data Stream TBD Solution
0347 Top K Frequent Elements TBD Solution
0348 Design Tic-Tac-Toe TBD Solution
0349 Intersection of Two Arrays TBD Solution
0350 Intersection of Two Arrays II TBD Solution
0351 Android Unlock Patterns TBD Solution
0352 Data Stream as Disjoint Intervals TBD Solution
0353 Design Snake Game TBD Solution
0354 Russian Doll Envelopes TBD Solution
0355 Design Twitter TBD Solution
0356 Line Reflection TBD Solution
0357 Count Numbers with Unique Digits TBD Solution
0358 Rearrange String k Distance Apart TBD Solution
0359 Logger Rate Limiter TBD Solution
0360 Sort Transformed Array TBD Solution
0361 Bomb Enemy TBD Solution
0362 Design Hit Counter TBD Solution
0363 Max Sum of Rectangle No Larger Than K TBD Solution
0364 Nested List Weight Sum II TBD Solution
0365 Water and Jug Problem TBD Solution
0366 Find Leaves of Binary Tree TBD Solution
0367 Valid Perfect Square TBD Solution
0368 Largest Divisible Subset TBD Solution
0369 Plus One Linked List TBD Solution
0370 Range Addition TBD Solution
0371 Sum of Two Integers TBD Solution
0372 Super Pow TBD Solution
0373 Find K Pairs with Smallest Sums TBD Solution
0374 Guess Number Higher or Lower TBD Solution
0375 Guess Number Higher or Lower II TBD Solution
0376 Wiggle Subsequence TBD Solution
0377 Combination Sum IV TBD Solution
0378 Kth Smallest Element in a Sorted Matrix TBD Solution
0379 Design Phone Directory TBD Solution
0380 Insert Delete GetRandom O(1) TBD Solution
0381 Insert Delete GetRandom O(1) - Duplicates allowed TBD Solution
0382 Linked List Random Node TBD Solution
0383 Ransom Note TBD Solution
0384 Shuffle an Array TBD Solution
0385 Mini Parser TBD Solution
0386 Lexicographical Numbers TBD Solution
0387 First Unique Character in a String TBD Solution
0388 Longest Absolute File Path TBD Solution
0389 Find the Difference TBD Solution
0390 Elimination Game TBD Solution
0391 Perfect Rectangle TBD Solution
0392 Is Subsequence TBD Solution
0393 UTF-8 Validation TBD Solution
0394 Decode String TBD Solution
0395 Longest Substring with At Least K Repeating Characters TBD Solution
0396 Rotate Function TBD Solution
0397 Integer Replacement TBD Solution
0398 Random Pick Index TBD Solution
0399 Evaluate Division TBD Solution
0400 Nth Digit TBD Solution
0401 Binary Watch TBD Solution
0402 Remove K Digits TBD Solution
0403 Frog Jump TBD Solution
0404 Sum of Left Leaves TBD Solution
0405 Convert a Number to Hexadecimal TBD Solution
0406 Queue Reconstruction by Height TBD Solution
0407 Trapping Rain Water II TBD Solution
0408 Valid Word Abbreviation TBD Solution
0409 Longest Palindrome TBD Solution
0410 Split Array Largest Sum TBD Solution
0411 Minimum Unique Word Abbreviation TBD Solution
0412 Fizz Buzz Easy- Solution
0413 Arithmetic Slices TBD Solution
0414 Third Maximum Number TBD Solution
0415 Add Strings TBD Solution
0416 Partition Equal Subset Sum TBD Solution
0417 Pacific Atlantic Water Flow TBD Solution
0418 Sentence Screen Fitting TBD Solution
0419 Battleships in a Board TBD Solution
0420 Strong Password Checker TBD Solution
0421 Maximum XOR of Two Numbers in an Array TBD Solution
0422 Valid Word Square TBD Solution
0423 Reconstruct Original Digits from English TBD Solution
0424 Longest Repeating Character Replacement TBD Solution
0425 Word Squares TBD Solution
0426 Convert Binary Search Tree to Sorted Doubly Linked List TBD Solution
0427 Construct Quad Tree TBD Solution
0428 Serialize and Deserialize N-ary Tree TBD Solution
0429 N-ary Tree Level Order Traversal TBD Solution
0430 Flatten a Multilevel Doubly Linked List TBD Solution
0431 Encode N-ary Tree to Binary Tree TBD Solution
0432 All O-one Data Structure TBD Solution
0433 Minimum Genetic Mutation TBD Solution
0434 Number of Segments in a String TBD Solution
0435 Non-overlapping Intervals TBD Solution
0436 Find Right Interval TBD Solution
0437 Path Sum III TBD Solution
0438 Find All Anagrams in a String TBD Solution
0439 Ternary Expression Parser TBD Solution
0440 K-th Smallest in Lexicographical Order TBD Solution
0441 Arranging Coins TBD Solution
0442 Find All Duplicates in an Array TBD Solution
0443 String Compression TBD Solution
0444 Sequence Reconstruction TBD Solution
0445 Add Two Numbers II TBD Solution
0446 Arithmetic Slices II - Subsequence TBD Solution
0447 Number of Boomerangs TBD Solution
0448 Find All Numbers Disappeared in an Array TBD Solution
0449 Serialize and Deserialize BST TBD Solution
0450 Delete Node in a BST TBD Solution
0451 Sort Characters By Frequency TBD Solution
0452 Minimum Number of Arrows to Burst Balloons TBD Solution
0453 Minimum Moves to Equal Array Elements TBD Solution
0454 4Sum II TBD Solution
0455 Assign Cookies TBD Solution
0456 132 Pattern TBD Solution
0457 Circular Array Loop TBD Solution
0458 Poor Pigs TBD Solution
0459 Repeated Substring Pattern TBD Solution
0460 LFU Cache TBD Solution
0461 Hamming Distance TBD Solution
0462 Minimum Moves to Equal Array Elements II TBD Solution
0463 Island Perimeter TBD Solution
0464 Can I Win TBD Solution
0465 Optimal Account Balancing TBD Solution
0466 Count The Repetitions TBD Solution
0467 Unique Substrings in Wraparound String TBD Solution
0468 Validate IP Address TBD Solution
0469 Convex Polygon TBD Solution
0470 Implement Rand10() Using Rand7() TBD Solution
0471 Encode String with Shortest Length TBD Solution
0472 Concatenated Words TBD Solution
0473 Matchsticks to Square TBD Solution
0474 Ones and Zeroes TBD Solution
0475 Heaters TBD Solution
0476 Number Complement TBD Solution
0477 Total Hamming Distance TBD Solution
0478 Generate Random Point in a Circle TBD Solution
0479 Largest Palindrome Product TBD Solution
0480 Sliding Window Median TBD Solution
0481 Magical String TBD Solution
0482 License Key Formatting TBD Solution
0483 Smallest Good Base TBD Solution
0484 Find Permutation TBD Solution
0485 Max Consecutive Ones TBD Solution
0486 Predict the Winner TBD Solution
0487 Max Consecutive Ones II TBD Solution
0488 Zuma Game TBD Solution
0489 Robot Room Cleaner TBD Solution
0490 The Maze TBD Solution
0491 Increasing Subsequences TBD Solution
0492 Construct the Rectangle TBD Solution
0493 Reverse Pairs TBD Solution
0494 Target Sum TBD Solution
0495 Teemo Attacking TBD Solution
0496 Next Greater Element I TBD Solution
0497 Random Point in Non-overlapping Rectangles TBD Solution
0498 Diagonal Traverse TBD Solution
0499 The Maze III TBD Solution
0500 Keyboard Row TBD Solution
0501 Find Mode in Binary Search Tree TBD Solution
0502 IPO TBD Solution
0503 Next Greater Element II TBD Solution
0504 Base 7 TBD Solution
0505 The Maze II TBD Solution
0506 Relative Ranks TBD Solution
0507 Perfect Number TBD Solution
0508 Most Frequent Subtree Sum TBD Solution
0509 Fibonacci Number TBD Solution
0510 Inorder Successor in BST II TBD Solution
0513 Find Bottom Left Tree Value TBD Solution
0514 Freedom Trail TBD Solution
0515 Find Largest Value in Each Tree Row TBD Solution
0516 Longest Palindromic Subsequence TBD Solution
0517 Super Washing Machines TBD Solution
0518 Coin Change 2 TBD Solution
0519 Random Flip Matrix TBD Solution
0520 Detect Capital TBD Solution
0521 Longest Uncommon Subsequence I TBD Solution
0522 Longest Uncommon Subsequence II TBD Solution
0523 Continuous Subarray Sum TBD Solution
0524 Longest Word in Dictionary through Deleting TBD Solution
0525 Contiguous Array TBD Solution
0526 Beautiful Arrangement TBD Solution
0527 Word Abbreviation TBD Solution
0528 Random Pick with Weight TBD Solution
0529 Minesweeper TBD Solution
0530 Minimum Absolute Difference in BST TBD Solution
0531 Lonely Pixel I TBD Solution
0532 K-diff Pairs in an Array TBD Solution
0533 Lonely Pixel II TBD Solution
0535 Encode and Decode TinyURL TBD Solution
0536 Construct Binary Tree from String TBD Solution
0537 Complex Number Multiplication TBD Solution
0538 Convert BST to Greater Tree TBD Solution
0539 Minimum Time Difference TBD Solution
0540 Single Element in a Sorted Array TBD Solution
0541 Reverse String II TBD Solution
0542 01 Matrix TBD Solution
0543 Diameter of Binary Tree TBD Solution
0544 Output Contest Matches TBD Solution
0545 Boundary of Binary Tree TBD Solution
0546 Remove Boxes TBD Solution
0547 Friend Circles TBD Solution
0548 Split Array with Equal Sum TBD Solution
0549 Binary Tree Longest Consecutive Sequence II TBD Solution
0551 Student Attendance Record I TBD Solution
0552 Student Attendance Record II TBD Solution
0553 Optimal Division TBD Solution
0554 Brick Wall TBD Solution
0555 Split Concatenated Strings TBD Solution
0556 Next Greater Element III TBD Solution
0557 Reverse Words in a String III TBD Solution
0558 Logical OR of Two Binary Grids Represented as Quad-Trees TBD Solution
0559 Maximum Depth of N-ary Tree TBD Solution
0560 Subarray Sum Equals K TBD Solution
0561 Array Partition I TBD Solution
0562 Longest Line of Consecutive One in Matrix TBD Solution
0563 Binary Tree Tilt TBD Solution
0564 Find the Closest Palindrome TBD Solution
0565 Array Nesting TBD Solution
0566 Reshape the Matrix TBD Solution
0567 Permutation in String TBD Solution
0568 Maximum Vacation Days TBD Solution
0572 Subtree of Another Tree TBD Solution
0573 Squirrel Simulation TBD Solution
0575 Distribute Candies TBD Solution
0576 Out of Boundary Paths TBD Solution
0581 Shortest Unsorted Continuous Subarray TBD Solution
0582 Kill Process TBD Solution
0583 Delete Operation for Two Strings TBD Solution
0587 Erect the Fence TBD Solution
0588 Design In-Memory File System TBD Solution
0589 N-ary Tree Preorder Traversal TBD Solution
0590 N-ary Tree Postorder Traversal TBD Solution
0591 Tag Validator TBD Solution
0592 Fraction Addition and Subtraction TBD Solution
0593 Valid Square TBD Solution
0594 Longest Harmonious Subsequence TBD Solution
0598 Range Addition II TBD Solution
0599 Minimum Index Sum of Two Lists TBD Solution
0600 Non-negative Integers without Consecutive Ones TBD Solution
0604 Design Compressed String Iterator TBD Solution
0605 Can Place Flowers TBD Solution
0606 Construct String from Binary Tree TBD Solution
0609 Find Duplicate File in System TBD Solution
0611 Valid Triangle Number TBD Solution
0616 Add Bold Tag in String TBD Solution
0617 Merge Two Binary Trees TBD Solution
0621 Task Scheduler TBD Solution
0622 Design Circular Queue TBD Solution
0623 Add One Row to Tree TBD Solution
0624 Maximum Distance in Arrays TBD Solution
0625 Minimum Factorization TBD Solution
0628 Maximum Product of Three Numbers TBD Solution
0629 K Inverse Pairs Array TBD Solution
0630 Course Schedule III TBD Solution
0631 Design Excel Sum Formula TBD Solution
0632 Smallest Range Covering Elements from K Lists TBD Solution
0633 Sum of Square Numbers TBD Solution
0634 Find the Derangement of An Array TBD Solution
0635 Design Log Storage System TBD Solution
0636 Exclusive Time of Functions TBD Solution
0637 Average of Levels in Binary Tree TBD Solution
0638 Shopping Offers TBD Solution
0639 Decode Ways II TBD Solution
0640 Solve the Equation TBD Solution
0641 Design Circular Deque TBD Solution
0642 Design Search Autocomplete System TBD Solution
0643 Maximum Average Subarray I TBD Solution
0644 Maximum Average Subarray II TBD Solution
0645 Set Mismatch TBD Solution
0646 Maximum Length of Pair Chain TBD Solution
0647 Palindromic Substrings TBD Solution
0648 Replace Words TBD Solution
0649 Dota2 Senate TBD Solution
0650 2 Keys Keyboard TBD Solution
0651 4 Keys Keyboard TBD Solution
0652 Find Duplicate Subtrees TBD Solution
0653 Two Sum IV - Input is a BST TBD Solution
0654 Maximum Binary Tree TBD Solution
0655 Print Binary Tree TBD Solution
0656 Coin Path TBD Solution
0657 Robot Return to Origin TBD Solution
0658 Find K Closest Elements TBD Solution
0659 Split Array into Consecutive Subsequences TBD Solution
0660 Remove 9 TBD Solution
0661 Image Smoother TBD Solution
0662 Maximum Width of Binary Tree TBD Solution
0663 Equal Tree Partition TBD Solution
0664 Strange Printer TBD Solution
0665 Non-decreasing Array TBD Solution
0666 Path Sum IV TBD Solution
0667 Beautiful Arrangement II TBD Solution
0668 Kth Smallest Number in Multiplication Table TBD Solution
0669 Trim a Binary Search Tree TBD Solution
0670 Maximum Swap TBD Solution
0671 Second Minimum Node In a Binary Tree TBD Solution
0672 Bulb Switcher II TBD Solution
0673 Number of Longest Increasing Subsequence TBD Solution
0674 Longest Continuous Increasing Subsequence TBD Solution
0675 Cut Off Trees for Golf Event TBD Solution
0676 Implement Magic Dictionary TBD Solution
0677 Map Sum Pairs TBD Solution
0678 Valid Parenthesis String TBD Solution
0679 24 Game TBD Solution
0680 Valid Palindrome II TBD Solution
0681 Next Closest Time TBD Solution
0682 Baseball Game TBD Solution
0683 K Empty Slots TBD Solution
0684 Redundant Connection TBD Solution
0685 Redundant Connection II TBD Solution
0686 Repeated String Match TBD Solution
0687 Longest Univalue Path TBD Solution
0688 Knight Probability in Chessboard TBD Solution
0689 Maximum Sum of 3 Non-Overlapping Subarrays TBD Solution
0690 Employee Importance TBD Solution
0691 Stickers to Spell Word TBD Solution
0692 Top K Frequent Words TBD Solution
0693 Binary Number with Alternating Bits TBD Solution
0694 Number of Distinct Islands TBD Solution
0695 Max Area of Island TBD Solution
0696 Count Binary Substrings TBD Solution
0697 Degree of an Array TBD Solution
0698 Partition to K Equal Sum Subsets TBD Solution
0699 Falling Squares TBD Solution
0700 Search in a Binary Search Tree TBD Solution
0701 Insert into a Binary Search Tree TBD Solution
0702 Search in a Sorted Array of Unknown Size TBD Solution
0703 Kth Largest Element in a Stream TBD Solution
0704 Binary Search Easy- Solution
0705 Design HashSet TBD Solution
0706 Design HashMap TBD Solution
0707 Design Linked List TBD Solution
0708 Insert into a Sorted Circular Linked List TBD Solution
0709 To Lower Case TBD Solution
0710 Random Pick with Blacklist TBD Solution
0711 Number of Distinct Islands II TBD Solution
0712 Minimum ASCII Delete Sum for Two Strings TBD Solution
0713 Subarray Product Less Than K TBD Solution
0714 Best Time to Buy and Sell Stock with Transaction Fee TBD Solution
0715 Range Module TBD Solution
0716 Max Stack TBD Solution
0717 1-bit and 2-bit Characters TBD Solution
0718 Maximum Length of Repeated Subarray TBD Solution
0719 Find K-th Smallest Pair Distance TBD Solution
0720 Longest Word in Dictionary TBD Solution
0721 Accounts Merge TBD Solution
0722 Remove Comments TBD Solution
0723 Candy Crush TBD Solution
0724 Find Pivot Index TBD Solution
0725 Split Linked List in Parts TBD Solution
0726 Number of Atoms TBD Solution
0727 Minimum Window Subsequence TBD Solution
0728 Self Dividing Numbers TBD Solution
0729 My Calendar I TBD Solution
0730 Count Different Palindromic Subsequences TBD Solution
0731 My Calendar II TBD Solution
0732 My Calendar III TBD Solution
0733 Flood Fill TBD Solution
0734 Sentence Similarity TBD Solution
0735 Asteroid Collision TBD Solution
0736 Parse Lisp Expression TBD Solution
0737 Sentence Similarity II TBD Solution
0738 Monotone Increasing Digits TBD Solution
0739 Daily Temperatures TBD Solution
0740 Delete and Earn TBD Solution
0741 Cherry Pickup TBD Solution
0742 Closest Leaf in a Binary Tree TBD Solution
0743 Network Delay Time TBD Solution
0744 Find Smallest Letter Greater Than Target TBD Solution
0745 Prefix and Suffix Search TBD Solution
0746 Min Cost Climbing Stairs TBD Solution
0747 Largest Number At Least Twice of Others TBD Solution
0748 Shortest Completing Word TBD Solution
0749 Contain Virus TBD Solution
0750 Number Of Corner Rectangles TBD Solution
0751 IP to CIDR TBD Solution
0752 Open the Lock TBD Solution
0753 Cracking the Safe TBD Solution
0754 Reach a Number TBD Solution
0755 Pour Water TBD Solution
0756 Pyramid Transition Matrix TBD Solution
0757 Set Intersection Size At Least Two TBD Solution
0758 Bold Words in String TBD Solution
0759 Employee Free Time TBD Solution
0760 Find Anagram Mappings TBD Solution
0761 Special Binary String TBD Solution
0762 Prime Number of Set Bits in Binary Representation TBD Solution
0763 Partition Labels TBD Solution
0764 Largest Plus Sign TBD Solution
0765 Couples Holding Hands TBD Solution
0766 Toeplitz Matrix TBD Solution
0767 Reorganize String TBD Solution
0768 Max Chunks To Make Sorted II TBD Solution
0769 Max Chunks To Make Sorted TBD Solution
0770 Basic Calculator IV TBD Solution
0771 Jewels and Stones TBD Solution
0772 Basic Calculator III TBD Solution
0773 Sliding Puzzle TBD Solution
0774 Minimize Max Distance to Gas Station TBD Solution
0775 Global and Local Inversions TBD Solution
0776 Split BST TBD Solution
0777 Swap Adjacent in LR String TBD Solution
0778 Swim in Rising Water TBD Solution
0779 K-th Symbol in Grammar TBD Solution
0780 Reaching Points TBD Solution
0781 Rabbits in Forest TBD Solution
0782 Transform to Chessboard TBD Solution
0783 Minimum Distance Between BST Nodes TBD Solution
0784 Letter Case Permutation TBD Solution
0785 Is Graph Bipartite? TBD Solution
0786 K-th Smallest Prime Fraction TBD Solution
0787 Cheapest Flights Within K Stops TBD Solution
0788 Rotated Digits TBD Solution
0789 Escape The Ghosts TBD Solution
0790 Domino and Tromino Tiling TBD Solution
0791 Custom Sort String TBD Solution
0792 Number of Matching Subsequences TBD Solution
0793 Preimage Size of Factorial Zeroes Function TBD Solution
0794 Valid Tic-Tac-Toe State TBD Solution
0795 Number of Subarrays with Bounded Maximum TBD Solution
0796 Rotate String TBD Solution
0797 All Paths From Source to Target TBD Solution
0798 Smallest Rotation with Highest Score TBD Solution
0799 Champagne Tower TBD Solution
0800 Similar RGB Color TBD Solution
0801 Minimum Swaps To Make Sequences Increasing TBD Solution
0802 Find Eventual Safe States TBD Solution
0803 Bricks Falling When Hit TBD Solution
0804 Unique Morse Code Words TBD Solution
0805 Split Array With Same Average TBD Solution
0806 Number of Lines To Write String TBD Solution
0807 Max Increase to Keep City Skyline TBD Solution
0808 Soup Servings TBD Solution
0809 Expressive Words TBD Solution
0810 Chalkboard XOR Game TBD Solution
0811 Subdomain Visit Count TBD Solution
0812 Largest Triangle Area TBD Solution
0813 Largest Sum of Averages TBD Solution
0814 Binary Tree Pruning TBD Solution
0815 Bus Routes TBD Solution
0816 Ambiguous Coordinates TBD Solution
0817 Linked List Components TBD Solution
0818 Race Car TBD Solution
0819 Most Common Word TBD Solution
0820 Short Encoding of Words TBD Solution
0821 Shortest Distance to a Character TBD Solution
0822 Card Flipping Game TBD Solution
0823 Binary Trees With Factors TBD Solution
0824 Goat Latin TBD Solution
0825 Friends Of Appropriate Ages TBD Solution
0826 Most Profit Assigning Work TBD Solution
0827 Making A Large Island TBD Solution
0828 Count Unique Characters of All Substrings of a Given String TBD Solution
0829 Consecutive Numbers Sum TBD Solution
0830 Positions of Large Groups TBD Solution
0831 Masking Personal Information TBD Solution
0832 Flipping an Image TBD Solution
0833 Find And Replace in String TBD Solution
0834 Sum of Distances in Tree TBD Solution
0835 Image Overlap TBD Solution
0836 Rectangle Overlap TBD Solution
0837 New 21 Game TBD Solution
0838 Push Dominoes TBD Solution
0839 Similar String Groups TBD Solution
0840 Magic Squares In Grid TBD Solution
0841 Keys and Rooms TBD Solution
0842 Split Array into Fibonacci Sequence TBD Solution
0843 Guess the Word TBD Solution
0844 Backspace String Compare TBD Solution
0845 Longest Mountain in Array TBD Solution
0846 Hand of Straights TBD Solution
0847 Shortest Path Visiting All Nodes TBD Solution
0848 Shifting Letters TBD Solution
0849 Maximize Distance to Closest Person TBD Solution
0850 Rectangle Area II TBD Solution
0851 Loud and Rich TBD Solution
0852 Peak Index in a Mountain Array TBD Solution
0853 Car Fleet TBD Solution
0854 K-Similar Strings TBD Solution
0855 Exam Room TBD Solution
0856 Score of Parentheses TBD Solution
0857 Minimum Cost to Hire K Workers TBD Solution
0858 Mirror Reflection TBD Solution
0859 Buddy Strings TBD Solution
0860 Lemonade Change TBD Solution
0861 Score After Flipping Matrix TBD Solution
0862 Shortest Subarray with Sum at Least K TBD Solution
0863 All Nodes Distance K in Binary Tree TBD Solution
0864 Shortest Path to Get All Keys TBD Solution
0865 Smallest Subtree with all the Deepest Nodes TBD Solution
0866 Prime Palindrome TBD Solution
0867 Transpose Matrix TBD Solution
0868 Binary Gap TBD Solution
0869 Reordered Power of 2 TBD Solution
0870 Advantage Shuffle TBD Solution
0871 Minimum Number of Refueling Stops TBD Solution
0872 Leaf-Similar Trees TBD Solution
0873 Length of Longest Fibonacci Subsequence TBD Solution
0874 Walking Robot Simulation TBD Solution
0875 Koko Eating Bananas TBD Solution
0876 Middle of the Linked List TBD Solution
0877 Stone Game TBD Solution
0878 Nth Magical Number TBD Solution
0879 Profitable Schemes TBD Solution
0880 Decoded String at Index TBD Solution
0881 Boats to Save People TBD Solution
0882 Reachable Nodes In Subdivided Graph TBD Solution
0883 Projection Area of 3D Shapes TBD Solution
0884 Uncommon Words from Two Sentences TBD Solution
0885 Spiral Matrix III TBD Solution
0886 Possible Bipartition TBD Solution
0887 Super Egg Drop TBD Solution
0888 Fair Candy Swap TBD Solution
0889 Construct Binary Tree from Preorder and Postorder Traversal TBD Solution
0890 Find and Replace Pattern TBD Solution
0891 Sum of Subsequence Widths TBD Solution
0892 Surface Area of 3D Shapes TBD Solution
0893 Groups of Special-Equivalent Strings TBD Solution
0894 All Possible Full Binary Trees TBD Solution
0895 Maximum Frequency Stack TBD Solution
0896 Monotonic Array TBD Solution
0897 Increasing Order Search Tree TBD Solution
0898 Bitwise ORs of Subarrays TBD Solution
0899 Orderly Queue TBD Solution
0900 RLE Iterator TBD Solution
0901 Online Stock Span TBD Solution
0902 Numbers At Most N Given Digit Set TBD Solution
0903 Valid Permutations for DI Sequence TBD Solution
0904 Fruit Into Baskets TBD Solution
0905 Sort Array By Parity TBD Solution
0906 Super Palindromes TBD Solution
0907 Sum of Subarray Minimums TBD Solution
0908 Smallest Range I TBD Solution
0909 Snakes and Ladders TBD Solution
0910 Smallest Range II TBD Solution
0911 Online Election TBD Solution
0912 Sort an Array TBD Solution
0913 Cat and Mouse TBD Solution
0914 X of a Kind in a Deck of Cards TBD Solution
0915 Partition Array into Disjoint Intervals TBD Solution
0916 Word Subsets TBD Solution
0917 Reverse Only Letters TBD Solution
0918 Maximum Sum Circular Subarray TBD Solution
0919 Complete Binary Tree Inserter TBD Solution
0920 Number of Music Playlists TBD Solution
0921 Minimum Add to Make Parentheses Valid TBD Solution
0922 Sort Array By Parity II TBD Solution
0923 3Sum With Multiplicity TBD Solution
0924 Minimize Malware Spread TBD Solution
0925 Long Pressed Name TBD Solution
0926 Flip String to Monotone Increasing TBD Solution
0927 Three Equal Parts TBD Solution
0928 Minimize Malware Spread II TBD Solution
0929 Unique Email Addresses TBD Solution
0930 Binary Subarrays With Sum TBD Solution
0931 Minimum Falling Path Sum TBD Solution
0932 Beautiful Array TBD Solution
0933 Number of Recent Calls TBD Solution
0934 Shortest Bridge TBD Solution
0935 Knight Dialer TBD Solution
0936 Stamping The Sequence TBD Solution
0937 Reorder Data in Log Files TBD Solution
0938 Range Sum of BST TBD Solution
0939 Minimum Area Rectangle TBD Solution
0940 Distinct Subsequences II TBD Solution
0941 Valid Mountain Array TBD Solution
0942 DI String Match TBD Solution
0943 Find the Shortest Superstring TBD Solution
0944 Delete Columns to Make Sorted TBD Solution
0945 Minimum Increment to Make Array Unique TBD Solution
0946 Validate Stack Sequences TBD Solution
0947 Most Stones Removed with Same Row or Column TBD Solution
0948 Bag of Tokens TBD Solution
0949 Largest Time for Given Digits TBD Solution
0950 Reveal Cards In Increasing Order TBD Solution
0951 Flip Equivalent Binary Trees TBD Solution
0952 Largest Component Size by Common Factor TBD Solution
0953 Verifying an Alien Dictionary TBD Solution
0954 Array of Doubled Pairs TBD Solution
0955 Delete Columns to Make Sorted II TBD Solution
0956 Tallest Billboard TBD Solution
0957 Prison Cells After N Days TBD Solution
0958 Check Completeness of a Binary Tree TBD Solution
0959 Regions Cut By Slashes TBD Solution
0960 Delete Columns to Make Sorted III TBD Solution
0961 N-Repeated Element in Size 2N Array TBD Solution
0962 Maximum Width Ramp TBD Solution
0963 Minimum Area Rectangle II TBD Solution
0964 Least Operators to Express Number TBD Solution
0965 Univalued Binary Tree TBD Solution
0966 Vowel Spellchecker TBD Solution
0967 Numbers With Same Consecutive Differences TBD Solution
0968 Binary Tree Cameras TBD Solution
0969 Pancake Sorting TBD Solution
0970 Powerful Integers TBD Solution
0971 Flip Binary Tree To Match Preorder Traversal TBD Solution
0972 Equal Rational Numbers TBD Solution
0973 K Closest Points to Origin TBD Solution
0974 Subarray Sums Divisible by K TBD Solution
0975 Odd Even Jump TBD Solution
0976 Largest Perimeter Triangle TBD Solution
0977 Squares of a Sorted Array TBD Solution
0978 Longest Turbulent Subarray TBD Solution
0979 Distribute Coins in Binary Tree TBD Solution
0980 Unique Paths III TBD Solution
0981 Time Based Key-Value Store TBD Solution
0982 Triples with Bitwise AND Equal To Zero TBD Solution
0983 Minimum Cost For Tickets TBD Solution
0984 String Without AAA or BBB TBD Solution
0985 Sum of Even Numbers After Queries TBD Solution
0986 Interval List Intersections TBD Solution
0987 Vertical Order Traversal of a Binary Tree TBD Solution
0988 Smallest String Starting From Leaf TBD Solution
0989 Add to Array-Form of Integer TBD Solution
0990 Satisfiability of Equality Equations TBD Solution
0991 Broken Calculator TBD Solution
0992 Subarrays with K Different Integers TBD Solution
0993 Cousins in Binary Tree TBD Solution
0994 Rotting Oranges TBD Solution
0995 Minimum Number of K Consecutive Bit Flips TBD Solution
0996 Number of Squareful Arrays TBD Solution
0997 Find the Town Judge TBD Solution
0998 Maximum Binary Tree II TBD Solution
0999 Available Captures for Rook TBD Solution
1000 Minimum Cost to Merge Stones TBD Solution
1001 Grid Illumination TBD Solution
1002 Find Common Characters TBD Solution
1003 Check If Word Is Valid After Substitutions TBD Solution
1004 Max Consecutive Ones III TBD Solution
1005 Maximize Sum Of Array After K Negations TBD Solution
1006 Clumsy Factorial TBD Solution
1007 Minimum Domino Rotations For Equal Row TBD Solution
1008 Construct Binary Search Tree from Preorder Traversal TBD Solution
1009 Complement of Base 10 Integer TBD Solution
1010 Pairs of Songs With Total Durations Divisible by 60 TBD Solution
1011 Capacity To Ship Packages Within D Days TBD Solution
1012 Numbers With Repeated Digits TBD Solution
1013 Partition Array Into Three Parts With Equal Sum TBD Solution
1014 Best Sightseeing Pair TBD Solution
1015 Smallest Integer Divisible by K TBD Solution
1016 Binary String With Substrings Representing 1 To N TBD Solution
1017 Convert to Base -2 TBD Solution
1018 Binary Prefix Divisible By 5 TBD Solution
1019 Next Greater Node In Linked List TBD Solution
1020 Number of Enclaves TBD Solution
1021 Remove Outermost Parentheses TBD Solution
1022 Sum of Root To Leaf Binary Numbers TBD Solution
1023 Camelcase Matching TBD Solution
1024 Video Stitching TBD Solution
1025 Divisor Game TBD Solution
1026 Maximum Difference Between Node and Ancestor TBD Solution
1027 Longest Arithmetic Sequence TBD Solution
1028 Recover a Tree From Preorder Traversal TBD Solution
1029 Two City Scheduling TBD Solution
1030 Matrix Cells in Distance Order TBD Solution
1031 Maximum Sum of Two Non-Overlapping Subarrays TBD Solution
1032 Stream of Characters TBD Solution
1033 Moving Stones Until Consecutive TBD Solution
1034 Coloring A Border TBD Solution
1035 Uncrossed Lines TBD Solution
1036 Escape a Large Maze TBD Solution
1037 Valid Boomerang TBD Solution
1038 Binary Search Tree to Greater Sum Tree TBD Solution
1039 Minimum Score Triangulation of Polygon TBD Solution
1040 Moving Stones Until Consecutive II TBD Solution
1041 Robot Bounded In Circle TBD Solution
1042 Flower Planting With No Adjacent TBD Solution
1043 Partition Array for Maximum Sum TBD Solution
1044 Longest Duplicate Substring TBD Solution
1046 Last Stone Weight TBD Solution
1047 Remove All Adjacent Duplicates In String TBD Solution
1048 Longest String Chain TBD Solution
1049 Last Stone Weight II TBD Solution
1051 Height Checker TBD Solution
1052 Grumpy Bookstore Owner TBD Solution
1053 Previous Permutation With One Swap TBD Solution
1054 Distant Barcodes TBD Solution
1055 Shortest Way to Form String TBD Solution
1056 Confusing Number TBD Solution
1057 Campus Bikes TBD Solution
1058 Minimize Rounding Error to Meet Target TBD Solution
1059 All Paths from Source Lead to Destination TBD Solution
1060 Missing Element in Sorted Array TBD Solution
1061 Lexicographically Smallest Equivalent String TBD Solution
1062 Longest Repeating Substring TBD Solution
1063 Number of Valid Subarrays TBD Solution
1064 Fixed Point TBD Solution
1065 Index Pairs of a String TBD Solution
1066 Campus Bikes II TBD Solution
1067 Digit Count in Range TBD Solution
1071 Greatest Common Divisor of Strings TBD Solution
1072 Flip Columns For Maximum Number of Equal Rows TBD Solution
1073 Adding Two Negabinary Numbers TBD Solution
1074 Number of Submatrices That Sum to Target TBD Solution
1078 Occurrences After Bigram TBD Solution
1079 Letter Tile Possibilities TBD Solution
1080 Insufficient Nodes in Root to Leaf Paths TBD Solution
1081 Smallest Subsequence of Distinct Characters TBD Solution
1085 Sum of Digits in the Minimum Number TBD Solution
1086 High Five TBD Solution
1087 Brace Expansion TBD Solution
1088 Confusing Number II TBD Solution
1089 Duplicate Zeros TBD Solution
1090 Largest Values From Labels TBD Solution
1091 Shortest Path in Binary Matrix TBD Solution
1092 Shortest Common Supersequence TBD Solution
1093 Statistics from a Large Sample TBD Solution
1094 Car Pooling TBD Solution
1095 Find in Mountain Array TBD Solution
1096 Brace Expansion II TBD Solution
1099 Two Sum Less Than K TBD Solution
1100 Find K-Length Substrings With No Repeated Characters TBD Solution
1101 The Earliest Moment When Everyone Become Friends TBD Solution
1102 Path With Maximum Minimum Value TBD Solution
1103 Distribute Candies to People TBD Solution
1104 Path In Zigzag Labelled Binary Tree TBD Solution
1105 Filling Bookcase Shelves TBD Solution
1106 Parsing A Boolean Expression TBD Solution
1108 Defanging an IP Address TBD Solution
1109 Corporate Flight Bookings TBD Solution
1110 Delete Nodes And Return Forest TBD Solution
1111 Maximum Nesting Depth of Two Valid Parentheses Strings TBD Solution
1118 Number of Days in a Month TBD Solution
1119 Remove Vowels from a String TBD Solution
1120 Maximum Average Subtree TBD Solution
1121 Divide Array Into Increasing Sequences TBD Solution
1122 Relative Sort Array TBD Solution
1123 Lowest Common Ancestor of Deepest Leaves TBD Solution
1124 Longest Well-Performing Interval TBD Solution
1125 Smallest Sufficient Team TBD Solution
1128 Number of Equivalent Domino Pairs TBD Solution
1129 Shortest Path with Alternating Colors TBD Solution
1130 Minimum Cost Tree From Leaf Values TBD Solution
1131 Maximum of Absolute Value Expression TBD Solution
1133 Largest Unique Number TBD Solution
1134 Armstrong Number TBD Solution
1135 Connecting Cities With Minimum Cost TBD Solution
1136 Parallel Courses TBD Solution
1137 N-th Tribonacci Number TBD Solution
1138 Alphabet Board Path TBD Solution
1139 Largest 1-Bordered Square TBD Solution
1140 Stone Game II TBD Solution
1143 Longest Common Subsequence TBD Solution
1144 Decrease Elements To Make Array Zigzag TBD Solution
1145 Binary Tree Coloring Game TBD Solution
1146 Snapshot Array TBD Solution
1147 Longest Chunked Palindrome Decomposition TBD Solution
1150 Check If a Number Is Majority Element in a Sorted Array TBD Solution
1151 Minimum Swaps to Group All 1's Together TBD Solution
1152 Analyze User Website Visit Pattern TBD Solution
1153 String Transforms Into Another String TBD Solution
1154 Day of the Year TBD Solution
1155 Number of Dice Rolls With Target Sum TBD Solution
1156 Swap For Longest Repeated Character Substring TBD Solution
1157 Online Majority Element In Subarray TBD Solution
1160 Find Words That Can Be Formed by Characters TBD Solution
1161 Maximum Level Sum of a Binary Tree TBD Solution
1162 As Far from Land as Possible TBD Solution
1163 Last Substring in Lexicographical Order TBD Solution
1165 Single-Row Keyboard TBD Solution
1166 Design File System TBD Solution
1167 Minimum Cost to Connect Sticks TBD Solution
1168 Optimize Water Distribution in a Village TBD Solution
1169 Invalid Transactions TBD Solution
1170 Compare Strings by Frequency of the Smallest Character TBD Solution
1171 Remove Zero Sum Consecutive Nodes from Linked List TBD Solution
1172 Dinner Plate Stacks TBD Solution
1175 Prime Arrangements TBD Solution
1176 Diet Plan Performance TBD Solution
1177 Can Make Palindrome from Substring TBD Solution
1178 Number of Valid Words for Each Puzzle TBD Solution
1180 Count Substrings with Only One Distinct Letter TBD Solution
1181 Before and After Puzzle TBD Solution
1182 Shortest Distance to Target Color TBD Solution
1183 Maximum Number of Ones TBD Solution
1184 Distance Between Bus Stops TBD Solution
1185 Day of the Week TBD Solution
1186 Maximum Subarray Sum with One Deletion TBD Solution
1187 Make Array Strictly Increasing TBD Solution
1189 Maximum Number of Balloons TBD Solution
1190 Reverse Substrings Between Each Pair of Parentheses TBD Solution
1191 K-Concatenation Maximum Sum TBD Solution
1192 Critical Connections in a Network TBD Solution
1196 How Many Apples Can You Put into the Basket TBD Solution
1197 Minimum Knight Moves TBD Solution
1198 Find Smallest Common Element in All Rows TBD Solution
1199 Minimum Time to Build Blocks TBD Solution
1200 Minimum Absolute Difference TBD Solution
1201 Ugly Number III TBD Solution
1202 Smallest String With Swaps TBD Solution
1203 Sort Items by Groups Respecting Dependencies TBD Solution
1206 Design Skiplist TBD Solution
1207 Unique Number of Occurrences TBD Solution
1208 Get Equal Substrings Within Budget TBD Solution
1209 Remove All Adjacent Duplicates in String II TBD Solution
1210 Minimum Moves to Reach Target with Rotations TBD Solution
1213 Intersection of Three Sorted Arrays TBD Solution
1214 Two Sum BSTs TBD Solution
1215 Stepping Numbers TBD Solution
1216 Valid Palindrome III TBD Solution
1217 Play with Chips TBD Solution
1218 Longest Arithmetic Subsequence of Given Difference TBD Solution
1219 Path with Maximum Gold TBD Solution
1220 Count Vowels Permutation TBD Solution
1221 Split a String in Balanced Strings TBD Solution
1222 Queens That Can Attack the King TBD Solution
1223 Dice Roll Simulation TBD Solution
1224 Maximum Equal Frequency TBD Solution
1227 Airplane Seat Assignment Probability TBD Solution
1228 Missing Number In Arithmetic Progression TBD Solution
1229 Meeting Scheduler TBD Solution
1230 Toss Strange Coins TBD Solution
1231 Divide Chocolate TBD Solution
1232 Check If It Is a Straight Line TBD Solution
1233 Remove Sub-Folders from the Filesystem TBD Solution
1234 Replace the Substring for Balanced String TBD Solution
1235 Maximum Profit in Job Scheduling TBD Solution
1236 Web Crawler TBD Solution
1237 Find Positive Integer Solution for a Given Equation TBD Solution
1238 Circular Permutation in Binary Representation TBD Solution
1239 Maximum Length of a Concatenated String with Unique Characters TBD Solution
1240 Tiling a Rectangle with the Fewest Squares TBD Solution
1243 Array Transformation TBD Solution
1244 Design A Leaderboard TBD Solution
1245 Tree Diameter TBD Solution
1246 Palindrome Removal TBD Solution
1247 Minimum Swaps to Make Strings Equal TBD Solution
1248 Count Number of Nice Subarrays TBD Solution
1249 Minimum Remove to Make Valid Parentheses TBD Solution
1250 Check If It Is a Good Array TBD Solution
1252 Cells with Odd Values in a Matrix TBD Solution
1253 Reconstruct a 2-Row Binary Matrix TBD Solution
1254 Number of Closed Islands TBD Solution
1255 Maximum Score Words Formed by Letters TBD Solution
1256 Encode Number TBD Solution
1257 Smallest Common Region TBD Solution
1258 Synonymous Sentences TBD Solution
1259 Handshakes That Don't Cross TBD Solution
1260 Shift 2D Grid TBD Solution
1261 Find Elements in a Contaminated Binary Tree TBD Solution
1262 Greatest Sum Divisible by Three TBD Solution
1263 Minimum Moves to Move a Box to Their Target Location TBD Solution
1265 Print Immutable Linked List in Reverse TBD Solution
1266 Minimum Time Visiting All Points TBD Solution
1267 Count Servers that Communicate TBD Solution
1268 Search Suggestions System TBD Solution
1269 Number of Ways to Stay in the Same Place After Some Steps TBD Solution
1271 Hexspeak TBD Solution
1272 Remove Interval TBD Solution
1273 Delete Tree Nodes TBD Solution
1274 Number of Ships in a Rectangle TBD Solution
1275 Find Winner on a Tic Tac Toe Game TBD Solution
1276 Number of Burgers with No Waste of Ingredients TBD Solution
1277 Count Square Submatrices with All Ones TBD Solution
1278 Palindrome Partitioning III TBD Solution
1281 Subtract the Product and Sum of Digits of an Integer TBD Solution
1282 Group the People Given the Group Size They Belong To TBD Solution
1283 Find the Smallest Divisor Given a Threshold TBD Solution
1284 Minimum Number of Flips to Convert Binary Matrix to Zero Matrix TBD Solution
1286 Iterator for Combination TBD Solution
1287 Element Appearing More Than 25% In Sorted Array TBD Solution
1288 Remove Covered Intervals TBD Solution
1289 Minimum Falling Path Sum II TBD Solution
1290 Convert Binary Number in a Linked List to Integer TBD Solution
1291 Sequential Digits TBD Solution
1292 Maximum Side Length of a Square with Sum Less than or Equal to Threshold TBD Solution
1293 Shortest Path in a Grid with Obstacles Elimination TBD Solution
1295 Find Numbers with Even Number of Digits TBD Solution
1296 Divide Array in Sets of K Consecutive Numbers TBD Solution
1297 Maximum Number of Occurrences of a Substring TBD Solution
1298 Maximum Candies You Can Get from Boxes TBD Solution
1299 Replace Elements with Greatest Element on Right Side TBD Solution
1300 Sum of Mutated Array Closest to Target TBD Solution
1301 Number of Paths with Max Score TBD Solution
1302 Deepest Leaves Sum TBD Solution
1304 Find N Unique Integers Sum up to Zero TBD Solution
1305 All Elements in Two Binary Search Trees TBD Solution
1306 Jump Game III TBD Solution
1307 Verbal Arithmetic Puzzle TBD Solution
1309 Decrypt String from Alphabet to Integer Mapping TBD Solution
1310 XOR Queries of a Subarray TBD Solution
1311 Get Watched Videos by Your Friends TBD Solution
1312 Minimum Insertion Steps to Make a String Palindrome TBD Solution
1313 Decompress Run-Length Encoded List TBD Solution
1314 Matrix Block Sum TBD Solution
1315 Sum of Nodes with Even-Valued Grandparent TBD Solution
1316 Distinct Echo Substrings TBD Solution
1317 Convert Integer to the Sum of Two No-Zero Integers TBD Solution
1318 Minimum Flips to Make a OR b Equal to c TBD Solution
1319 Number of Operations to Make Network Connected TBD Solution
1320 Minimum Distance to Type a Word Using Two Fingers TBD Solution
1323 Maximum 69 Number TBD Solution
1324 Print Words Vertically TBD Solution
1325 Delete Leaves With a Given Value TBD Solution
1326 Minimum Number of Taps to Open to Water a Garden TBD Solution
1328 Break a Palindrome TBD Solution
1329 Sort the Matrix Diagonally TBD Solution
1330 Reverse Subarray To Maximize Array Value TBD Solution
1331 Rank Transform of an Array TBD Solution
1332 Remove Palindromic Subsequences TBD Solution
1333 Filter Restaurants by Vegan-Friendly, Price and Distance TBD Solution
1334 Find the City With the Smallest Number of Neighbors at a Threshold Distance TBD Solution
1335 Minimum Difficulty of a Job Schedule TBD Solution
1337 The K Weakest Rows in a Matrix TBD Solution
1338 Reduce Array Size to The Half TBD Solution
1339 Maximum Product of Splitted Binary Tree TBD Solution
1340 Jump Game V TBD Solution
1342 Number of Steps to Reduce a Number to Zero TBD Solution
1343 Number of Sub-arrays of Size K and Average Greater than or Equal to Threshold TBD Solution
1344 Angle Between Hands of a Clock TBD Solution
1345 Jump Game IV TBD Solution
1346 Check If N and Its Double Exist TBD Solution
1347 Minimum Number of Steps to Make Two Strings Anagram TBD Solution
1348 Tweet Counts Per Frequency TBD Solution
1349 Maximum Students Taking Exam TBD Solution
1351 Count Negative Numbers in a Sorted Matrix TBD Solution
1352 Product of the Last K Numbers TBD Solution
1353 Maximum Number of Events That Can Be Attended TBD Solution
1354 Construct Target Array With Multiple Sums TBD Solution
1356 Sort Integers by The Number of 1 Bits TBD Solution
1357 Apply Discount Every n Orders TBD Solution
1358 Number of Substrings Containing All Three Characters TBD Solution
1359 Count All Valid Pickup and Delivery Options TBD Solution
1360 Number of Days Between Two Dates TBD Solution
1361 Validate Binary Tree Nodes TBD Solution
1362 Closest Divisors TBD Solution
1363 Largest Multiple of Three TBD Solution
1365 How Many Numbers Are Smaller Than the Current Number TBD Solution
1366 Rank Teams by Votes TBD Solution
1367 Linked List in Binary Tree TBD Solution
1368 Minimum Cost to Make at Least One Valid Path in a Grid TBD Solution
1370 Increasing Decreasing String TBD Solution
1371 Find the Longest Substring Containing Vowels in Even Counts TBD Solution
1372 Longest ZigZag Path in a Binary Tree TBD Solution
1373 Maximum Sum BST in Binary Tree TBD Solution
1374 Generate a String With Characters That Have Odd Counts TBD Solution
1375 Bulb Switcher III TBD Solution
1376 Time Needed to Inform All Employees TBD Solution
1377 Frog Position After T Seconds TBD Solution
1379 Find a Corresponding Node of a Binary Tree in a Clone of That Tree TBD Solution
1380 Lucky Numbers in a Matrix TBD Solution
1381 Design a Stack With Increment Operation TBD Solution
1382 Balance a Binary Search Tree TBD Solution
1383 Maximum Performance of a Team TBD Solution
1385 Find the Distance Value Between Two Arrays TBD Solution
1386 Cinema Seat Allocation TBD Solution
1387 Sort Integers by The Power Value TBD Solution
1388 Pizza With 3n Slices TBD Solution
1389 Create Target Array in the Given Order TBD Solution
1390 Four Divisors TBD Solution
1391 Check if There is a Valid Path in a Grid TBD Solution
1392 Longest Happy Prefix TBD Solution
1394 Find Lucky Integer in an Array TBD Solution
1395 Count Number of Teams TBD Solution
1396 Design Underground System TBD Solution
1397 Find All Good Strings TBD Solution
1399 Count Largest Group TBD Solution
1400 Construct K Palindrome Strings TBD Solution
1401 Circle and Rectangle Overlapping TBD Solution
1402 Reducing Dishes TBD Solution
1403 Minimum Subsequence in Non-Increasing Order TBD Solution
1404 Number of Steps to Reduce a Number in Binary Representation to One TBD Solution
1405 Longest Happy String TBD Solution
1406 Stone Game III TBD Solution
1408 String Matching in an Array TBD Solution
1409 Queries on a Permutation With Key TBD Solution
1410 HTML Entity Parser TBD Solution
1411 Number of Ways to Paint N × 3 Grid TBD Solution
1413 Minimum Value to Get Positive Step by Step Sum TBD Solution
1414 Find the Minimum Number of Fibonacci Numbers Whose Sum Is K TBD Solution
1415 The k-th Lexicographical String of All Happy Strings of Length n TBD Solution
1416 Restore The Array TBD Solution
1417 Reformat The String TBD Solution
1418 Display Table of Food Orders in a Restaurant TBD Solution
1419 Minimum Number of Frogs Croaking TBD Solution
1420 Build Array Where You Can Find The Maximum Exactly K Comparisons TBD Solution
1422 Maximum Score After Splitting a String TBD Solution
1423 Maximum Points You Can Obtain from Cards TBD Solution
1424 Diagonal Traverse II TBD Solution
1425 Constrained Subsequence Sum TBD Solution
1426 Counting Elements TBD Solution
1427 Perform String Shifts TBD Solution
1428 Leftmost Column with at Least a One TBD Solution
1429 First Unique Number TBD Solution
1430 Check If a String Is a Valid Sequence from Root to Leaves Path in a Binary Tree TBD Solution
1431 Kids With the Greatest Number of Candies TBD Solution
1432 Max Difference You Can Get From Changing an Integer TBD Solution
1433 Check If a String Can Break Another String TBD Solution
1434 Number of Ways to Wear Different Hats to Each Other TBD Solution
1436 Destination City TBD Solution
1437 Check If All 1's Are at Least Length K Places Away TBD Solution
1438 Longest Continuous Subarray With Absolute Diff Less Than or Equal to Limit TBD Solution
1439 Find the Kth Smallest Sum of a Matrix With Sorted Rows TBD Solution

Releases

No releases published

Packages

No packages published

Languages