Skip to content

Latest commit

 

History

History
1374 lines (1372 loc) · 754 KB

leetcode.md

File metadata and controls

1374 lines (1372 loc) · 754 KB
No. Title Solution Difficulty
0001 Two Sum C++ Python Easy
0002 Add Two Numbers C++ Python Medium
0003 Longest Substring Without Repeating Characters C++ Python Medium
0004 Median of Two Sorted Arrays C++ Python Hard
0005 Longest Palindromic Substring C++ Python Go Medium
0006 Zigzag Conversion C++ Java Medium
0007 Reverse Integer C++ Python Medium
0008 String to Integer (atoi) C++ Medium
0009 Palindrome Number C++ Easy
0010 Regular Expression Matching C++ Hard
0011 Container With Most Water C++ Python Java Medium
0012 Integer to Roman C++ Medium
0013 Roman to Integer C++ Easy
0014 Longest Common Prefix C++ Easy
0015 3Sum C++ Medium
0016 3Sum Closest C++ Medium
0017 Letter Combinations of a Phone Number C++ Python Medium
0018 4Sum C++ Medium
0019 Remove Nth Node From End of List C++ Python Medium
0020 Valid Parentheses C++ Java Easy
0021 Merge Two Sorted Lists C++ Easy
0022 Generate Parentheses C++ Medium
0023 Merge k Sorted Lists C++ Python Hard
0024 Swap Nodes in Pairs C++ Medium
0025 Reverse Nodes in k-Group C++ Python Go Hard
0026 Remove Duplicates from Sorted Array C++ Easy
0027 Remove Element C++ Easy
0028 Find the Index of the First Occurrence in a String (RK/KMP) C++ Python Medium
0029 Divide Two Integers C++ Medium
0030 Substring with Concatenation of All Words C++ Hard
0031 Next Permutation C++ Medium
0032 Longest Valid Parentheses C++ Hard
0033 Search in Rotated Sorted Array C++ Python Medium
0034 Find First and Last Position of Element in Sorted Array C++ Python Medium
0035 Search Insert Position C++ Easy
0036 Valid Sudoku C++ Medium
0037 Sudoku Solver C++ Hard
0038 Count and Say C++ Medium
0039 Combination Sum C++ Medium
0040 Combination Sum II C++ Python Medium
0041 First Missing Positive C++ Python Hard
0042 Trapping Rain Water C++ Python Hard
0043 Multiply Strings C++ Medium
0044 Wildcard Matching C++ Python Hard
0045 Jump Game II C++ Medium
0046 Permutations C++ Medium
0047 Permutations II C++ Medium
0048 Rotate Image C++ Medium
0049 Group Anagrams C++ Python Go Medium
0050 Pow(x, n) C++ Python Medium
0051 N-Queens C++ Hard
0052 N-Queens II C++ Hard
0053 Maximum Subarray C++ Easy
0054 Spiral Matrix C++ Medium
0055 Jump Game C++ Medium
0056 Merge Intervals C++ Python Medium
0057 Insert Interval C++ Python Medium
0058 Length of Last Word C++ Python Easy
0059 Spiral Matrix II C++ Medium
0060 Permutation Sequence C++ Hard
0061 Rotate List C++ Medium
0062 Unique Paths C++ Python Medium
0063 Unique Paths II C++ Medium
0064 Minimum Path Sum C++ Medium
0065 Valid Number C++ Python Hard
0066 Plus One C++ Easy
0067 Add Binary C++ Easy
0068 Text Justification C++ Hard
0069 Sqrt(x) C++ Python Easy
0070 Climbing Stairs C++ Python Go Easy
0071 Simplify Path C++ Python Medium
0072 Edit Distance C++ Python Medium
0073 Set Matrix Zeroes C++ Medium
0074 Search a 2D Matrix C++ Medium
0075 Sort Colors C++ Python Medium
0076 Minimum Window Substring C++ Python Hard
0077 Combinations C++ Medium
0078 Subsets C++ Python Medium
0079 Word Search C++ Python Medium
0080 Remove Duplicates from Sorted Array II C++ Medium
0081 Search in Rotated Sorted Array II C++ Medium
0082 Remove Duplicates from Sorted List II C++ Medium
0083 Remove Duplicates from Sorted List C++ Easy
0084 Largest Rectangle in Histogram C++ Python Hard
0085 Maximal Rectangle C++ Python Hard
0086 Partition List C++ Medium
0087 Scramble String C++ Hard
0088 Merge Sorted Array C++ Python Java Kotlin Easy
0089 Gray Code C++ Medium
0090 Subsets II C++ Medium
0091 Decode Ways C++ Python Medium
0092 Reverse Linked List II C++ Medium
0093 Restore IP Addresses C++ Medium
0094 Binary Tree Inorder Traversal C++ Easy
0095 Unique Binary Search Trees II C++ Medium
0096 Unique Binary Search Trees C++ Medium
0097 Interleaving String C++ Medium
0098 Validate Binary Search Tree C++ Medium
0099 Recover Binary Search Tree C++ Medium
0100 Same Tree C++ Python Easy
0101 symmetric-tree C++ Easy
0102 Binary Tree Level Order Traversal C++ Medium
0103 Binary Tree Zigzag Level Order Traversal C++ Medium
0104 Maximum Depth of Binary Tree C++ Python Java Easy
0105 Construct Binary Tree from Preorder and Inorder Traversal C++ Medium
0106 Construct Binary Tree from Inorder and Postorder Traversal C++ Medium
0107 Binary Tree Level Order Traversal II C++ Medium
0108 Convert Sorted Array to Binary Search Tree C++ Easy
0109 Convert Sorted List to Binary Search Tree C++ Medium
0110 Balanced Binary Tree C++ Easy
0111 Minimum Depth of Binary Tree C++ Easy
0112 Path Sum C++ Easy
0113 Path Sum II C++ Python Medium
0114 Flatten Binary Tree to Linked List C++ Medium
0115 Distinct Subsequences C++ Hard
0116 Populating Next Right Pointers in Each Node C++ Medium
0117 Populating Next Right Pointers in Each Node II C++ Medium
0118 Pascal's Triangle C++ Easy
0119 Pascal's Triangle II C++ Easy
0120 Triangle C++ Medium
0121 Best Time to Buy and Sell Stock C++ Python Easy
0122 Best Time to Buy and Sell Stock II C++ Medium
0123 Best Time to Buy and Sell Stock III C++ Hard
0124 Binary Tree Maximum Path Sum C++ Hard
0125 Valid Palindrome C++ Python Go Easy
0126 Word Ladder II C++ Hard
0127 Word Ladder C++ Hard
0128 Longest Consecutive Sequence C++ Python Medium
0129 Sum Root to Leaf Numbers C++ Python Medium
0130 Surrounded Regions C++ Medium
0131 Palindrome Partitioning C++ Go Medium
0132 Palindrome Partitioning II C++ Hard
0133 Clone Graph C++ Medium
0134 Gas Station C++ Medium
0135 Candy C++ Hard
0136 Single Number C++ Python Easy
0137 Single Number II C++ Medium
0138 Copy List with Random Pointer C++ Python Medium
0139 Word Break C++ Medium
0140 Word Break II C++ Python Hard
0141 Linked List Cycle C++ Python Easy
0142 Linked List Cycle II C++ Medium
0143 Reorder List C++ Python Medium
0144 Binary Tree Preorder Traversal C++ Easy
0145 Binary Tree Postorder Traversal C++ Python Easy
0146 LRU Cache C++ Python Medium
0147 Insertion Sort List C++ Medium
0148 Sort List C++ Medium
0149 Max Points on a Line C++ Hard
0150 Evaluate Reverse Polish Notation C++ Python Medium
0151 Reverse Words in a String C++ Python Java Medium
0152 Maximum Product Subarray C++ Medium
0153 Find Minimum in Rotated Sorted Array C++ Medium
0154 Find Minimum in Rotated Sorted Array II C++ Hard
0155 Min Stack C++ Easy
0156 Binary Tree Upside Down C++ Medium
0157 Read N Characters Given Read4 C++ Easy
0158 Read N Characters Given read4 II - Call Multiple Times C++ Hard
0159 Longest Substring with At Most Two Distinct Characters C++ Python Medium
0160 Intersection of Two Linked Lists C++ Easy
0161 One Edit Distance C++ Medium
0162 Find Peak Element C++ Python Medium
0163 Missing Ranges C++ Python Easy
0164 Maximum Gap C++ Medium
0165 Compare Version Numbers C++ Python Medium
0166 Fraction to Recurring Decimal C++ Medium
0167 Two Sum II - Input Array Is Sorted C++ Medium
0168 Excel Sheet Column Title C++ Easy
0169 Majority Element C++ Python Easy
0170 Two Sum III - Data structure design C++ Easy
0171 Excel Sheet Column Number C++ Easy
0172 Factorial Trailing Zeroes C++ Medium
0173 Binary Search Tree Iterator C++ Medium
0174 Dungeon Game C++ Hard
0179 Largest Number C++ Python Medium
0186 Reverse Words in a String II C++ Medium
0187 Repeated DNA Sequences C++ Medium
0188 Best Time to Buy and Sell Stock IV C++ Hard
0189 Rotate Array C++ Medium
0190 Reverse Bits C++ Easy
0191 Number of 1 Bits C++ Easy
0198 House Robber C++ Python Go Medium
0199 Binary Tree Right Side View C++ Python Java Medium
0200 Number of Islands C++ Python Medium
0201 Bitwise AND of Numbers Range C++ Python Medium
0202 Happy Number C++ Easy
0203 Remove Linked List Elements C++ Easy
0204 Count Primes C++ Medium
0205 Isomorphic Strings C++ Python Easy
0206 Reverse Linked List C++ Go Java Easy
0207 Course Schedule C++ Medium
0208 Implement Trie (Prefix Tree) C++ Python Go Medium
0209 Minimum Size Subarray Sum C++ Medium
0210 Course Schedule II C++ Medium
0211 Design Add and Search Words Data Structure C++ Medium
0212 Word Search II C++ Hard
0213 House Robber II C++ Medium
0214 Shortest Palindrome C++ Python Hard
0215 Kth Largest Element in an Array C++ Python Medium
0216 Combination Sum III C++ Python Medium
0217 Contains Duplicate C++ Easy
0218 The Skyline Problem C++ Hard
0219 Contains Duplicate II C++ Easy
0220 Contains Duplicate III C++ Hard
0221 Maximal Square C++ Medium
0222 Count Complete Tree Nodes C++ Medium
0223 Rectangle Area C++ Medium
0224 Basic Calculator C++ Python Hard
0225 Implement Stack using Queues C++ Easy
0226 Invert Binary Tree C++ Easy
0227 Basic Calculator II C++ Python Medium
0228 Summary Ranges C++ Java Easy
0229 Majority Element II C++ Medium
0230 Kth Smallest Element in a BST C++ Medium
0231 Power of Two C++ Python Easy
0232 Implement Queue using Stacks C++ Python Easy
0233 Number of Digit One C++ Hard
0234 Palindrome Linked List C++ Python Easy
0235 Lowest Common Ancestor of a Binary Search Tree C++ Easy
0236 Lowest Common Ancestor of a Binary Tree C++ Python Java Kotlin Medium
0237 Delete Node in a Linked List C++ Python Medium
0238 Product of Array Except Self C++ Python Java Medium
0239 Sliding Window Maximum C++ Hard
0240 Search a 2D Matrix II C++ Medium
0241 Different Ways to Add Parentheses C++ Python Medium
0242 Valid Anagram C++ Easy
0243 Shortest Word Distance C++ Easy
0244 Shortest Word Distance II C++ Medium
0245 Shortest Word Distance III C++ Medium
0246 Strobogrammatic Number C++ Easy
0247 Strobogrammatic Number II C++ Medium
0248 Strobogrammatic Number III C++ Hard
0249 Group Shifted Strings C++ Medium
0250 Count Univalue Subtrees C++ Medium
0251 Flatten 2D Vector C++ Medium
0252 Meeting Rooms C++ Easy
0253 Meeting Rooms II C++ Python Medium
0254 Factor Combinations C++ Medium
0255 Verify Preorder Sequence in Binary Search Tree C++ Python Medium
0256 Paint House C++ Python Medium
0257 Binary Tree Paths C++ Easy
0258 Add Digits C++ Easy
0259 3Sum Smaller C++ Medium
0260 Single Number III C++ Python Medium
0261 Graph Valid Tree C++ Medium
0263 Ugly Number C++ Easy
0264 Ugly Number II C++ Python Medium
0265 Paint House II C++ Hard
0266 Palindrome Permutation C++ Easy
0267 Palindrome Permutation II C++ Medium
0268 Missing Number C++ Python Easy
0269 Alien Dictionary C++ Hard
0270 Closest Binary Search Tree Value C++ Easy
0271 Encode and Decode Strings C++ Medium
0272 Closest Binary Search Tree Value II C++ Hard
0273 Integer to English Words C++ Python Hard
0274 H-Index C++ Medium
0275 H-Index II C++ Medium
0276 Paint Fence C++ Python Medium
0277 Find the Celebrity C++ Medium
0278 First Bad Version C++ Easy
0279 Perfect Squares C++ Python Medium
0280 Wiggle Sort C++ Medium
0281 Zigzag Iterator C++ Medium
0282 Expression Add Operators C++ Hard
0283 Move Zeroes C++ Python Java Easy
0284 Peeking Iterator C++ Medium
0285 Inorder Successor in BST C++ Medium
0286 Walls and Gates C++ Medium
0287 Find the Duplicate Number C++ Python Medium
0288 Unique Word Abbreviation C++ Medium
0289 Game of Life C++ Medium
0290 Word Pattern C++ Easy
0292 Nim Game C++ Easy
0293 Flip Game C++ Python Easy
0294 Flip Game II C++ Medium
0295 Find Median from Data Stream C++ Hard
0296 Best Meeting Point C++ Hard
0297 Serialize and Deserialize Binary Tree C++ Medium
0298 Binary Tree Longest Consecutive Sequence C++ Medium
0299 Bulls and Cows C++ Medium
0300 Longest Increasing Subsequence C++ Python Medium
0301 Remove Invalid Parentheses C++ Hard
0302 Smallest Rectangle Enclosing Black Pixels Python Hard
0303 Range Sum Query - Immutable C++ Easy
0304 Range Sum Query 2D - Immutable C++ Medium
0305 Number of Islands II C++ Python Hard
0306 Additive Number Python Medium
0307 Range Sum Query - Mutable C++ Medium
0308 Range Sum Query 2D - Mutable C++ Hard
0309 Best Time to Buy and Sell Stock with Cooldown C++ Medium
0310 Minimum Height Trees C++ Python Medium
0311 Sparse Matrix Multiplication C++ Medium
0312 Burst Balloons C++ Hard
0313 Super Ugly Number Python Medium
0314 Binary Tree Vertical Order Traversal C++ Python Java Medium
0315 Count of Smaller Numbers After Self C++ Hard
0316 Remove Duplicate Letters C++ Medium
0317 Shortest Distance from All Buildings Python Hard
0318 Maximum Product of Word Lengths C++ Medium
0319 Bulb Switcher C++ Medium
0322 Coin Change C++ Medium
0323 Number of Connected Components in an Undirected Graph C++ Medium
0325 Maximum Size Subarray Sum Equals k C++ Medium
0326 Power of Three C++ Easy
0328 Odd Even Linked List C++ Python Go Java Medium
0329 Longest Increasing Path in a Matrix C++ Python Hard
0330 Patching Array Python Hard
0332 Reconstruct Itinerary C++ Hard
0333 Largest BST Subtree C++ Medium
0334 Increasing Triplet Subsequence C++ Python Java Medium
0336 Palindrome Pairs C++ Hard
0337 House Robber III C++ Medium
0338 Counting Bits C++ Python Easy
0339 Nested List Weight Sum C++ Python Medium
0340 Longest Substring with At Most K Distinct Characters C++ Python Medium
0341 Flatten Nested List Iterator C++ Medium
0342 Power of Four C++ Easy
0343 Integer Break C++ Medium
0344 Reverse String C++ Python Easy
0345 Reverse Vowels of a String C++ Python Java Easy
0346 Moving Average from Data Stream C++ Easy
0347 Top K Frequent Elements C++ Python Medium
0348 Design Tic-Tac-Toe C++ Medium
0349 Intersection of Two Arrays C++ Python Easy
0350 Intersection of Two Arrays II C++ Python Easy
0351 Android Unlock Patterns C++ Python Medium
0354 Russian Doll Envelopes C++ Hard
0355 Design Twitter C++ Python Medium
0358 Rearrange String k Distance Apart C++ Hard
0359 Logger Rate Limiter C++ Easy
0361 Bomb Enemy C++ Medium
0362 Design Hit Counter C++ Medium
0363 Max Sum of Rectangle No Larger Than K C++ Hard
0365 Water and Jug Problem C++ Medium
0366 Find Leaves of Binary Tree C++ Medium
0367 Valid Perfect Square C++ Easy
0368 Largest Divisible Subset C++ Python Medium
0369 Plus One Linked List C++ Medium
0373 Find K Pairs with Smallest Sums C++ Medium
0374 Guess Number Higher or Lower C++ Python Go Easy
0376 Wiggle Subsequence C++ Medium
0377 Combination Sum IV C++ Medium
0378 Kth Smallest Element in a Sorted Matrix C++ Medium
0380 Insert Delete GetRandom O(1) C++ Python Go Medium
0382 Linked List Random Node C++ Medium
0383 Ransom Note C++ Easy
0384 Shuffle an Array C++ Medium
0386 Lexicographical Numbers C++ Python Medium
0387 First Unique Character in a String C++ Python Easy
0389 Find the Difference C++ Easy
0392 Is Subsequence C++ Python Java Easy
0393 UTF-8 Validation C++ Medium
0394 Decode String C++ Python Go Java Medium
0395 Longest Substring with At Least K Repeating Characters C++ Medium
0398 Random Pick Index C++ Medium
0399 Evaluate Division C++ Python Java Medium
0400 Nth Digit C++ Medium
0402 Remove K Digits C++ Python Medium
0403 Frog Jump C++ Hard
0404 Sum of Left Leaves C++ Python Easy
0405 Convert a Number to Hexadecimal C++ Easy
0406 Queue Reconstruction by Height C++ Medium
0407 Trapping Rain Water II Python Rust Hard
0408 Valid Word Abbreviation C++ Python Easy
0409 Longest Palindrome C++ Python Go Easy
0410 Split Array Largest Sum C++ Python Hard
0412 Fizz Buzz C++ Easy
0413 Arithmetic Slices C++ Medium
0414 Third Maximum Number C++ Python Easy
0415 Add Strings C++ Python Easy
0416 Partition Equal Subset Sum C++ Medium
0417 Pacific Atlantic Water Flow C++ Medium
0418 Sentence Screen Fitting C++ Medium
0419 Battleships in a Board C++ Medium
0422 Valid Word Square C++ Easy
0424 Longest Repeating Character Replacement C++ Medium
0426 Convert Binary Search Tree to Sorted Doubly Linked List Python Medium
0427 Construct Quad Tree C++ Medium
0429 N-ary Tree Level Order Traversal C++ Medium
0430 Flatten a Multilevel Doubly Linked List C++ Medium
0433 Minimum Genetic Mutation C++ Medium
0435 Non-overlapping Intervals C++ Python Medium
0436 Find Right Interval C++ Medium
0437 Path Sum III C++ Python Go Java Medium
0438 Find All Anagrams in a String C++ Medium
0439 Ternary Expression Parser C++ Medium
0440 K-th Smallest in Lexicographical Order Java Hard
0441 Arranging Coins C++ Easy
0442 Find All Duplicates in an Array Python Medium
0443 String Compression C++ Python Java Medium
0444 Sequence Reconstruction C++ Medium
0445 Add Two Numbers II C++ Medium
0446 Arithmetic Slices II - Subsequence C++ Python Hard
0448 Find All Numbers Disappeared in an Array C++ Easy
0450 Delete Node in a BST C++ Python Go Medium
0451 Sort Characters By Frequency C++ Python Medium
0452 Minimum Number of Arrows to Burst Balloons C++ Python Medium
0454 4Sum II C++ Medium
0455 Assign Cookies C++ Python Easy
0456 132 Pattern C++ Medium
0457 Circular Array Loop Python Medium
0458 Poor Pigs C++ Hard
0459 Repeated Substring Pattern C++ Easy
0460 LFU Cache C++ Hard
0462 Minimum Moves to Equal Array Elements II C++ Medium
0463 Island Perimeter C++ Python Easy
0464 Can I Win C++ Medium
0465 Optimal Account Balancing C++ Hard
0468 Validate IP Address Python Medium
0472 Concatenated Words C++ Hard
0473 Matchsticks to Square C++ Medium
0474 Ones and Zeroes C++ Medium
0476 Number Complement Python Easy
0484 Find Permutation C++ Medium
0486 Predict the Winner C++ Medium
0487 Max Consecutive Ones II C++ Python Medium
0489 Robot Room Cleaner C++ Hard
0491 Non-decreasing Subsequences C++ Medium
0494 Target Sum C++ Python Medium
0496 Next Greater Element I C++ Easy
0498 Diagonal Traverse Python Medium
0501 Find Mode in Binary Search Tree C++ Easy
0502 IPO C++ Python Hard
0503 Next Greater Element II C++ Python Medium
0505 The Maze II C++ Medium
0506 Relative Ranks Python Easy
0509 Fibonacci Number C++ Easy
0510 Inorder Successor in BST II C++ Medium
0513 Find Bottom Left Tree Value Python Medium
0514 Freedom Trail Python Hard
0515 Find Largest Value in Each Tree Row C++ Python Medium
0516 Longest Palindromic Subsequence C++ Go Medium
0518 Coin Change II C++ Medium
0520 Detect Capital C++ Easy
0522 Student Attendance Record II C++ Python Hard
0523 Continuous Subarray Sum C++ Python Medium
0525 Contiguous Array Python Medium
0527 Word Abbreviation C++ Hard
0528 Random Pick with Weight C++ Python Medium
0529 Minesweeper C++ Medium
0530 Minimum Absolute Difference in BST C++ Java Easy
0531 Lonely Pixel I C++ Medium
0535 Encode and Decode TinyURL C++ Medium
0538 Convert BST to Greater Tree C++ Medium
0539 Minimum Time Difference Python Medium
0540 Single Element in a Sorted Array C++ Medium
0541 Reverse String II C++ Easy
0542 01 Matrix C++ Medium
0543 Diameter of Binary Tree C++ Python Easy
0545 Boundary of Binary Tree C++ Medium
0546 Remove Boxes C++ Hard
0547 Number of Provinces C++ Python Go Java Medium
0549 Binary Tree Longest Consecutive Sequence II C++ Medium
0556 Next Greater Element III C++ Python Medium
0557 Reverse Words in a String III C++ Easy
0560 Subarray Sum Equals K C++ Python Medium
0562 Longest Line of Consecutive One in Matrix C++ Medium
0563 Binary Tree Tilt C++ Easy
0564 Find the Closest Palindrome Python Hard
0566 Reshape the Matrix C++ Easy
0567 Permutation in String C++ Python Medium
0568 Maximum Vacation Days C++ Hard
0572 Subtree of Another Tree C++ Easy
0573 Squirrel Simulation C++ Medium
0576 Out of Boundary Paths C++ Go Medium
0581 Shortest Unsorted Continuous Subarray C++ Medium
0582 Kill Process C++ Medium
0583 Delete Operation for Two Strings C++ Medium
0587 Erect the Fence C++ Hard
0588 Design In-Memory File System C++ Hard
0589 N-ary Tree Preorder Traversal C++ Easy
0590 N-ary Tree Postorder Traversal Python Easy
0592 Fraction Addition and Subtraction Python Medium
0600 Non-negative Integers without Consecutive Ones C++ Hard
0605 Can Place Flowers C++ Python Java Easy
0606 Construct String from Binary Tree C++ Easy
0609 Find Duplicate File in System C++ Medium
0617 Merge Two Binary Trees C++ Easy
0621 Task Scheduler C++ Python Medium
0622 Design Circular Queue C++ Medium
0623 Add One Row to Tree C++ Python Medium
0624 Maximum Distance in Arrays C++ Medium
0629 K Inverse Pairs Array C++ Python Hard
0630 Course Schedule III C++ Hard
0632 Smallest Range Covering Elements from K Lists C++ Python Hard
0633 Sum of Square Numbers C++ Python Medium
0634 Find the Derangement of An Array C++ Medium
0636 Exclusive Time of Functions Python Medium
0637 Average of Levels in Binary Tree C++ Easy
0641 Design Circular Deque C++ Python Medium
0642 Design Search Autocomplete System C++ Hard
0643 Maximum Average Subarray I C++ Python Go Java Easy
0645 Set Mismatch C++ Python Go Easy
0646 Maximum Length of Pair Chain C++ Medium
0647 Palindromic Substrings C++ Python Medium
0648 Replace Words Python Medium
0649 Dota2 Senate C++ Python Go Java Medium
0650 2 Keys Keyboard C++ Python Medium
0651 4 Keys Keyboard C++ Medium
0652 Find Duplicate Subtrees C++ Medium
0653 Two Sum IV - Input is a BST C++ Easy
0656 Coin Path C++ Hard
0658 Find K Closest Elements C++ Medium
0659 Split Array into Consecutive Subsequences C++ Medium
0661 Image Smoother C++ Easy
0662 Maximum Width of Binary Tree C++ Medium
0664 Strange Printer C++ Hard
0665 Non-decreasing Array C++ Medium
0666 Path Sum IV C++ Python Medium
0669 Trim a Binary Search Tree C++ Medium
0670 Maximum Swap C++ Python Medium
0673 Number of Longest Increasing Subsequence C++ Medium
0678 Valid Parenthesis String C++ Pyehon Medium
0680 Valid Palindrome II C++ Python Easy
0682 Baseball Game C++ Easy
0684 Redundant Connection C++ Python Medium
0688 Knight Probability in Chessboard C++ Hard
0689 Maximum Sum of 3 Non-Overlapping Subarrays Python Hard
0691 Stickers to Spell Word C++ Python Hard
0692 Top K Frequent Words C++ Medium
0694 Number of Distinct Islands C++ Medium
0695 Max Area of Island C++ Medium
0696 Count Binary Substrings C++ Easy
0698 Partition to K Equal Sum Subsets C++ Medium
0700 Search in a Binary Search Tree C++ Python Java Easy
0701 Insert into a Binary Search Tree C++ Medium
0702 Search in a Sorted Array of Unknown Size C++ Medium
0703 Kth Largest Element in a Stream C++ Easy
0704 Binary Search C++ Easy
0705 Design HashSet C++ Easy
0706 Design HashMap C++ Easy
0707 Design Linked List C++ Medium
0708 Insert into a Sorted Circular Linked List Python Medium
0709 To Lower Case C++ Easy
0712 Minimum ASCII Delete Sum for Two Strings C++ Medium
0713 Subarray Product Less Than K C++ Python Medium
0714 Best Time to Buy and Sell Stock with Transaction Fee C++ Python Medium
0715 Range Module C++ Hard
0716 Max Stack C++ Hard
0718 Maximum Length of Repeated Subarray C++ Medium
0719 Find K-th Smallest Pair Distance C++ Hard
0721 Accounts Merge C++ Medium
0723 Candy Crush C++ Medium
0724 Find Pivot Index C++ Python Java Easy
0725 Split Linked List in Parts C++ Python Medium
0726 Number of Atoms Python Hard
0727 Minimum Window Subsequence C++ Hard
0729 My Calendar I C++ Java Medium
0732 My Calendar III C++ Hard
0733 Flood Fill C++ Easy
0734 Sentence Similarity C++ Easy
0735 Asteroid Collision C++ Python Go Java Medium
0739 Daily Temperatures C++ Python Medium
0740 Delete and Earn C++ Medium
0741 Cherry Pickup C++ Hard
0743 Network Delay Time C++ Medium
0744 Find Smallest Letter Greater Than Target C++ Java Easy
0745 Prefix and Suffix Search C++ Hard
0746 Min Cost Climbing Stairs C++ Python Easy
0750 Number Of Corner Rectangles C++ Medium
0751 IP to CIDR C++ Medium
0752 Open the Lock C++ Python Medium
0759 Employee Free Time C++ Hard
0760 Find Anagram Mappings C++ Easy
0763 Partition Labels C++ Medium
0766 Toeplitz Matrix C++ Easy
0767 Reorganize String C++ Medium
0769 Max Chunks To Make Sorted Python Medium
0770 Basic Calculator IV Python Hard
0772 Basic Calculator III C++ Python Hard
0773 Sliding Puzzle Python Hard
0779 K-th Symbol in Grammar C++ Medium
0780 Reaching Points C++ Hard
0783 Minimum Distance Between BST Nodes C++ Easy
0784 Letter Case Permutation C++ Medium
0785 Is Graph Bipartite? C++ Medium
0786 K-th Smallest Prime Fraction Python Medium
0787 Cheapest Flights Within K Stops C++ Python Medium
0790 Domino and Tromino Tiling C++ Python Medium
0791 Custom Sort String Python Medium
0792 Number of Matching Subsequences C++ Medium
0796 Rotate String Python Easy
0797 All Paths From Source to Target C++ Medium
0800 Similar RGB Color C++ Easy
0802 Find Eventual Safe States C++ Medium
0804 Unique Morse Code Words C++ Easy
0808 Soup Servings C++ Medium
0814 Binary Tree Pruning C++ Medium
0815 Bus Routes C++ Hard
0820 Short Encoding of Words C++ Medium
0823 Binary Trees With Factors C++ Medium
0824 Goat Latin Python Easy
0826 Most Profit Assigning Work Python Medium
0827 Making A Large Island C++ Python Hard
0828 Count Unique Characters of All Substrings of a Given String C++ Hard
0834 Sum of Distances in Tree C++ Python Hard
0835 Image Overlap C++ Medium
0837 New 21 Game C++ Medium
0838 Push Dominoes C++ Medium
0839 Similar String Groups C++ Hard
0840 Magic Squares In Grid Python Medium
0841 Keys and Rooms C++ Python Go Medium
0843 Guess the Word C++ Hard
0844 Backspace String Compare C++ Easy
0846 Hand of Straights Python Medium
0847 Shortest Path Visiting All Nodes C++ Hard
0852 Peak Index in a Mountain Array C++ Easy
0853 Car Fleet C++ Medium
0856 Score of Parentheses C++ Python Medium
0857 Minimum Cost to Hire K Workers Python Hard
0858 Mirror Reflection C++ Medium
0859 Buddy Strings C++ Easy
0860 Lemonade Change Python Easy
0861 Score After Flipping Matrix Python Medium
0862 Shortest Subarray with Sum at Least K C++ Hard
0863 All Nodes Distance K in Binary Tree C++ Medium
0864 Shortest Path to Get All Keys C++ Hard
0867 Transpose Matrix C++ Python Easy
0869 Reordered Power of 2 C++ Medium
0871 Minimum Number of Refueling Stops C++ Hard
0872 Leaf-Similar Trees C++ Python Java Easy
0874 Walking Robot Simulation Python Medium
0875 Koko Eating Bananas C++ Python Medium
0876 Middle of the Linked List C++ Python Easy
0877 Stone Game C++ Medium
0879 Profitable Schemes C++ Hard
0880 Decoded String at Index C++ Medium
0881 Boats to Save People C++ Python Medium
0884 Uncommon Words from Two Sentences Python Java Kotlin Easy
0885 Spiral Matrix III Python Medium
0886 Possible Bipartition C++ Medium
0887 Super Egg Drop C++ Hard
0890 Find and Replace Pattern C++ Medium
0894 All Possible Full Binary Trees C++ Medium
0896 Monotonic Array C++ Easy
0897 Increasing Order Search Tree C++ Easy
0899 Orderly Queue C++ Hard
0901 Online Stock Span C++ Python Go Medium
0902 Numbers At Most N Given Digit Set C++ Hard
0904 Fruit Into Baskets C++ Medium
0905 Sort Array By Parity C++ Easy
0907 Sum of Subarray Minimums C++ Python Go Medium
0909 Snakes and Ladders C++ Medium
0910 Smallest Range II C++ Medium
0912 Sort an Array C++ Python Medium
0916 Word Subsets C++ Python Rust Medium
0918 Maximum Sum Circular Subarray C++ Medium
0920 Number of Music Playlists C++ Hard
0921 Minimum Add to Make Parentheses Valid C++ Python Medium
0923 3Sum With Multiplicity C++ Medium
0926 Flip String to Monotone Increasing C++ Medium
0930 Binary Subarrays With Sum Python Medium
0931 Minimum Falling Path Sum C++ Python Go Medium
0933 Number of Recent Calls C++ Python Java Easy
0934 Shortest Bridge C++ Medium
0935 Knight Dialer C++ Medium
0936 Stamping The Sequence C++ Hard
0937 Reorder Data in Log Files C++ Medium
0938 Range Sum of BST C++ Python Easy
0939 Minimum Area Rectangle Python Medium
0944 Delete Columns to Make Sorted C++ Easy
0945 Minimum Increment to Make Array Unique Python Medium
0946 Validate Stack Sequences C++ Medium
0947 Most Stones Removed with Same Row or Column C++ Python Medium
0948 Bag of Tokens C++ Python Medium
0950 Reveal Cards In Increasing Order Python Medium
0951 Flip Equivalent Binary Trees Python Medium
0953 Verifying an Alien Dictionary C++ Easy
0956 Tallest Billboard C++ Hard
0958 Check Completeness of a Binary Tree C++ Medium
0959 Regions Cut By Slashes Python Medium
0961 N-Repeated Element in Size 2N Array C++ Easy
0962 Maximum Width Ramp Python Medium
0967 Numbers With Same Consecutive Differences C++ Medium
0968 Binary Tree Cameras C++ Hard
0973 K Closest Points to Origin C++ Python Java Kotlin Medium
0974 Subarray Sums Divisible by K C++ Python Medium
0976 Largest Perimeter Triangle C++ Easy
0977 Squares of a Sorted Array C++ Python Easy
0979 Distribute Coins in Binary Tree Python Medium
0980 Unique Paths III C++ Hard
0981 Time Based Key-Value Store C++ Medium
0983 Minimum Cost For Tickets C++ Python Medium
0985 Sum of Even Numbers After Queries C++ Medium
0986 Interval List Intersections C++ Medium
0987 Vertical Order Traversal of a Binary Tree C++ Hard
0988 Smallest String Starting From Leaf Python Medium
0989 Add to Array-Form of Integer C++ Easy
0990 Satisfiability of Equality Equations C++ Medium
0992 Subarrays with K Different Integers C++ Python Hard
0994 Rotting Oranges C++ Python Medium
0995 Minimum Number of K Consecutive Bit Flips C++ Python Hard
0997 Find the Town Judge C++ Python Easy
1002 Find Common Characters Python Easy
1004 Max Consecutive Ones III C++ Python Go Java Medium
1008 Construct Binary Search Tree from Preorder Traversal C++ Medium
1010 Pairs of Songs With Total Durations Divisible by 60 C++ Python Medium
1011 Capacity To Ship Packages Within D Days C++ Medium
1012 Numbers With Repeated Digits C++ Hard
1014 Best Sightseeing Pair C++ Python Medium
1020 Number of Enclaves C++ Medium
1026 Maximum Difference Between Node and Ancestor C++ Python Medium
1027 Longest Arithmetic Subsequence C++ Medium
1029 Two City Scheduling C++ Medium
1035 Uncrossed Lines C++ Medium
1038 Binary Search Tree to Greater Sum Tree Python Medium
1043 Partition Array for Maximum Sum C++ Python Medium
1044 Longest Duplicate Substring C++ Hard
1045 Customers Who Bought All Products SQL Medium
1046 Last Stone Weight C++ Easy
1047 Remove All Adjacent Duplicates In String C++ Easy
1048 Longest String Chain C++ Medium
1049 Last Stone Weight II C++ Medium
1051 Height Checker Python Easy
1052 Grumpy Bookstore Owner Python Medium
1055 Shortest Way to Form String C++ Medium
1056 Confusing Number C++ Easy
1057 Campus Bikes C++ Medium
1059 All Paths from Source Lead to Destination C++ Medium
1060 Missing Element in Sorted Array C++ Medium
1061 Lexicographically Smallest Equivalent String C++ Medium
1062 Longest Repeating Substring C++ Medium
1065 Index Pairs of a String C++ Easy
1066 Campus Bikes II C++ Python Medium
1067 Digit Count in Range C++ Hard
1068 Product Sales Analysis I SQL Easy
1069 Product Sales Analysis II SQL Easy
1070 Product Sales Analysis III SQL Medium
1071 Greatest Common Divisor of Strings C++ Python Java Easy
1072 Flip Columns For Maximum Number of Equal Rows Python Medium
1073 Adding Two Negabinary Numbers C++ Medium
1074 Number of Submatrices That Sum to Target C++ Python Hard
1087 Brace Expansion C++ Medium
1091 Shortest Path in Binary Matrix C++ Python Medium
1092 Shortest Common Supersequence C++ Hard
1095 Find in Mountain Array C++ Hard
1099 Two Sum Less Than K C++ Python Easy
1101 The Earliest Moment When Everyone Become Friends C++ Medium
1105 Filling Bookcase Shelves Python Medium
1106 Parsing A Boolean Expression Python Hard
1110 Delete Nodes And Return Forest Python Medium
1119 Remove Vowels from a String Python Easy
1120 Maximum Average Subtree C++ Medium
1122 Relative Sort Array Python Easy
1125 Smallest Sufficient Team C++ Hard
1129 Shortest Path with Alternating Colors C++ Medium
1130 Minimum Cost Tree From Leaf Values C++ Medium
1137 N-th Tribonacci Number C++ Python Go Easy
1136 Parallel Courses C++ Medium
1140 Stone Game II C++ Python Medium
1143 Longest Common Subsequence C++ Python Medium
1146 Snapshot Array C++ Java Medium
1150 Check If a Number Is Majority Element in a Sorted Array C++ Java Easy
1151 Minimum Swaps to Group All 1's Together C++ Medium
1152 Analyze User Website Visit Pattern C++ Medium
1155 Number of Dice Rolls With Target Sum C++ Medium
1160 Find Words That Can Be Formed by Characters C++ Python Easy
1161 Maximum Level Sum of a Binary Tree C++ Python Go Java Medium
1162 As Far from Land as Possible C++ Medium
1165 Single-Row Keyboard C++ Python Go Easy
1166 Design File System C++ Medium
1167 Minimum Cost to Connect Sticks C++ Python Medium
1171 Remove Zero Sum Consecutive Nodes from Linked List Python Medium
1182 Shortest Distance to Target Color C++ Medium
1183 Maximum Number of Ones C++ Hard
1187 Make Array Strictly Increasing C++ Hard
1190 Reverse Substrings Between Each Pair of Parentheses Python Medium
1192 Critical Connections in a Netork C++ Hard
1197 Minimum Knight Moves C++ Medium
1198 Find Smallest Common Element in All Rows C++ Medium
1199 Minimum Time to Build Blocks C++ Hard
1202 Smallest String With Swaps C++ Medium
1203 Sort Items by Groups Respecting Dependencies C++ Hard
1207 Unique Number of Occurrences C++ Python Go Java Easy
1208 Get Equal Substrings Within Budget Python Medium
1209 Remove All Adjacent Duplicates in String II C++ Medium
1214 Two Sum BSTs C++ Medium
1216 Valid Palindrome III C++ Python Hard
1217 Minimum Cost to Move Chips to The Same Position C++ Easy
1218 Longest Arithmetic Subsequence of Given Difference C++ Medium
1219 Path with Maximum Gold Python Medium
1220 Count Vowels Permutation C++ Hard
1229 Meeting Scheduler C++ Medium
1230 Toss Strange Coins C++ Medium
1231 Divide Chocolate C++ Hard
1232 Check If It Is a Straight Line C++ Java Easy
1233 Remove Sub-Folders from the Filesystem C++ Python Medium
1235 Maximum Profit in Job Scheduling C++ Python Hard
1236 Web Crawler C++ Medium
1237 Find Positive Integer Solution for a Given Equation C++ Medium
1238 Circular Permutation in Binary Representation C++ Medium
1239 Maximum Length of a Concatenated String with Unique Characters C++ Go Medium
1243 Array Transformation C++ Easy
1244 Design A Leaderboard C++ Medium
1245 Tree Diameter C++ Python Medium
1246 Palindrome Removal C++ Hard
1247 Minimum Swaps to Make Strings Equal C++ Medium
1248 Count Number of Nice Subarrays C++ Python Medium
1249 Minimum Remove to Make Valid Parentheses C++ Python Medium
1250 Check If It Is a Good Array C++ Hard
1254 Number of Closed Islands C++ Medium
1255 Maximum Score Words Formed by Letters Python Hard
1259 Handshakes That Don't Cross C++ Hard
1260 Shift 2D Grid C++ Easy
1266 Minimum Time Visiting All Points C++ Python Easy
1268 Search Suggestions System C++ Python Medium
1269 Number of Ways to Stay in the Same Place After Some Steps C++ Hard
1272 Remove Interval C++ Python Medium
1273 Delete Tree Nodes C++ Medium
1277 Count Square Submatrices with All Ones Python Medium
1281 Subtract the Product and Sum of Digits of an Integer C++ Easy
1282 Group the People Given the Group Size They Belong To C++ Medium
1283 Find the Smallest Divisor Given a Threshold C++ Medium
1287 Element Appearing More Than 25% In Sorted Array C++ Easy
1289 Minimum Falling Path Sum II Python Hard
1290 Convert Binary Number in a Linked List to Integer C++ Easy
1291 Sequential Digits Python Medium
1293 Shortest Path in a Grid with Obstacles Elimination C++ Hard
1302 Deepest Leaves Sum C++ Medium
1306 Jump Game III C++ Medium
1309 Decrypt String from Alphabet to Integer Mapping C++ Easy
1310 XOR Queries of a Subarray Python Medium
1312 Minimum Insertion Steps to Make a String Palindrome C++ Hard
1314 Matrix Block Sum C++ Medium
1318 Minimum Flips to Make a OR b Equal to c C++ Python Java Medium
1319 Number of Operations to Make Network Connected C++ Medium
1323 Maximum 69 Number C++ Easy
1325 Delete Leaves With a Given Value C++ Python Medium
1326 Minimum Number of Taps to Open to Water a Garden C++ Hard
1328 Break a Palindrome C++ Medium
1329 Sort the Matrix Diagonally C++ Medium
1331 Rank Transform of an Array Python Easy
1332 Remove Palindromic Subsequences C++ Easy
1334 Find the City With the Smallest Number of Neighbors at a Threshold Distance Python Medium
1335 Minimum Difficulty of a Job Schedule C++ Python Hard
1337 The K Weakest Rows in a Matrix C++ Easy
1338 Reduce Array Size to The Half C++ Medium
1339 Maximum Product of Splitted Binary Tree C++ Medium
1342 Number of Steps to Reduce a Number to Zero C++ Easy
1345 Jump Game IV C++ Hard
1346 Check If N and Its Double Exist C++ Python Easy
1347 Minimum Number of Steps to Make Two Strings Anagram C++ Python Go Medium
1351 Count Negative Numbers in a Sorted Matrix C++ Java Easy
1354 Construct Target Array With Multiple Sums C++ Hard
1356 Sort Integers by The Number of 1 Bits C++ Easy
1359 Count All Valid Pickup and Delivery Options C++ Hard
1361 Validate Binary Tree Nodes C++ Medium
1366 Rank Teams by Votes C++ Medium
1367 Linked List in Binary Tree Python Medium
1368 Minimum Cost to Make at Least One Valid Path in a Grid C++ Python Rust Hard
1371 Find the Longest Substring Containing Vowels in Even Counts Python Medium
1372 Longest ZigZag Path in a Binary Tree C++ Go Java Medium
1376 Time Needed to Inform All Employees C++ Java Medium
1379 Find a Corresponding Node of a Binary Tree in a Clone of That Tree C++ Medium
1380 Lucky Numbers in a Matrix C++ Python Easy
1381 Design a Stack With Increment Operation Python Medium
1382 Balance a Binary Search Tree Python Medium
1383 Maximum Performance of a Team C++ Hard
1385 Find the Distance Value Between Two Arrays C++ Easy
1396 Design Underground System C++ Medium
1402 Reducing Dishes C++ Hard
1404 Number of Steps to Reduce a Number in Binary Representation to One Python Medium
1405 Longest Happy String Python Medium
1406 Stone Game III C++ Hard
1408 String Matching in an Array Python Easy
1416 Restore The Array C++ Hard
1420 Build Array Where You Can Find The Maximum Exactly K Comparisons C++ Hard
1422 Maximum Score After Splitting a String C++ Python Easy
1423 Maximum Points You Can Obtain from Cards C++ Medium
1425 Constrained Subsequence Sum C++ Hard
1427 Perform String Shifts C++ Easy
1428 Leftmost Column with at Least a One C++ Python Medium
1431 Kids With the Greatest Number of Candies C++ Python Java Easy
1434 Number of Ways to Wear Different Hats to Each Other C++ Hard
1436 Destination City C++ Easy
1438 Longest Continuous Subarray With Absolute Diff Less Than or Equal to Limit C++ Python Medium
1440 Construct K Palindrome Strings Python Medium
1441 Build an Array With Stack Operations C++ Medium
1442 Count Triplets That Can Form Two Arrays of Equal XOR Python Medium
1443 Minimum Time to Collect All Apples in a Tree C++ Medium
1444 Number of Ways of Cutting a Pizza C++ Python Hard
1446 Consecutive Characters C++ Easy
1448 Count Good Nodes in Binary Tree C++ Python Go Java Medium
1455 Check If a Word Occurs As a Prefix of Any Word in a Sentence Python Easy
1456 Maximum Number of Vowels in a Substring of Given Length C++ Python Java Medium
1457 Pseudo-Palindromic Paths in a Binary Tree C++ Python Medium
1458 Max Dot Product of Two Subsequences C++ Hard
1460 Make Two Arrays Equal by Reversing Subarrays Python Easy
1461 Check If a String Contains All Binary Codes of Size K C++ Medium
1463 Cherry Pickup II C++ Python Hard
1464 Maximum Product of Two Elements in an Array C++ Easy
1465 Maximum Area of a Piece of Cake After Horizontal and Vertical Cuts C++ Medium
1466 Reorder Routes to Make All Paths Lead to the City Zero C++ Python Medium
1469 Find All The Lonely Nodes C++ Python Easy
1470 Shuffle the Array C++ Easy
1472 Design Browser History C++ Medium
1473 Paint House III C++ Hard
1475 Final Prices With a Special Discount in a Shop Python Easy
1478 Allocate Mailboxes C++ Hard
1480 Running Sum of 1d Array C++ Easy
1481 Least Number of Unique Integers after K Removals Python Medium
1482 Minimum Number of Days to Make m Bouquets Python Medium
1485 Clone Binary Tree With Random Pointer C++ Medium
1489 Find Critical and Pseudo-Critical Edges in Minimum Spanning Tree C++ Hard
1491 Average Salary Excluding the Minimum and Maximum Salary C++ Easy
1493 Longest Subarray of 1's After Deleting One Element C++ Python Go Java Medium
1496 Path Crossing C++ Easy
1497 Check If Array Pairs Are Divisible by k Python Java Medium
1498 Number of Subsequences That Satisfy the Given Sum Condition C++ Medium
1502 Can Make Arithmetic Progression From Sequence C++ Java Easy
1503 Last Moment Before All Ants Fall Out of a Plank C++ Medium
1508 Range Sum of Sorted Subarray Sums Python Medium
1509 Minimum Difference Between Largest and Smallest Value in Three Moves Python Medium
1510 Stone Game IV C++ Hard
1512 Number of Good Pairs C++ Easy
1514 Path with Maximum Probability C++ Python Medium
1518 Water Bottles Python Easy
1519 Number of Nodes in the Sub-Tree With the Same Label C++ Medium
1522 Diameter of N-Ary Tree C++ Medium
1523 Count Odd Numbers in an Interval Range C++ Easy
1530 Number of Good Leaf Nodes Pairs Python Medium
1531 String Compression II C++ Hard
1533 Find the Index of the Large Integer C++ Medium
1535 Find the Winner of an Array Game C++ Medium
1538 Guess the Majority in a Hidden Array C++ Medium
1539 Kth Missing Positive Number C++ Medium
1544 Make The String Great C++ Python Easy
1545 Find Kth Bit in Nth Binary String Python Medium
1547 Minimum Cost to Cut a Stick C++ Hard
1548 The Most Similar Path in a Graph C++ Hard
1550 Three Consecutive Odds Python Easy
1552 Magnetic Force Between Two Balls C++ Python Medium
1557 Minimum Number of Vertices to Reach All Nodes C++ Medium
1561 Maximum Number of Coins You Can Get C++ Medium
1564 Put Boxes Into the Warehouse I C++ Medium
1567 Maximum Length of Subarray With Positive Product C++ Medium
1568 Minimum Number of Days to Disconnect Island Python Hard
1569 Number of Ways to Reorder Array to Get Same BST C++ Hard
1570 Dot Product of Two Sparse Vectors C++ Python Medium
1572 Matrix Diagonal Sum C++ Easy
1574 Shortest Subarray to be Removed to Make Array Sorted Python Medium
1575 Count All Possible Routes C++ Hard
1578 Minimum Time to Make Rope Colorful C++ Medium
1579 Remove Max Number of Edges to Keep Graph Fully Traversable C++ Python Hard
1582 Special Positions in a Binary Matrix C++ Easy
1584 Min Cost to Connect All Points C++ Medium
1586 Binary Search Tree Iterator II C++ Medium
1588 Sum of All Odd Length Subarrays C++ Easy
1590 Make Sum Divisible by P Python Medium
1591 Strange Printer II C++ Hard
1593 Split a String Into the Max Number of Unique Substrings Python Medium
1597 Build Binary Expression Tree From Infix Expression C++ Hard
1598 Crawler Log Folder Python Easy
1601 Maximum Number of Achievable Transfer Requests C++ Hard
1602 Find Nearest Right Node in Binary Tree C++ Medium
1603 Design Parking System C++ Easy
1605 Find Valid Matrix Given Row and Column Sums Python Medium
1606 Find Servers That Handled Most Number of Requests C++ Hard
1608 Special Array With X Elements Greater Than or Equal X C++ Python Easy
1609 Even Odd Tree Python Medium
1611 Minimum One Bit Operations to Make Integers Zero C++ Python Hard
1614 Maximum Nesting Depth of the Parentheses Python Easy
1615 Maximal Network Rank C++ Medium
1624 Largest Substring Between Two Equal Characters C++ Python Easy
1626 Best Team With No Conflicts C++ Medium
1628 Design an Expression Tree With Evaluate Function C++ Medium
1630 Arithmetic Subarrays C++ Medium
1631 Path With Minimum Effort C++ Medium
1634 Add Two Polynomials Represented as Linked Lists C++ Medium
1636 Sort Array by Increasing Frequency Python Easy
1637 Widest Vertical Area Between Two Points Containing No Points C++ Medium
1639 Number of Ways to Form a Target String Given a Dictionary C++ Hard
1641 Count Sorted Vowel Strings C++ Medium
1642 Furthest Building You Can Reach C++ Python Medium
1644 Lowest Common Ancestor of a Binary Tree II C++ Python Medium
1647 Minimum Deletions to Make Character Frequencies Unique C++ Medium
1648 Sell Diminishing-Valued Colored Balls C++ Medium
1650 Lowest Common Ancestor of a Binary Tree III Python Medium
1652 Defuse the Bomb Python Easy
1653 Minimum Deletions to Make String Balanced Python Medium
1654 Minimum Jumps to Reach Home C++ Medium
1657 Determine if Two Strings Are Close C++ Python Go Java Medium
1658 Minimum Operations to Reduce X to Zero C++ Medium
1660 Correct a Binary Tree C++ Medium
1662 Check If Two String Arrays are Equivalent C++ Python Easy
1669 Merge In Between Linked Lists Python Medium
1671 Minimum Number of Removals to Make Mountain Array Python Hard
1672 Richest Customer Wealth C++ Easy
1675 Minimize Deviation in Array C++ Hard
1678 Goal Parser Interpretation C++ Easy
1679 Max Number of K-Sum Pairs C++ Python Go Java Medium
1680 Concatenation of Consecutive Binary Numbers C++ Medium
1682 Longest Palindromic Subsequence II C++ Medium
1684 Count the Number of Consistent Strings Python Easy
1685 Sum of Absolute Differences in a Sorted Array C++ Medium
1689 Partitioning Into Minimum Number Of Deci-Binary Numbers C++ Medium
1688 Count of Matches in Tournament C++ Python Easy
1692 Count Ways to Distribute Candies C++ Hard
1695 Maximum Erasure Value C++ Medium
1696 Jump Game VI C++ Medium
1697 Checking Existence of Edge Length Limited Paths C++ Hard
1698 Number of Distinct Substrings in a String C++ Medium
1700 Number of Students Unable to Eat Lunch Python Easy
1701 Average Waiting Time Python Medium
1704 Determine if String Halves Are Alike C++ Python Go Easy
1706 Where Will the Ball Fall C++ Medium
1710 Maximum Units on a Truck C++ Easy
1716 Calculate Money in Leetcode Bank C++ Easy
1717 Maximum Score From Removing Substrings Python Medium
1721 Swapping Nodes in a Linked List C++ Medium
1727 Largest Submatrix With Rearrangements C++ Medium
1730 Shortest Path to Get Food C++ Medium
1732 Find the Highest Altitude C++ Python Java Easy
1733 Minimum Number of People to Teach C++ Python Medium
1743 Restore the Array From Adjacent Pairs C++ Medium
1746 Maximum Subarray Sum After One Operation C++ Medium
1750 Minimum Length of String After Deleting Similar Ends Python Medium
1751 Maximum Number of Events That Can Be Attended II C++ Hard
1756 Design Most Recently Used Queue C++ Medium
1757 Recyclable and Low Fat Products SQL Easy
1758 Minimum Changes To Make Alternating Binary String C++ Easy
1759 Count Number of Homogenous Substrings C++ Medium
1760 Minimum Limit of Balls in a Bag C++ Python Medium
1762 Buildings With an Ocean View Python Medium
1768 Merge Strings Alternately C++ Python Java Easy
1769 Minimum Number of Operations to Move All Balls to Each Box Python Medium
1770 Maximum Score from Performing Multiplication Operations C++ Python Medium
1779 Find Nearest Point That Has the Same X or Y Coordinate C++ Easy
1790 Check if One String Swap Can Make Strings Equal C++ Easy
1791 Find Center of Star Graph Python Easy
1792 Maximum Average Pass Ratio Python Medium
1793 Maximum Score of a Good Subarray C++ Hard
1799 Maximize Score After N Operations C++ Hard
1802 Maximum Value at a Given Index in a Bounded Array C++ Java Medium
1804 Implement Trie II (Prefix Tree) C++ Medium
1813 Sentence Similarity III Python Medium
1814 Count Nice Pairs in an Array C++ Medium
1822 Sign of the Product of an Array C++ Easy
1823 Find the Winner of the Circular Game C++ Python Medium
1829 Maximum XOR for Each Query Python Medium
1832 Check if the Sentence Is Pangram C++ Easy
1833 Maximum Ice Cream Bars C++ Medium
1834 Single-Threaded CPU C++ Medium
1838 Frequency of the Most Frequent Element C++ Medium
1845 Seat Reservation Manager C++ Medium
1846 Maximum Element After Decreasing and Rearranging C++ Medium
1855 Maximum Distance Between a Pair of Values C++ Medium
1857 Largest Color Value in a Directed Graph C++ Hard
1858 Longest Word With All Prefixes C++ Medium
1861 Rotating the Box Python Medium
1868 Product of Two Run-Length Encoded Arrays C++ Python Medium
1863 Sum of All Subset XOR Totals Python Easy
1870 Minimum Speed to Arrive on Time C++ Medium
1874 Minimize Product Sum of Two Arrays C++ Medium
1877 Minimize Maximum Pair Sum in Array C++ Medium
1884 Egg Drop With 2 Eggs and N Floors C++ Medium
1885 Count Pairs in Two Arrays Python Medium
1887 Reduction Operations to Make the Array Elements Equal C++ Medium
1894 Find the Student that Will Replace the Chalk Python Medium
1895 Largest Magic Square C++ Medium
1897 Redistribute Characters to Make All Strings Equal C++ Easy
1901 Find a Peak Element II C++ Medium
1903 Largest Odd Number in String C++ Python Easy
1905 Count Sub Islands C++ Python Medium
1908 Game of Nim C++ Medium
1913 Maximum Product Difference Between Two Pairs C++ Easy
1915 Number of Wonderful Substrings Python Medium
1921 Eliminate Maximum Number of Monsters C++ Medium
1926 Nearest Exit from Entrance in Maze C++ Python Medium
1930 Unique Length-3 Palindromic Subsequences C++ Python Medium
1937 Maximum Number of Points with Cost Python Medium
1942 The Number of the Smallest Unoccupied Chair Python Medium
1945 Sum of Digits of String After Convert Python Easy
1957 Delete Characters to Make Fancy String Python Easy
1962 Remove Stones to Minimize the Total C++ Medium
1963 Minimum Number of Swaps to Make the String Balanced Python Medium
1964 Find the Longest Valid Obstacle Course at Each Position C++ Hard
1970 Last Day Where You Can Still Cross C++ Hard
1971 Find if Path Exists in Graph C++ Python Easy
1973 Count Nodes Equal to Sum of Descendants Python Medium
1975 Maximum Matrix Sum Python Medium
1980 Find Unique Binary String C++ Medium
1992 Find All Groups of Farmland Python Medium
1996 The Number of Weak Characters in the Game C++ Medium
2000 Reverse Prefix of Word Python Easy
2007 Find Original Array From Doubled Array C++ Medium
2009 Minimum Number of Operations to Make Array Continuous C++ Hard
2017 Grid Game Rust Medium
2022 Convert 1D Array Into 2D Array Python Easy
2024 Maximize the Confusion of an Exam C++ Medium
2028 Find Missing Observations Python Medium
2037 Minimum Number of Moves to Seat Everyone Python Easy
2038 Remove Colored Pieces if Both Neighbors are the Same Color C++ Medium
2044 Count Number of Maximum Bitwise-OR Subsets Python Medium
2046 Sort Linked List Already Sorted Using Absolute Values C++ Medium
2050 Parallel Courses III C++ Hard
2053 Kth Distinct String in an Array Python Easy
2054 Two Best Non-Overlapping Events Python Medium
2058 Find the Minimum and Maximum Number of Nodes Between Critical Points Python Medium
2064 Minimized Maximum of Products Distributed to Any Store Python Medium
2070 Most Beautiful Item for Each Query Python Medium
2073 Time Needed to Buy Tickets Python Easy
2090 K Radius Subarray Averages C++ Python Medium
2092 Find All People With Secret Python Hard
2095 Delete the Middle Node of a Linked List C++ Python Java Medium
2096 Step-By-Step Directions From a Binary Tree Node to Another Python Medium
2101 Detonate the Maximum Bombs C++ Medium
2102 Sequentially Ordinal Rank Tracker C++ Hard
2104 Sum of Subarray Ranges C++ Medium
2108 Find First Palindromic String in the Array Python Easy
2116 Check if a Parentheses String Can Be Valid Python Rust Medium
2125 Number of Laser Beams in a Bank Python Medium
2130 Maximum Twin Sum of a Linked List C++ Python Java Medium
2131 Longest Palindrome by Concatenating Two Letter Words C++ Medium
2134 Minimum Swaps to Group All 1's Together II Python Medium
2136 Earliest Possible Day of Full Bloom C++ Hard
2140 Solving Questions With Brainpower C++ Medium
2141 Maximum Running Time of N Computers C++ Hard
2147 Number of Ways to Divide a Long Corridor C++ Hard
2149 Rearrange Array Elements by Sign Python Medium
2181 Merge Nodes in Between Zeros Python Medium
2182 Construct String With Repeat Limit Python Medium
2185 Counting Words With a Given Prefix Rust Easy
2187 Minimum Time to Complete Trips C++ Medium
2190 Adding Spaces to a String Python Medium
2191 Sort the Jumbled Numbers Python Medium
2192 All Ancestors of a Node in a Directed Acyclic Graph Python Medium
2193 Minimum Number of Moves to Make Palindrome C++ Hard
2196 Create Binary Tree From Descriptions Python Medium
2210 Count Hills and Valleys in an Array C++ Easy
2211 Count Collisions on a Road C++ Medium
2212 Maximum Points in an Archery Competition C++ Medium
2213 Longest Substring of One Repeating Character C++ Hard
2214 Minimum Health to Beat Game C++ Medium
2215 Find the Difference of Two Arrays C++ Python Java Easy
2216 Minimum Deletions to Make Array Beautiful C++ Medium
2217 Find Palindrome With Fixed Length C++ Medium
2218 Maximum Value of K Coins From Piles C++ Hard
2220 Minimum Bit Flips to Convert Number Python Easy
2221 Find Triangular Sum of an Array C++ Medium
2224 Minimum Number of Operations to Convert Time C++ Easy
2225 Find Players With Zero or One Losses C++ Python Go Medium
2226 Maximum Candies Allocated to K Children C++ Medium
2227 Encrypt and Decrypt Strings C++ Python Hard
2234 Maximum Total Beauty of the Gardens C++ Medium
2243 Calculate Digit Sum of a String C++ Easy
2244 Minimum Rounds to Complete All Tasks C++ Medium
2245 Maximum Trailing Zeros in a Cornered Path C++ Medium
2246 Longest Path With Different Adjacent Characters C++ Hard
2248 Intersection of Multiple Arrays C++ Easy
2249 Count Lattice Points Inside a Circle C++ Medium
2250 Count Number of Rectangles Containing Each Point C++ Medium
2251 Number of Flowers in Full Bloom C++ Hard
2255 Count Prefixes of a Given String C++ Easy
2256 Minimum Average Difference C++ Medium
2257 Count Unguarded Cells in the Grid C++ Medium
2258 Escape the Spreading Fire C++ Hard
2259 Remove Digit From Number to Maximize Result C++ Easy
2260 Minimum Consecutive Cards to Pick Up C++ Medium
2261 K Divisible Elements Subarrays C++ Medium
2262 Total Appeal of A String C++ Hard
2264 Largest 3-Same-Digit Number in String C++ Python Easy
2265 Count Nodes Equal to Average of Subtree C++ Medium
2266 Count Number of Texts C++ Medium
2267 Check if There Is a Valid Parentheses String Path C++ Hard
2269 Find the K-Beauty of a Number C++ Easy
2270 Number of Ways to Split Array C++ Python Medium
2271 Maximum White Tiles Covered by a Carpet C++ Medium
2272 Substring With Largest Variance C++ Hard
2273 Find Resultant Array After Removing Anagrams C++ Easy
2274 Maximum Consecutive Floors Without Special Floors C++ Medium
2275 Largest Combination With Bitwise AND Greater Than Zero C++ Python Medium
2276 Count Integers in Intervals C++ Hard
2278 Percentage of Letter in String C++ Easy
2279 Maximum Bags With Full Capacity of Rocks C++ Medium
2280 Minimum Lines to Represent a Line Chart C++ Medium
2281 Sum of Total Strength of Wizards C++ Hard
2283 Check if Number Has Equal Digit Count and Digit Value C++ Easy
2284 Sender With Largest Word Count C++ Medium
2285 Maximum Total Importance of Roads C++ Python Medium
2286 Booking Concert Tickets in Groups C++ Hard
2287 Rearrange Characters to Make Target String C++ Easy
2288 Apply Discount to Prices C++ Medium
2289 Steps to Make Array Non-decreasing C++ Medium
2290 Minimum Obstacle Removal to Reach Corner C++ Hard
2293 Min Max Game C++ Easy
2294 Partition Array Such That Maximum Difference Is K C++ Medium
2295 Replace Elements in an Array C++ Hard
2296 Design a Text Editor C++ Hard
2299 Strong Password Checker II C++ Easy
2300 Successful Pairs of Spells and Potions C++ Python Medium
2301 Match Substring After Replacement C++ Hard
2302 Count Subarrays With Score Less Than K C++ Hard
2303 Calculate Amount Paid in Taxes C++ Easy
2304 Minimum Path Cost in a Grid C++ Medium
2305 Fair Distribution of Cookies C++ Medium
2306 Naming a Company C++ Hard
2309 Greatest English Letter in Upper and Lower Case C++ Easy
2310 Sum of Numbers With Units Digit K C++ Medium
2311 Longest Binary Subsequence Less Than or Equal to K C++ Medium
2312 Selling Pieces of Wood C++ Hard
2315 Count Asterisks C++ Easy
2316 Count Unreachable Pairs of Nodes in an Undirected Graph C++ Medium
2317 Maximum XOR After Operations C++ Medium
2318 Number of Distinct Roll Sequences C++ Hard
2325 Decode the Message C++ Easy
2326 Spiral Matrix IV C++ Python Medium
2327 Number of People Aware of a Secret C++ Medium
2328 Number of Increasing Paths in a Grid C++ Hard
2331 Evaluate Boolean Binary Tree Python Easy
2335 Minimum Amount of Time to Fill Cups C++ Easy
2336 Smallest Number in Infinite Set C++ Python Go Medium
2337 Move Pieces to Obtain a String C++ Medium
2338 Count the Number of Ideal Arrays C++ Hard
2348 Number of Zero-Filled Subarrays C++ Medium
2352 Equal Row and Column Pairs C++ Python Go Java Medium
2353 Design a Food Rating System C++ Medium
2355 Maximum Number of Books You Can Take C++ Hard
2359 Find Closest Node to Given Two Nodes C++ Medium
2360 Longest Cycle in a Graph C++ Hard
2361 Minimum Costs Using the Train Line C++ Hard
2366 Minimum Replacements to Sort the Array C++ Hard
2369 Check if There is a Valid Partition For The Array C++ Medium
2370 Longest Ideal Subsequence Python Medium
2373 Largest Local Values in a Matrix C++ Python Easy
2374 Node With Highest Edge Score C++ Medium
2375 Construct Smallest Number From DI String C++ Medium
2376 Count Special Integers C++ Hard
2379 Minimum Recolors to Get K Consecutive Black Blocks C++ Easy
2380 Time Needed to Rearrange a Binary String C++ Medium
2381 Shifting Letters II C++ Python Medium
2382 Maximum Segment Sum After Removals C++ Hard
2383 Minimum Hours of Training to Win a Competition C++ Easy
2384 Largest Palindromic Number C++ Medium
2385 Amount of Time for Binary Tree to Be Infected C++ Python Medium
2386 Find the K-Sum of an Array C++ Hard
2389 Longest Subsequence With Limited Sum C++ Easy
2390 Removing Stars From a String C++ Python Java Medium
2391 Minimum Amount of Time to Collect Garbage C++ Medium
2392 Build a Matrix With Conditions Python Hard
2395 Find Subarrays With Equal Sum C++ Easy
2396 Strictly Palindromic Number C++ Medium
2397 Maximum Rows Covered by Columns C++ Medium
2398 Maximum Number of Robots Within Budget C++ Hard
2402 meeting-rooms-iii Python Hard
2405 Optimal Partition of String C++ Medium
2406 Divide Intervals Into Minimum Number of Groups Python Medium
2413 Smallest Even Multiple C++ Easy
2414 Length of the Longest Alphabetical Continuous Substring C++ Medium
2415 Reverse Odd Levels of Binary Tree C++ Python Medium
2416 Sum of Prefix Scores of Strings C++ Java Hard
2418 Sort the People Python Easy
2419 Longest Subarray With Maximum Bitwise AND Python Medium
2421 Number of Good Paths C++ Hard
2423 Remove Letter To Equalize Frequency C++ Easy
2424 Longest Uploaded Prefix C++ Medium
2425 Bitwise XOR of All Pairings C++ Python Rust Medium
2426 Number of Pairs Satisfying Inequality C++ Hard
2427 Number of Common Factors C++ Easy
2428 Maximum Sum of an Hourglass C++ Medium
2429 Minimize XOR C++ Python Rust Medium
2430 Maximum Deletions on a String C++ Hard
2432 The Employee That Worked on the Longest Task C++ Easy
2433 Find The Original Array of Prefix Xor C++ Medium
2434 Using a Robot to Print the Lexicographically Smallest String C++ Medium
2435 Paths in Matrix Whose Sum Is Divisible by K C++ Hard
2437 Number of Valid Clock Times C++ Easy
2438 Range Product Queries of Powers C++ Medium
2439 Minimize Maximum of Array C++ Medium
2440 Create Components With Same Value C++ Hard
2441 Largest Positive Integer That Exists With Its Negative Python Easy
2444 Count Subarrays With Fixed Bounds C++ Python Hard
2446 Determine if Two Events Have Conflict C++ Easy
2447 Number of Subarrays With GCD Equal to K C++ Medium
2448 Minimum Cost to Make Array Equal C++ Hard
2449 Minimum Number of Operations to Make Arrays Similar C++ Hard
2458 Height of Binary Tree After Subtree Removal Queries Python Hard
2461 Maximum Sum of Distinct Subarrays With Length K Python Medium
2462 Total Cost to Hire K Workers C++ Python Medium
2463 Minimum Total Distance Traveled Python Hard
2466 Count Ways To Build Good Strings C++ Medium
2471 Minimum Number of Operations to Sort a Binary Tree by Level Python Medium
2477 Minimum Fuel Cost to Report to the Capital C++ Medium
2482 Difference Between Ones and Zeros in Row and Column C++ Medium
2483 Minimum Penalty for a Shop C++ Medium
2485 Find the Pivot Integer Python Easy
2486 Append Characters to String to Make Subsequence Python Medium
2487 Remove Nodes From Linked List Python Medium
2490 Circular Sentence Python Easy
2491 Divide Players Into Teams of Equal Skill Python Medium
2492 Minimum Score of a Path Between Two Cities C++ Medium
2510 Longest Square Streak in an Array Python Medium
2516 Take K of Each Character From Left and Right Python Medium
2530 Maximal Score After Applying K Operations Python Medium
2533 Number of Good Binary Strings C++ Medium
2540 Minimum Common Value Python Easy
2542 Maximum Subsequence Score C++ Python Go Medium
2551 Put Marbles in Bags C++ Hard
2554 Maximum Number of Integers to Choose From a Range I Python Medium
2558 Take Gifts From the Richest Pile Python Easy
2559 Count Vowel Strings in Ranges Python Medium
2582 Pass the Pillow Python Easy
2583 Kth Largest Sum in a Binary Tree Python Medium
2593 Find Score of an Array After Marking All Elements Python Medium
2597 The Number of Beautiful Subsets Python Medium
2601 Prime Subtraction Operation Python Medium
2610 Convert an Array Into a 2D Array With Conditions C++ Python Medium
2616 Minimize the Maximum Difference of Pairs C++ Medium
2641 Cousins in Binary Tree II Python Medium
2642 Design Graph With Shortest Path Calculator C++ Hard
2657 Find the Prefix Common Array of Two Arrays Python Rust Medium
2661 First Completely Painted Row or Column Rust Medium
2667 Create Hello World Function JavaScript Easy
2678 Number of Senior Citizens Python Easy
2683 Neighboring Bitwise XOR Python Rust Medium
2684 Maximum Number of Moves in a Grid Python Medium
2696 Minimum String Length After Removing Substrings Python Easy
2699 Modify Graph Edge Weights Python Hard
2706 Buy Two Chocolates C++ Easy
2707 Extra Characters in a String C++ Java Medium
2709 Greatest Common Divisor Traversal Python Hard
2742 Painting the Walls C++ Hard
2751 Robot Collisions Python Hard
2762 Continuous Subarrays Python Medium
2779 Maximum Beauty of an Array After Applying Operation Python Medium
2785 Sort Vowels in a String C++ Medium
2807 Insert Greatest Common Divisors in Linked List Python Medium
2812 Find the Safest Path in a Grid C++ Medium
2816 Double a Number Represented as a Linked List Python Medium
2825 Make String a Subsequence Using Cyclic Increments Python Medium
2849 Determine if a Cell Is Reachable at a Given Time C++ Medium
2864 Maximum Odd Binary Number Python Easy
2870 Minimum Number of Operations to Make Array Empty C++ Python Medium
2914 Minimum Number of Changes to Make Binary String Beautiful Python Medium
2924 Find Champion II Python Medium
2958 Length of Longest Subarray With at Most K Frequency Python Medium
2962 Count Subarrays Where Max Element Appears at Least K Times Python Medium
2966 Divide Array Into Arrays With Max Difference Python Medium
2971 Find Polygon With the Largest Perimeter Python Medium
2976 Minimum Cost to Convert String I Python Medium
2981 Find Longest Special Substring That Occurs Thrice I Python Medium
2997 Minimum Number of Operations to Make Array XOR Equal to K Python Medium
3005 Count Elements With Maximum Frequency Python Easy
3011 Find if Array Can Be Sorted Python Medium
3016 Minimum Number of Pushes to Type Word II Python Medium
3042 Count Prefix and Suffix Pairs I Python Rust Easy
3043 Find the Length of the Longest Common Prefix Java Medium
3062 Winner of the Linked List Game Python Easy
3063 Linked List Frequency Python Easy
3068 Find the Maximum Sum of Node Values Python Hard
3075 Maximize Happiness of Selected Children Python Medium
3110 Score of a String Python Easy
3133 Minimum Array End Python Medium
3152 Special Array II Python Medium
3163 String Compression III Python Medium
3203 Find Minimum Diameter After Merging Two Trees Python Hard
3217 Delete Nodes From Linked List Present in Array Python Medium
3223 Minimum Length of String After Operations Python Rust Medium
3254 Find the Power of K-Size Subarrays I Python Medium
3264 Final Array State After K Multiplication Operations I Python Easy