Skip to content

Avuvos/leetcode-solutions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1,603 Commits
 
 
 
 

Repository files navigation

LeetCode Solutions

Total Easy Medium Hard

My solutions for LeetCode problems.

  • LeetCode Profile: Avuvos
  • Total Solved: 1595
  • Global Rank: Top 0.32%

Solutions

# Title Difficulty Solution
0001 Two Sum Easy java
0002 Add Two Numbers Medium java
0003 Longest Substring Without Repeating Characters Medium python3
0004 Median of Two Sorted Arrays Hard python3
0005 Longest Palindromic Substring Medium java
0007 Reverse Integer Medium cpp
0009 Palindrome Number Easy cpp
0010 Regular Expression Matching Hard cpp
0011 Container With Most Water Medium java
0014 Longest Common Prefix Easy java
0015 3Sum Medium python3
0017 Letter Combinations of a Phone Number Medium cpp
0018 4Sum Medium cpp
0019 Remove Nth Node From End of List Medium c
0020 Valid Parentheses Easy cpp
0021 Merge Two Sorted Lists Easy java
0022 Generate Parentheses Medium java
0023 Merge k Sorted Lists Hard java
0024 Swap Nodes in Pairs Medium c
0025 Reverse Nodes in k-Group Hard java
0033 Search in Rotated Sorted Array Medium cpp
0034 Find First and Last Position of Element in Sorted Array Medium cpp
0035 Search Insert Position Easy cpp
0036 Valid Sudoku Medium java
0037 Sudoku Solver Hard java
0039 Combination Sum Medium python3
0040 Combination Sum II Medium cpp
0042 Trapping Rain Water Hard cpp
0043 Multiply Strings Medium python3
0045 Jump Game II Medium python3
0046 Permutations Medium cpp
0047 Permutations II Medium python3
0048 Rotate Image Medium cpp
0049 Group Anagrams Medium cpp
0050 Pow(x, n) Medium cpp
0051 N-Queens Hard java
0053 Maximum Subarray Medium python3
0054 Spiral Matrix Medium python3
0055 Jump Game Medium java
0056 Merge Intervals Medium python3
0057 Insert Interval Medium java
0059 Spiral Matrix II Medium python3
0062 Unique Paths Medium cpp
0063 Unique Paths II Medium cpp
0064 Minimum Path Sum Medium python3
0067 Add Binary Easy python3
0068 Text Justification Hard python3
0069 Sqrt(x) Easy python3
0070 Climbing Stairs Easy java
0071 Simplify Path Medium python3
0072 Edit Distance Medium java
0073 Set Matrix Zeroes Medium python3
0074 Search a 2D Matrix Medium cpp
0075 Sort Colors Medium java
0076 Minimum Window Substring Hard cpp
0077 Combinations Medium cpp
0078 Subsets Medium java
0079 Word Search Medium java
0081 Search in Rotated Sorted Array II Medium cpp
0082 Remove Duplicates from Sorted List II Medium c
0083 Remove Duplicates from Sorted List Easy c
0086 Partition List Medium cpp
0088 Merge Sorted Array Easy java
0090 Subsets II Medium python3
0091 Decode Ways Medium cpp
0092 Reverse Linked List II Medium cpp
0094 Binary Tree Inorder Traversal Easy cpp
0095 Unique Binary Search Trees II Medium python3
0096 Unique Binary Search Trees Medium python3
0097 Interleaving String Medium cpp
0098 Validate Binary Search Tree Medium java
0100 Same Tree Easy cpp
0101 Symmetric Tree Easy java
0102 Binary Tree Level Order Traversal Medium python3
0103 Binary Tree Zigzag Level Order Traversal Medium java
0104 Maximum Depth of Binary Tree Easy python3
0105 Construct Binary Tree from Preorder and Inorder Traversal Medium python3
0107 Binary Tree Level Order Traversal II Medium java
0108 Convert Sorted Array to Binary Search Tree Easy python3
0110 Balanced Binary Tree Easy python3
0111 Minimum Depth of Binary Tree Easy cpp
0112 Path Sum Easy cpp
0113 Path Sum II Medium cpp
0116 Populating Next Right Pointers in Each Node Medium java
0117 Populating Next Right Pointers in Each Node II Medium java
0118 Pascal's Triangle Easy cpp
0119 Pascal's Triangle II Easy python3
0120 Triangle Medium python3
0121 Best Time to Buy and Sell Stock Easy python3
0122 Best Time to Buy and Sell Stock II Medium python3
0123 Best Time to Buy and Sell Stock III Hard python3
0124 Binary Tree Maximum Path Sum Hard java
0125 Valid Palindrome Easy python3
0127 Word Ladder Hard python3
0128 Longest Consecutive Sequence Medium python3
0129 Sum Root to Leaf Numbers Medium python3
0130 Surrounded Regions Medium java
0132 Palindrome Partitioning II Hard python3
0133 Clone Graph Medium cpp
0134 Gas Station Medium cpp
0135 Candy Hard cpp
0136 Single Number Easy java
0137 Single Number II Medium cpp
0138 Copy List with Random Pointer Medium cpp
0139 Word Break Medium cpp
0141 Linked List Cycle Easy c
0142 Linked List Cycle II Medium java
0143 Reorder List Medium java
0144 Binary Tree Preorder Traversal Easy java
0145 Binary Tree Postorder Traversal Easy cpp
0146 LRU Cache Medium cpp
0149 Max Points on a Line Hard java
0152 Maximum Product Subarray Medium java
0153 Find Minimum in Rotated Sorted Array Medium java
0155 Min Stack Medium python3
0160 Intersection of Two Linked Lists Easy java
0162 Find Peak Element Medium java
0167 Two Sum II - Input Array Is Sorted Medium java
0168 Excel Sheet Column Title Easy cpp
0169 Majority Element Easy python3
0173 Binary Search Tree Iterator Medium java
0174 Dungeon Game Hard python3
0175 Combine Two Tables Easy postgresql
0179 Largest Number Medium cpp
0181 Employees Earning More Than Their Managers Easy postgresql
0187 Repeated DNA Sequences Medium java
0188 Best Time to Buy and Sell Stock IV Hard cpp
0189 Rotate Array Medium java
0190 Reverse Bits Easy java
0191 Number of 1 Bits Easy c
0198 House Robber Medium cpp
0199 Binary Tree Right Side View Medium python3
0200 Number of Islands Medium python3
0201 Bitwise AND of Numbers Range Medium cpp
0202 Happy Number Easy python3
0203 Remove Linked List Elements Easy java
0204 Count Primes Medium cpp
0205 Isomorphic Strings Easy python3
0206 Reverse Linked List Easy c
0207 Course Schedule Medium cpp
0208 Implement Trie (Prefix Tree) Medium java
0209 Minimum Size Subarray Sum Medium cpp
0211 Design Add and Search Words Data Structure Medium java
0212 Word Search II Hard java
0213 House Robber II Medium cpp
0214 Shortest Palindrome Hard cpp
0215 Kth Largest Element in an Array Medium cpp
0216 Combination Sum III Medium python3
0217 Contains Duplicate Easy java
0218 The Skyline Problem Hard cpp
0219 Contains Duplicate II Easy cpp
0221 Maximal Square Medium python3
0222 Count Complete Tree Nodes Easy java
0225 Implement Stack using Queues Easy python3
0226 Invert Binary Tree Easy java
0228 Summary Ranges Easy python3
0229 Majority Element II Medium cpp
0230 Kth Smallest Element in a BST Medium java
0231 Power of Two Easy cpp
0232 Implement Queue using Stacks Easy java
0234 Palindrome Linked List Easy cpp
0235 Lowest Common Ancestor of a Binary Search Tree Medium cpp
0236 Lowest Common Ancestor of a Binary Tree Medium cpp
0237 Delete Node in a Linked List Medium c
0238 Product of Array Except Self Medium java
0239 Sliding Window Maximum Hard cpp
0240 Search a 2D Matrix II Medium java
0242 Valid Anagram Easy java
0257 Binary Tree Paths Easy python3
0258 Add Digits Easy cpp
0260 Single Number III Medium c
0263 Ugly Number Easy cpp
0264 Ugly Number II Medium cpp
0268 Missing Number Easy python3
0278 First Bad Version Easy python3
0279 Perfect Squares Medium python3
0283 Move Zeroes Easy python3
0284 Peeking Iterator Medium java
0287 Find the Duplicate Number Medium cpp
0290 Word Pattern Easy cpp
0292 Nim Game Easy python3
0295 Find Median from Data Stream Hard cpp
0297 Serialize and Deserialize Binary Tree Hard java
0300 Longest Increasing Subsequence Medium python3
0303 Range Sum Query - Immutable Easy java
0304 Range Sum Query 2D - Immutable Medium cpp
0307 Range Sum Query - Mutable Medium cpp
0309 Best Time to Buy and Sell Stock with Cooldown Medium python3
0312 Burst Balloons Hard cpp
0315 Count of Smaller Numbers After Self Hard cpp
0316 Remove Duplicate Letters Medium cpp
0318 Maximum Product of Word Lengths Medium python3
0319 Bulb Switcher Medium cpp
0322 Coin Change Medium java
0326 Power of Three Easy cpp
0328 Odd Even Linked List Medium cpp
0330 Patching Array Hard java
0331 Verify Preorder Serialization of a Binary Tree Medium java
0332 Reconstruct Itinerary Hard cpp
0334 Increasing Triplet Subsequence Medium cpp
0336 Palindrome Pairs Hard cpp
0338 Counting Bits Easy cpp
0342 Power of Four Easy cpp
0343 Integer Break Medium cpp
0344 Reverse String Easy java
0345 Reverse Vowels of a String Easy cpp
0347 Top K Frequent Elements Medium python3
0349 Intersection of Two Arrays Easy python3
0350 Intersection of Two Arrays II Easy cpp
0365 Water and Jug Problem Medium python3
0367 Valid Perfect Square Easy python3
0368 Largest Divisible Subset Medium cpp
0371 Sum of Two Integers Medium java
0373 Find K Pairs with Smallest Sums Medium cpp
0374 Guess Number Higher or Lower Easy cpp
0376 Wiggle Subsequence Medium python3
0377 Combination Sum IV Medium cpp
0378 Kth Smallest Element in a Sorted Matrix Medium python3
0380 Insert Delete GetRandom O(1) Medium java
0383 Ransom Note Easy cpp
0384 Shuffle an Array Medium python3
0386 Lexicographical Numbers Medium cpp
0387 First Unique Character in a String Easy cpp
0389 Find the Difference Easy cpp
0392 Is Subsequence Easy cpp
0393 UTF-8 Validation Medium cpp
0399 Evaluate Division Medium cpp
0403 Frog Jump Hard python3
0404 Sum of Left Leaves Easy java
0409 Longest Palindrome Easy python3
0412 Fizz Buzz Easy java
0413 Arithmetic Slices Medium java
0414 Third Maximum Number Easy python3
0415 Add Strings Easy python3
0416 Partition Equal Subset Sum Medium python3
0417 Pacific Atlantic Water Flow Medium cpp
0424 Longest Repeating Character Replacement Medium java
0429 N-ary Tree Level Order Traversal Medium cpp
0432 All O`one Data Structure Hard cpp
0433 Minimum Genetic Mutation Medium python3
0435 Non-overlapping Intervals Medium cpp
0437 Path Sum III Medium java
0438 Find All Anagrams in a String Medium java
0441 Arranging Coins Easy python3
0442 Find All Duplicates in an Array Medium python3
0445 Add Two Numbers II Medium cpp
0449 Serialize and Deserialize BST Medium java
0450 Delete Node in a BST Medium java
0451 Sort Characters By Frequency Medium cpp
0455 Assign Cookies Easy python3
0456 132 Pattern Medium cpp
0459 Repeated Substring Pattern Easy cpp
0461 Hamming Distance Easy java
0462 Minimum Moves to Equal Array Elements II Medium python3
0463 Island Perimeter Easy java
0470 Implement Rand10() Using Rand7() Medium python3
0473 Matchsticks to Square Medium python3
0476 Number Complement Easy cpp
0485 Max Consecutive Ones Easy java
0486 Predict the Winner Medium cpp
0491 Non-decreasing Subsequences Medium cpp
0494 Target Sum Medium python3
0496 Next Greater Element I Easy java
0502 IPO Hard cpp
0506 Relative Ranks Easy java
0507 Perfect Number Easy cpp
0508 Most Frequent Subtree Sum Medium java
0509 Fibonacci Number Easy python3
0513 Find Bottom Left Tree Value Medium java
0515 Find Largest Value in Each Tree Row Medium java
0516 Longest Palindromic Subsequence Medium cpp
0518 Coin Change II Medium cpp
0520 Detect Capital Easy python3
0521 Longest Uncommon Subsequence I Easy java
0522 Longest Uncommon Subsequence II Medium java
0523 Continuous Subarray Sum Medium cpp
0524 Longest Word in Dictionary through Deleting Medium cpp
0530 Minimum Absolute Difference in BST Easy cpp
0532 K-diff Pairs in an Array Medium cpp
0537 Complex Number Multiplication Medium java
0538 Convert BST to Greater Tree Medium python3
0542 01 Matrix Medium cpp
0543 Diameter of Binary Tree Easy java
0546 Remove Boxes Hard python3
0547 Number of Provinces Medium cpp
0557 Reverse Words in a String III Easy python3
0559 Maximum Depth of N-ary Tree Easy java
0560 Subarray Sum Equals K Medium java
0561 Array Partition Easy cpp
0563 Binary Tree Tilt Easy cpp
0566 Reshape the Matrix Easy java
0567 Permutation in String Medium cpp
0572 Subtree of Another Tree Easy java
0576 Out of Boundary Paths Medium python3
0583 Delete Operation for Two Strings Medium java
0584 Find Customer Referee Easy postgresql
0586 Customer Placing the Largest Number of Orders Easy postgresql
0589 N-ary Tree Preorder Traversal Easy java
0590 N-ary Tree Postorder Traversal Easy cpp
0595 Big Countries Easy mysql
0596 Classes With at Least 5 Students Easy postgresql
0598 Range Addition II Easy java
0606 Construct String from Binary Tree Medium cpp
0609 Find Duplicate File in System Medium cpp
0617 Merge Two Binary Trees Easy python3
0620 Not Boring Movies Easy postgresql
0622 Design Circular Queue Medium cpp
0623 Add One Row to Tree Medium java
0624 Maximum Distance in Arrays Medium cpp
0633 Sum of Square Numbers Medium cpp
0637 Average of Levels in Binary Tree Easy cpp
0638 Shopping Offers Medium python3
0641 Design Circular Deque Medium cpp
0645 Set Mismatch Easy cpp
0646 Maximum Length of Pair Chain Medium cpp
0647 Palindromic Substrings Medium cpp
0648 Replace Words Medium cpp
0649 Dota2 Senate Medium cpp
0650 2 Keys Keyboard Medium cpp
0653 Two Sum IV - Input is a BST Easy java
0654 Maximum Binary Tree Medium python3
0658 Find K Closest Elements Medium cpp
0659 Split Array into Consecutive Subsequences Medium cpp
0662 Maximum Width of Binary Tree Medium python3
0664 Strange Printer Hard python3
0670 Maximum Swap Medium cpp
0673 Number of Longest Increasing Subsequence Medium cpp
0674 Longest Continuous Increasing Subsequence Easy java
0682 Baseball Game Easy java
0687 Longest Univalue Path Medium java
0688 Knight Probability in Chessboard Medium cpp
0690 Employee Importance Medium java
0692 Top K Frequent Words Medium cpp
0695 Max Area of Island Medium cpp
0700 Search in a Binary Search Tree Easy python3
0701 Insert into a Binary Search Tree Medium java
0703 Kth Largest Element in a Stream Easy cpp
0704 Binary Search Easy cpp
0705 Design HashSet Easy cpp
0706 Design HashMap Easy cpp
0707 Design Linked List Medium java
0709 To Lower Case Easy python3
0712 Minimum ASCII Delete Sum for Two Strings Medium python3
0713 Subarray Product Less Than K Medium cpp
0714 Best Time to Buy and Sell Stock with Transaction Fee Medium cpp
0718 Maximum Length of Repeated Subarray Medium cpp
0719 Find K-th Smallest Pair Distance Hard cpp
0724 Find Pivot Index Easy java
0725 Split Linked List in Parts Medium cpp
0728 Self Dividing Numbers Easy cpp
0733 Flood Fill Easy java
0735 Asteroid Collision Medium cpp
0739 Daily Temperatures Medium cpp
0740 Delete and Earn Medium cpp
0743 Network Delay Time Medium cpp
0744 Find Smallest Letter Greater Than Target Easy cpp
0746 Min Cost Climbing Stairs Easy cpp
0747 Largest Number At Least Twice of Others Easy cpp
0752 Open the Lock Medium python3
0763 Partition Labels Medium java
0766 Toeplitz Matrix Easy cpp
0767 Reorganize String Medium cpp
0771 Jewels and Stones Easy python3
0778 Swim in Rising Water Hard cpp
0783 Minimum Distance Between BST Nodes Easy java
0784 Letter Case Permutation Medium python3
0785 Is Graph Bipartite? Medium cpp
0787 Cheapest Flights Within K Stops Medium python3
0792 Number of Matching Subsequences Medium cpp
0797 All Paths From Source to Target Medium java
0799 Champagne Tower Medium cpp
0802 Find Eventual Safe States Medium cpp
0804 Unique Morse Code Words Easy cpp
0808 Soup Servings Medium python3
0814 Binary Tree Pruning Medium cpp
0827 Making A Large Island Hard python3
0837 New 21 Game Medium cpp
0838 Push Dominoes Medium cpp
0839 Similar String Groups Hard python3
0840 Magic Squares In Grid Medium cpp
0841 Keys and Rooms Medium cpp
0844 Backspace String Compare Easy java
0846 Hand of Straights Medium cpp
0847 Shortest Path Visiting All Nodes Hard cpp
0850 Rectangle Area II Hard python3
0852 Peak Index in a Mountain Array Medium cpp
0857 Minimum Cost to Hire K Workers Hard cpp
0859 Buddy Strings Easy cpp
0860 Lemonade Change Easy cpp
0863 All Nodes Distance K in Binary Tree Medium cpp
0864 Shortest Path to Get All Keys Hard cpp
0871 Minimum Number of Refueling Stops Hard python3
0872 Leaf-Similar Trees Easy python3
0874 Walking Robot Simulation Medium cpp
0875 Koko Eating Bananas Medium python3
0876 Middle of the Linked List Easy java
0877 Stone Game Medium python3
0879 Profitable Schemes Hard cpp
0880 Decoded String at Index Medium cpp
0881 Boats to Save People Medium python3
0884 Uncommon Words from Two Sentences Easy python3
0886 Possible Bipartition Medium python3
0894 All Possible Full Binary Trees Medium cpp
0896 Monotonic Array Easy cpp
0897 Increasing Order Search Tree Easy python3
0901 Online Stock Span Medium cpp
0904 Fruit Into Baskets Medium cpp
0905 Sort Array By Parity Easy cpp
0907 Sum of Subarray Minimums Medium cpp
0912 Sort an Array Medium cpp
0915 Partition Array into Disjoint Intervals Medium python3
0918 Maximum Sum Circular Subarray Medium python3
0919 Complete Binary Tree Inserter Medium java
0920 Number of Music Playlists Hard python3
0926 Flip String to Monotone Increasing Medium python3
0931 Minimum Falling Path Sum Medium python3
0934 Shortest Bridge Medium cpp
0938 Range Sum of BST Easy python3
0941 Valid Mountain Array Easy java
0945 Minimum Increment to Make Array Unique Medium cpp
0946 Validate Stack Sequences Medium python3
0948 Bag of Tokens Medium cpp
0951 Flip Equivalent Binary Trees Medium java
0953 Verifying an Alien Dictionary Easy python3
0954 Array of Doubled Pairs Medium python3
0956 Tallest Billboard Hard cpp
0958 Check Completeness of a Binary Tree Medium java
0959 Regions Cut By Slashes Medium cpp
0962 Maximum Width Ramp Medium cpp
0965 Univalued Binary Tree Easy python3
0967 Numbers With Same Consecutive Differences Medium cpp
0973 K Closest Points to Origin Medium java
0974 Subarray Sums Divisible by K Medium cpp
0976 Largest Perimeter Triangle Easy cpp
0977 Squares of a Sorted Array Easy java
0979 Distribute Coins in Binary Tree Medium java
0983 Minimum Cost For Tickets Medium java
0985 Sum of Even Numbers After Queries Medium cpp
0986 Interval List Intersections Medium java
0987 Vertical Order Traversal of a Binary Tree Hard cpp
0990 Satisfiability of Equality Equations Medium cpp
0991 Broken Calculator Medium python3
0993 Cousins in Binary Tree Easy java
0994 Rotting Oranges Medium java
0995 Minimum Number of K Consecutive Bit Flips Hard cpp
0997 Find the Town Judge Easy java
1002 Find Common Characters Easy cpp
1008 Construct Binary Search Tree from Preorder Traversal Medium python3
1013 Partition Array Into Three Parts With Equal Sum Easy python3
1014 Best Sightseeing Pair Medium python3
1015 Smallest Integer Divisible by K Medium cpp
1020 Number of Enclaves Medium cpp
1022 Sum of Root To Leaf Binary Numbers Easy python3
1027 Longest Arithmetic Subsequence Medium cpp
1029 Two City Scheduling Medium java
1035 Uncrossed Lines Medium python3
1038 Binary Search Tree to Greater Sum Tree Medium python3
1046 Last Stone Weight Easy cpp
1047 Remove All Adjacent Duplicates In String Easy cpp
1048 Longest String Chain Medium cpp
1051 Height Checker Easy cpp
1052 Grumpy Bookstore Owner Medium python3
1061 Lexicographically Smallest Equivalent String Medium cpp
1091 Shortest Path in Binary Matrix Medium cpp
1094 Car Pooling Medium java
1104 Path In Zigzag Labelled Binary Tree Medium python3
1105 Filling Bookcase Shelves Medium cpp
1108 Defanging an IP Address Easy python3
1122 Relative Sort Array Easy cpp
1125 Smallest Sufficient Team Hard python3
1129 Shortest Path with Alternating Colors Medium python3
1137 N-th Tribonacci Number Easy python3
1140 Stone Game II Medium cpp
1143 Longest Common Subsequence Medium java
1146 Snapshot Array Medium cpp
1148 Article Views I Easy mysql
1155 Number of Dice Rolls With Target Sum Medium cpp
1161 Maximum Level Sum of a Binary Tree Medium cpp
1162 As Far from Land as Possible Medium java
1187 Make Array Strictly Increasing Hard cpp
1189 Maximum Number of Balloons Easy python3
1193 Monthly Transactions I Medium postgresql
1203 Sort Items by Groups Respecting Dependencies Hard cpp
1207 Unique Number of Occurrences Easy cpp
1208 Get Equal Substrings Within Budget Medium cpp
1218 Longest Arithmetic Subsequence of Given Difference Medium cpp
1219 Path with Maximum Gold Medium java
1227 Airplane Seat Assignment Probability Medium java
1232 Check If It Is a Straight Line Easy cpp
1235 Maximum Profit in Job Scheduling Hard java
1248 Count Number of Nice Subarrays Medium python3
1249 Minimum Remove to Make Valid Parentheses Medium java
1250 Check If It Is a Good Array Hard cpp
1254 Number of Closed Islands Medium cpp
1261 Find Elements in a Contaminated Binary Tree Medium java
1268 Search Suggestions System Medium cpp
1269 Number of Ways to Stay in the Same Place After Some Steps Hard python3
1277 Count Square Submatrices with All Ones Medium cpp
1281 Subtract the Product and Sum of Digits of an Integer Easy c
1282 Group the People Given the Group Size They Belong To Medium cpp
1284 Minimum Number of Flips to Convert Binary Matrix to Zero Matrix Hard python3
1290 Convert Binary Number in a Linked List to Integer Easy java
1295 Find Numbers with Even Number of Digits Easy python
1296 Divide Array in Sets of K Consecutive Numbers Medium cpp
1302 Deepest Leaves Sum Medium java
1305 All Elements in Two Binary Search Trees Medium java
1306 Jump Game III Medium python3
1309 Decrypt String from Alphabet to Integer Mapping Easy python3
1310 XOR Queries of a Subarray Medium cpp
1312 Minimum Insertion Steps to Make a String Palindrome Hard cpp
1314 Matrix Block Sum Medium python3
1315 Sum of Nodes with Even-Valued Grandparent Medium java
1318 Minimum Flips to Make a OR b Equal to c Medium cpp
1319 Number of Operations to Make Network Connected Medium java
1323 Maximum 69 Number Easy cpp
1325 Delete Leaves With a Given Value Medium python3
1326 Minimum Number of Taps to Open to Water a Garden Hard cpp
1332 Remove Palindromic Subsequences Easy python3
1337 The K Weakest Rows in a Matrix Easy cpp
1339 Maximum Product of Splitted Binary Tree Medium cpp
1342 Number of Steps to Reduce a Number to Zero Easy python3
1343 Number of Sub-arrays of Size K and Average Greater than or Equal to Threshold Medium java
1345 Jump Game IV Hard cpp
1346 Check If N and Its Double Exist Easy java
1351 Count Negative Numbers in a Sorted Matrix Easy cpp
1352 Product of the Last K Numbers Medium java
1356 Sort Integers by The Number of 1 Bits Easy python3
1358 Number of Substrings Containing All Three Characters Medium java
1359 Count All Valid Pickup and Delivery Options Hard cpp
1365 How Many Numbers Are Smaller Than the Current Number Easy python3
1367 Linked List in Binary Tree Medium cpp
1371 Find the Longest Substring Containing Vowels in Even Counts Medium cpp
1372 Longest ZigZag Path in a Binary Tree Medium cpp
1376 Time Needed to Inform All Employees Medium cpp
1377 Frog Position After T Seconds Hard cpp
1379 Find a Corresponding Node of a Binary Tree in a Clone of That Tree Easy python3
1382 Balance a Binary Search Tree Medium java
1383 Maximum Performance of a Team Hard cpp
1385 Find the Distance Value Between Two Arrays Easy python3
1387 Sort Integers by The Power Value Medium python3
1394 Find Lucky Integer in an Array Easy python3
1395 Count Number of Teams Medium cpp
1396 Design Underground System Medium cpp
1402 Reducing Dishes Hard cpp
1403 Minimum Subsequence in Non-Increasing Order Easy python3
1404 Number of Steps to Reduce a Number in Binary Representation to One Medium cpp
1406 Stone Game III Hard cpp
1416 Restore The Array Hard cpp
1420 Build Array Where You Can Find The Maximum Exactly K Comparisons Hard cpp
1425 Constrained Subsequence Sum Hard cpp
1431 Kids With the Greatest Number of Candies Easy python3
1436 Destination City Easy python3
1442 Count Triplets That Can Form Two Arrays of Equal XOR Medium cpp
1443 Minimum Time to Collect All Apples in a Tree Medium cpp
1444 Number of Ways of Cutting a Pizza Hard cpp
1448 Count Good Nodes in Binary Tree Medium cpp
1450 Number of Students Doing Homework at a Given Time Easy python3
1456 Maximum Number of Vowels in a Substring of Given Length Medium cpp
1457 Pseudo-Palindromic Paths in a Binary Tree Medium cpp
1458 Max Dot Product of Two Subsequences Hard cpp
1460 Make Two Arrays Equal by Reversing Subarrays Easy cpp
1464 Maximum Product of Two Elements in an Array Easy java
1465 Maximum Area of a Piece of Cake After Horizontal and Vertical Cuts Medium python3
1466 Reorder Routes to Make All Paths Lead to the City Zero Medium python3
1470 Shuffle the Array Easy python3
1472 Design Browser History Medium cpp
1480 Running Sum of 1d Array Easy python3
1483 Kth Ancestor of a Tree Node Hard cpp
1489 Find Critical and Pseudo-Critical Edges in Minimum Spanning Tree Hard cpp
1491 Average Salary Excluding the Minimum and Maximum Salary Easy cpp
1492 The kth Factor of n Medium cpp
1493 Longest Subarray of 1's After Deleting One Element Medium cpp
1498 Number of Subsequences That Satisfy the Given Sum Condition Medium cpp
1502 Can Make Arithmetic Progression From Sequence Easy cpp
1508 Range Sum of Sorted Subarray Sums Medium cpp
1509 Minimum Difference Between Largest and Smallest Value in Three Moves Medium cpp
1512 Number of Good Pairs Easy cpp
1514 Path with Maximum Probability Medium cpp
1519 Number of Nodes in the Sub-Tree With the Same Label Medium cpp
1523 Count Odd Numbers in an Interval Range Easy c
1528 Shuffle String Easy python3
1530 Number of Good Leaf Nodes Pairs Medium cpp
1534 Count Good Triplets Easy python3
1547 Minimum Cost to Cut a Stick Hard cpp
1550 Three Consecutive Odds Easy cpp
1557 Minimum Number of Vertices to Reach All Nodes Medium cpp
1567 Maximum Length of Subarray With Positive Product Medium python3
1569 Number of Ways to Reorder Array to Get Same BST Hard python3
1572 Matrix Diagonal Sum Easy python3
1575 Count All Possible Routes Hard cpp
1578 Minimum Time to Make Rope Colorful Medium cpp
1579 Remove Max Number of Edges to Keep Graph Fully Traversable Hard python3
1584 Min Cost to Connect All Points Medium cpp
1588 Sum of All Odd Length Subarrays Easy python3
1601 Maximum Number of Achievable Transfer Requests Hard cpp
1603 Design Parking System Easy cpp
1609 Even Odd Tree Medium java
1614 Maximum Nesting Depth of the Parentheses Easy java
1615 Maximal Network Rank Medium cpp
1631 Path With Minimum Effort Medium cpp
1632 Rank Transform of a Matrix Hard python3
1636 Sort Array by Increasing Frequency Easy cpp
1639 Number of Ways to Form a Target String Given a Dictionary Hard cpp
1642 Furthest Building You Can Reach Medium cpp
1646 Get Maximum in Generated Array Easy python3
1647 Minimum Deletions to Make Character Frequencies Unique Medium cpp
1652 Defuse the Bomb Easy cpp
1653 Minimum Deletions to Make String Balanced Medium cpp
1654 Minimum Jumps to Reach Home Medium python3
1657 Determine if Two Strings Are Close Medium cpp
1658 Minimum Operations to Reduce X to Zero Medium cpp
1662 Check If Two String Arrays are Equivalent Easy python3
1664 Ways to Make a Fair Array Medium java
1672 Richest Customer Wealth Easy python3
1678 Goal Parser Interpretation Easy python3
1680 Concatenation of Consecutive Binary Numbers Medium cpp
1683 Invalid Tweets Easy mysql
1684 Count the Number of Consistent Strings Easy cpp
1688 Count of Matches in Tournament Easy python3
1695 Maximum Erasure Value Medium python3
1697 Checking Existence of Edge Length Limited Paths Hard python3
1706 Where Will the Ball Fall Medium cpp
1710 Maximum Units on a Truck Easy python3
1721 Swapping Nodes in a Linked List Medium c
1732 Find the Highest Altitude Easy cpp
1748 Sum of Unique Elements Easy java
1749 Maximum Absolute Sum of Any Subarray Medium java
1751 Maximum Number of Events That Can Be Attended II Hard cpp
1757 Recyclable and Low Fat Products Easy mysql
1768 Merge Strings Alternately Easy cpp
1769 Minimum Number of Operations to Move All Balls to Each Box Medium python3
1770 Maximum Score from Performing Multiplication Operations Hard cpp
1773 Count Items Matching a Rule Easy python3
1779 Find Nearest Point That Has the Same X or Y Coordinate Easy c
1790 Check if One String Swap Can Make Strings Equal Easy python3
1791 Find Center of Star Graph Easy java
1792 Maximum Average Pass Ratio Medium java
1799 Maximize Score After N Operations Hard python3
1802 Maximum Value at a Given Index in a Bounded Array Medium cpp
1812 Determine Color of a Chessboard Square Easy python3
1813 Sentence Similarity III Medium python3
1814 Count Nice Pairs in an Array Medium python3
1819 Number of Different Subsequences GCDs Hard cpp
1822 Sign of the Product of an Array Easy python3
1823 Find the Winner of the Circular Game Medium java
1827 Minimum Operations to Make the Array Increasing Easy java
1832 Check if the Sentence Is Pangram Easy cpp
1834 Single-Threaded CPU Medium python3
1837 Sum of Digits in Base K Easy java
1845 Seat Reservation Manager Medium cpp
1848 Minimum Distance to the Target Element Easy java
1857 Largest Color Value in a Directed Graph Hard cpp
1859 Sorting the Sentence Easy python3
1870 Minimum Speed to Arrive on Time Medium cpp
1877 Minimize Maximum Pair Sum in Array Medium python3
1879 Minimum XOR Sum of Two Arrays Hard cpp
1894 Find the Student that Will Replace the Chalk Medium cpp
1905 Count Sub Islands Medium cpp
1911 Maximum Alternating Subsequence Sum Medium java
1920 Build Array from Permutation Easy python3
1921 Eliminate Maximum Number of Monsters Medium cpp
1925 Count Square Sum Triples Easy cpp
1926 Nearest Exit from Entrance in Maze Medium java
1929 Concatenation of Array Easy python3
1930 Unique Length-3 Palindromic Subsequences Medium cpp
1937 Maximum Number of Points with Cost Medium cpp
1941 Check if All Characters Have Equal Number of Occurrences Easy python3
1942 The Number of the Smallest Unoccupied Chair Medium cpp
1945 Sum of Digits of String After Convert Easy cpp
1947 Maximum Compatibility Score Sum Medium python3
1957 Delete Characters to Make Fancy String Easy cpp
1964 Find the Longest Valid Obstacle Course at Each Position Hard cpp
1970 Last Day Where You Can Still Cross Hard cpp
1971 Find if Path Exists in Graph Easy python3
1974 Minimum Time to Type Word Using Special Typewriter Easy java
1979 Find Greatest Common Divisor of Array Easy python3
1985 Find the Kth Largest Integer in the Array Medium python3
1991 Find the Middle Index in Array Easy java
1992 Find All Groups of Farmland Medium python3
1995 Count Special Quadruplets Easy java
1996 The Number of Weak Characters in the Game Medium cpp
2000 Reverse Prefix of Word Easy python3
2006 Count Number of Pairs With Absolute Difference K Easy java
2007 Find Original Array From Doubled Array Medium cpp
2008 Maximum Earnings From Taxi Medium python3
2011 Final Value of Variable After Performing Operations Easy python3
2013 Detect Squares Medium python3
2016 Maximum Difference Between Increasing Elements Easy java
2022 Convert 1D Array Into 2D Array Easy cpp
2023 Number of Pairs of Strings With Concatenation Equal to Target Medium java
2024 Maximize the Confusion of an Exam Medium cpp
2027 Minimum Moves to Convert String Easy java
2028 Find Missing Observations Medium cpp
2032 Two Out of Three Easy python3
2037 Minimum Number of Moves to Seat Everyone Easy cpp
2038 Remove Colored Pieces if Both Neighbors are the Same Color Medium cpp
2042 Check if Numbers Are Ascending in a Sentence Easy python3
2043 Simple Bank System Medium cpp
2044 Count Number of Maximum Bitwise-OR Subsets Medium cpp
2049 Count Nodes With the Highest Score Medium python3
2053 Kth Distinct String in an Array Easy cpp
2054 Two Best Non-Overlapping Events Medium python
2057 Smallest Index With Equal Value Easy python3
2058 Find the Minimum and Maximum Number of Nodes Between Critical Points Medium python3
2059 Minimum Operations to Convert Number Medium java
2062 Count Vowel Substrings of a String Easy python3
2065 Maximum Path Quality of a Graph Hard java
2068 Check Whether Two Strings are Almost Equivalent Easy java
2069 Walking Robot Simulation II Medium java
2070 Most Beautiful Item for Each Query Medium java
2073 Time Needed to Buy Tickets Easy java
2078 Two Furthest Houses With Different Colors Easy java
2079 Watering Plants Medium java
2080 Range Frequency Queries Medium java
2085 Count Common Words With One Occurrence Easy java
2086 Minimum Number of Food Buckets to Feed the Hamsters Medium java
2087 Minimum Cost Homecoming of a Robot in a Grid Medium java
2089 Find Target Indices After Sorting Array Easy java
2090 K Radius Subarray Averages Medium cpp
2091 Removing Minimum and Maximum From Array Medium java
2094 Finding 3-Digit Even Numbers Easy java
2095 Delete the Middle Node of a Linked List Medium java
2099 Find Subsequence of Length K With the Largest Sum Easy cpp
2101 Detonate the Maximum Bombs Medium cpp
2103 Rings and Rods Easy java
2104 Sum of Subarray Ranges Medium java
2105 Watering Plants II Medium java
2108 Find First Palindromic String in the Array Easy java
2109 Adding Spaces to a String Medium java
2110 Number of Smooth Descent Periods of a Stock Medium java
2114 Maximum Number of Words Found in Sentences Easy java
2115 Find All Possible Recipes from Given Supplies Medium python3
2119 A Number After a Double Reversal Easy python3
2120 Execution of All Suffix Instructions Staying in a Grid Medium python3
2124 Check if All A's Appears Before All B's Easy java
2125 Number of Laser Beams in a Bank Medium java
2126 Destroying Asteroids Medium java
2129 Capitalize the Title Easy java
2130 Maximum Twin Sum of a Linked List Medium cpp
2131 Longest Palindrome by Concatenating Two Letter Words Medium java
2133 Check if Every Row and Column Contains All Numbers Easy java
2134 Minimum Swaps to Group All 1's Together II Medium cpp
2139 Minimum Moves to Reach Target Score Medium python3
2140 Solving Questions With Brainpower Medium python3
2141 Maximum Running Time of N Computers Hard cpp
2144 Minimum Cost of Buying Candies With Discount Easy java
2145 Count the Hidden Sequences Medium java
2146 K Highest Ranked Items Within a Price Range Medium java
2148 Count Elements With Strictly Smaller and Greater Elements Easy python3
2149 Rearrange Array Elements by Sign Medium python3
2150 Find All Lonely Numbers in the Array Medium python3
2154 Keep Multiplying Found Values by Two Easy python3
2155 All Divisions With the Highest Score of a Binary Array Medium python3
2160 Minimum Sum of Four Digit Number After Splitting Digits Easy python3
2161 Partition Array According to Given Pivot Medium python3
2162 Minimum Cost to Set Cooking Time Medium python3
2176 Count Equal and Divisible Pairs in an Array Easy python3
2177 Find Three Consecutive Integers That Sum to a Given Number Medium python3
2180 Count Integers With Even Digit Sum Easy python3
2181 Merge Nodes in Between Zeros Medium python3
2183 Count Array Pairs Divisible by K Hard cpp
2185 Counting Words With a Given Prefix Easy java
2186 Minimum Number of Steps to Make Two Strings Anagram II Medium java
2187 Minimum Time to Complete Trips Medium java
2190 Most Frequent Number Following Key In an Array Easy java
2191 Sort the Jumbled Numbers Medium cpp
2192 All Ancestors of a Node in a Directed Acyclic Graph Medium cpp
2194 Cells in a Range on an Excel Sheet Easy java
2196 Create Binary Tree From Descriptions Medium java
2200 Find All K-Distant Indices in an Array Easy java
2201 Count Artifacts That Can Be Extracted Medium java
2206 Divide Array Into Equal Pairs Easy java
2207 Maximize Number of Subsequences in a String Medium java
2208 Minimum Operations to Halve Array Sum Medium java
2210 Count Hills and Valleys in an Array Easy python3
2211 Count Collisions on a Road Medium python3
2212 Maximum Points in an Archery Competition Medium python3
2213 Longest Substring of One Repeating Character Hard cpp
2215 Find the Difference of Two Arrays Easy python3
2216 Minimum Deletions to Make Array Beautiful Medium java
2218 Maximum Value of K Coins From Piles Hard cpp
2220 Minimum Bit Flips to Convert Number Easy cpp
2221 Find Triangular Sum of an Array Medium python3
2222 Number of Ways to Select Buildings Medium python3
2223 Sum of Scores of Built Strings Hard cpp
2225 Find Players With Zero or One Losses Medium python3
2226 Maximum Candies Allocated to K Children Medium python3
2233 Maximum Product After K Increments Medium python3
2239 Find Closest Number to Zero Easy python3
2240 Number of Ways to Buy Pens and Pencils Medium python3
2241 Design an ATM Machine Medium python3
2244 Minimum Rounds to Complete All Tasks Medium python3
2246 Longest Path With Different Adjacent Characters Hard cpp
2248 Intersection of Multiple Arrays Easy python3
2249 Count Lattice Points Inside a Circle Medium python3
2255 Count Prefixes of a Given String Easy python3
2256 Minimum Average Difference Medium python3
2257 Count Unguarded Cells in the Grid Medium python3
2258 Escape the Spreading Fire Hard python3
2259 Remove Digit From Number to Maximize Result Easy python3
2260 Minimum Consecutive Cards to Pick Up Medium python3
2264 Largest 3-Same-Digit Number in String Easy python3
2265 Count Nodes Equal to Average of Subtree Medium python3
2266 Count Number of Texts Medium python3
2267 Check if There Is a Valid Parentheses String Path Hard python3
2269 Find the K-Beauty of a Number Easy python3
2270 Number of Ways to Split Array Medium python3
2271 Maximum White Tiles Covered by a Carpet Medium python3
2272 Substring With Largest Variance Hard cpp
2273 Find Resultant Array After Removing Anagrams Easy python3
2274 Maximum Consecutive Floors Without Special Floors Medium python3
2278 Percentage of Letter in String Easy python3
2279 Maximum Bags With Full Capacity of Rocks Medium python3
2280 Minimum Lines to Represent a Line Chart Medium python3
2283 Check if Number Has Equal Digit Count and Digit Value Easy python3
2284 Sender With Largest Word Count Medium python3
2285 Maximum Total Importance of Roads Medium cpp
2286 Booking Concert Tickets in Groups Hard cpp
2287 Rearrange Characters to Make Target String Easy python3
2288 Apply Discount to Prices Medium python3
2290 Minimum Obstacle Removal to Reach Corner Hard python3
2293 Min Max Game Easy python3
2294 Partition Array Such That Maximum Difference Is K Medium python3
2295 Replace Elements in an Array Medium python3
2299 Strong Password Checker II Easy python3
2300 Successful Pairs of Spells and Potions Medium cpp
2301 Match Substring After Replacement Hard python3
2302 Count Subarrays With Score Less Than K Hard python3
2303 Calculate Amount Paid in Taxes Easy python3
2304 Minimum Path Cost in a Grid Medium python3
2305 Fair Distribution of Cookies Medium cpp
2309 Greatest English Letter in Upper and Lower Case Easy python3
2310 Sum of Numbers With Units Digit K Medium python3
2311 Longest Binary Subsequence Less Than or Equal to K Medium python3
2312 Selling Pieces of Wood Hard python3
2315 Count Asterisks Easy python3
2316 Count Unreachable Pairs of Nodes in an Undirected Graph Medium cpp
2317 Maximum XOR After Operations Medium python3
2325 Decode the Message Easy python3
2326 Spiral Matrix IV Medium cpp
2328 Number of Increasing Paths in a Grid Hard cpp
2331 Evaluate Boolean Binary Tree Easy python3
2332 The Latest Time to Catch a Bus Medium python3
2335 Minimum Amount of Time to Fill Cups Easy python3
2336 Smallest Number in Infinite Set Medium cpp
2337 Move Pieces to Obtain a String Medium python3
2341 Maximum Number of Pairs in Array Easy python3
2342 Max Sum of a Pair With Equal Sum of Digits Medium python3
2343 Query Kth Smallest Trimmed Number Medium python3
2344 Minimum Deletions to Make Array Divisible Hard python3
2347 Best Poker Hand Easy python3
2348 Number of Zero-Filled Subarrays Medium python3
2349 Design a Number Container System Medium python3
2350 Shortest Impossible Sequence of Rolls Hard python3
2351 First Letter to Appear Twice Easy python3
2352 Equal Row and Column Pairs Medium cpp
2353 Design a Food Rating System Medium python3
2354 Number of Excellent Pairs Hard python3
2357 Make Array Zero by Subtracting Equal Amounts Easy python3
2358 Maximum Number of Groups Entering a Competition Medium python3
2359 Find Closest Node to Given Two Nodes Medium python3
2360 Longest Cycle in a Graph Hard python3
2363 Merge Similar Items Easy python3
2364 Count Number of Bad Pairs Medium python3
2365 Task Scheduler II Medium python3
2366 Minimum Replacements to Sort the Array Hard python3
2367 Number of Arithmetic Triplets Easy python3
2368 Reachable Nodes With Restrictions Medium python3
2369 Check if There is a Valid Partition For The Array Medium cpp
2370 Longest Ideal Subsequence Medium python3
2373 Largest Local Values in a Matrix Easy python3
2374 Node With Highest Edge Score Medium python3
2375 Construct Smallest Number From DI String Medium python3
2379 Minimum Recolors to Get K Consecutive Black Blocks Easy python3
2380 Time Needed to Rearrange a Binary String Medium python3
2381 Shifting Letters II Medium python3
2383 Minimum Hours of Training to Win a Competition Easy cpp
2384 Largest Palindromic Number Medium cpp
2385 Amount of Time for Binary Tree to Be Infected Medium cpp
2386 Find the K-Sum of an Array Hard cpp
2389 Longest Subsequence With Limited Sum Easy cpp
2390 Removing Stars From a String Medium cpp
2391 Minimum Amount of Time to Collect Garbage Medium cpp
2395 Find Subarrays With Equal Sum Easy python3
2396 Strictly Palindromic Number Medium python3
2397 Maximum Rows Covered by Columns Medium python3
2398 Maximum Number of Robots Within Budget Hard python3
2399 Check Distances Between Same Letters Easy cpp
2400 Number of Ways to Reach a Position After Exactly k Steps Medium cpp
2401 Longest Nice Subarray Medium cpp
2402 Meeting Rooms III Hard cpp
2404 Most Frequent Even Element Easy cpp
2405 Optimal Partition of String Medium cpp
2406 Divide Intervals Into Minimum Number of Groups Medium cpp
2407 Longest Increasing Subsequence II Hard cpp
2409 Count Days Spent Together Easy python3
2410 Maximum Matching of Players With Trainers Medium cpp
2411 Smallest Subarrays With Maximum Bitwise OR Medium cpp
2412 Minimum Money Required Before Transactions Hard cpp
2413 Smallest Even Multiple Easy cpp
2414 Length of the Longest Alphabetical Continuous Substring Medium cpp
2415 Reverse Odd Levels of Binary Tree Medium cpp
2418 Sort the People Easy cpp
2419 Longest Subarray With Maximum Bitwise AND Medium cpp
2420 Find All Good Indices Medium cpp
2421 Number of Good Paths Hard cpp
2424 Longest Uploaded Prefix Medium cpp
2425 Bitwise XOR of All Pairings Medium cpp
2426 Number of Pairs Satisfying Inequality Hard python3
2427 Number of Common Factors Easy cpp
2428 Maximum Sum of an Hourglass Medium cpp
2429 Minimize XOR Medium cpp
2432 The Employee That Worked on the Longest Task Easy cpp
2433 Find The Original Array of Prefix Xor Medium cpp
2437 Number of Valid Clock Times Easy python3
2438 Range Product Queries of Powers Medium python3
2439 Minimize Maximum of Array Medium cpp
2441 Largest Positive Integer That Exists With Its Negative Easy cpp
2442 Count Number of Distinct Integers After Reverse Operations Medium cpp
2443 Sum of Number and Its Reverse Medium python3
2447 Number of Subarrays With GCD Equal to K Medium cpp
2448 Minimum Cost to Make Array Equal Hard cpp
2451 Odd String Difference Easy python3
2452 Words Within Two Edits of Dictionary Medium python3
2453 Destroy Sequential Targets Medium python3
2455 Average Value of Even Numbers That Are Divisible by Three Easy python3
2456 Most Popular Video Creator Medium python3
2460 Apply Operations to an Array Easy cpp
2461 Maximum Sum of Distinct Subarrays With Length K Medium cpp
2462 Total Cost to Hire K Workers Medium cpp
2463 Minimum Total Distance Traveled Hard cpp
2465 Number of Distinct Averages Easy cpp
2466 Count Ways To Build Good Strings Medium python3
2467 Most Profitable Path in a Tree Medium cpp
2469 Convert the Temperature Easy cpp
2470 Number of Subarrays With LCM Equal to K Medium cpp
2471 Minimum Number of Operations to Sort a Binary Tree by Level Medium cpp
2472 Maximum Number of Non-overlapping Palindrome Substrings Hard cpp
2475 Number of Unequal Triplets in Array Easy cpp
2476 Closest Nodes Queries in a Binary Search Tree Medium cpp
2481 Minimum Cuts to Divide a Circle Easy cpp
2482 Difference Between Ones and Zeros in Row and Column Medium cpp
2483 Minimum Penalty for a Shop Medium cpp
2485 Find the Pivot Integer Easy cpp
2486 Append Characters to String to Make Subsequence Medium cpp
2487 Remove Nodes From Linked List Medium cpp
2488 Count Subarrays With Median K Hard python3
2490 Circular Sentence Easy python3
2491 Divide Players Into Teams of Equal Skill Medium cpp
2492 Minimum Score of a Path Between Two Cities Medium cpp
2493 Divide Nodes Into the Maximum Number of Groups Hard cpp
2496 Maximum Value of a String in an Array Easy cpp
2497 Maximum Star Sum of a Graph Medium cpp
2498 Frog Jump II Medium cpp
2500 Delete Greatest Value in Each Row Easy cpp
2501 Longest Square Streak in an Array Medium cpp
2502 Design Memory Allocator Medium cpp
2503 Maximum Number of Points From Grid Queries Hard cpp
2506 Count Pairs Of Similar Strings Easy cpp
2507 Smallest Value After Replacing With Sum of Prime Factors Medium cpp
2508 Add Edges to Make Degrees of All Nodes Even Hard cpp
2509 Cycle Length Queries in a Tree Hard cpp
2511 Maximum Enemy Forts That Can Be Captured Easy cpp
2512 Reward Top K Students Medium python3
2513 Minimize the Maximum of Two Arrays Medium cpp
2514 Count Anagrams Hard python3
2515 Shortest Distance to Target String in a Circular Array Easy python3
2516 Take K of Each Character From Left and Right Medium python3
2517 Maximum Tastiness of Candy Basket Medium python3
2520 Count the Digits That Divide a Number Easy cpp
2521 Distinct Prime Factors of Product of Array Medium cpp
2522 Partition String Into Substrings With Values at Most K Medium cpp
2523 Closest Prime Numbers in Range Medium cpp
2525 Categorize Box According to Criteria Easy cpp
2526 Find Consecutive Integers from a Data Stream Medium cpp
2527 Find Xor-Beauty of Array Medium cpp
2529 Maximum Count of Positive Integer and Negative Integer Easy cpp
2530 Maximal Score After Applying K Operations Medium cpp
2531 Make Number of Distinct Characters Equal Medium cpp
2535 Difference Between Element Sum and Digit Sum of an Array Easy cpp
2536 Increment Submatrices by One Medium cpp
2537 Count the Number of Good Subarrays Medium cpp
2540 Minimum Common Value Easy python3
2541 Minimum Operations to Make Array Equal II Medium python3
2542 Maximum Subsequence Score Medium cpp
2543 Check if Point Is Reachable Hard python3
2544 Alternating Digit Sum Easy python3
2545 Sort the Students by Their Kth Score Medium python3
2546 Apply Bitwise Operations to Make Strings Equal Medium python3
2547 Minimum Cost to Split an Array Hard cpp
2549 Count Distinct Numbers on Board Easy cpp
2550 Count Collisions of Monkeys on a Polygon Medium python3
2551 Put Marbles in Bags Hard cpp
2552 Count Increasing Quadruplets Hard cpp
2553 Separate the Digits in an Array Easy python3
2554 Maximum Number of Integers to Choose From a Range I Medium python3
2555 Maximize Win From Two Segments Medium python3
2556 Disconnect Path in a Binary Matrix by at Most One Flip Medium cpp
2558 Take Gifts From the Richest Pile Easy cpp
2559 Count Vowel Strings in Ranges Medium cpp
2560 House Robber IV Medium python3
2561 Rearranging Fruits Hard python3
2562 Find the Array Concatenation Value Easy python3
2563 Count the Number of Fair Pairs Medium cpp
2564 Substring XOR Queries Medium cpp
2566 Maximum Difference by Remapping a Digit Easy python3
2567 Minimum Score by Changing Two Elements Medium python3
2568 Minimum Impossible OR Medium cpp
2569 Handling Sum Queries After Update Hard cpp
2570 Merge Two 2D Arrays by Summing Values Easy python3
2571 Minimum Operations to Reduce an Integer to 0 Medium python3
2572 Count the Number of Square-Free Subsets Medium cpp
2574 Left and Right Sum Differences Easy python3
2575 Find the Divisibility Array of a String Medium python3
2576 Find the Maximum Number of Marked Indices Medium cpp
2577 Minimum Time to Visit a Cell In a Grid Hard cpp
2578 Split With Minimum Sum Easy python3
2579 Count Total Number of Colored Cells Medium python3
2580 Count Ways to Group Overlapping Ranges Medium cpp
2581 Count Number of Possible Root Nodes Hard cpp
2582 Pass the Pillow Easy python3
2583 Kth Largest Sum in a Binary Tree Medium cpp
2584 Split the Array to Make Coprime Products Hard cpp
2585 Number of Ways to Earn Points Hard cpp
2586 Count the Number of Vowel Strings in Range Easy python3
2587 Rearrange Array to Maximize Prefix Score Medium cpp
2588 Count the Number of Beautiful Subarrays Medium cpp
2589 Minimum Time to Complete All Tasks Hard cpp
2591 Distribute Money to Maximum Children Easy cpp
2592 Maximize Greatness of an Array Medium cpp
2593 Find Score of an Array After Marking All Elements Medium cpp
2594 Minimum Time to Repair Cars Medium cpp
2595 Number of Even and Odd Bits Easy python3
2596 Check Knight Tour Configuration Medium cpp
2597 The Number of Beautiful Subsets Medium cpp
2598 Smallest Missing Non-negative Integer After Operations Medium cpp
2600 K Items With the Maximum Sum Easy python3
2601 Prime Subtraction Operation Medium cpp
2602 Minimum Operations to Make All Array Elements Equal Medium cpp
2605 Form Smallest Number From Two Digit Arrays Easy python3
2606 Find the Substring With Maximum Cost Medium python3
2607 Make K-Subarray Sums Equal Medium python3
2608 Shortest Cycle in a Graph Hard cpp
2609 Find the Longest Balanced Substring of a Binary String Easy python3
2610 Convert an Array Into a 2D Array With Conditions Medium python3
2611 Mice and Cheese Medium python3
2614 Prime In Diagonal Easy cpp
2615 Sum of Distances Medium cpp
2616 Minimize the Maximum Difference of Pairs Medium python3
2617 Minimum Number of Visited Cells in a Grid Hard cpp
2620 Counter Easy javascript
2626 Array Reduce Transformation Easy javascript
2634 Filter Elements from Array Easy javascript
2635 Apply Transform Over Each Element in Array Easy javascript
2639 Find the Width of Columns of a Grid Easy cpp
2640 Find the Score of All Prefixes of an Array Medium cpp
2641 Cousins in Binary Tree II Medium cpp
2642 Design Graph With Shortest Path Calculator Hard cpp
2643 Row With Maximum Ones Easy python3
2644 Find the Maximum Divisibility Score Easy cpp
2645 Minimum Additions to Make Valid String Medium python3
2646 Minimize the Total Price of the Trips Hard cpp
2651 Calculate Delayed Arrival Time Easy cpp
2652 Sum Multiples Easy cpp
2653 Sliding Subarray Beauty Medium python3
2654 Minimum Number of Operations to Make All Array Elements Equal to 1 Medium python3
2656 Maximum Sum With Exactly K Elements Easy python3
2657 Find the Prefix Common Array of Two Arrays Medium python3
2658 Maximum Number of Fish in a Grid Medium python3
2659 Make Array Empty Hard python3
2660 Determine the Winner of a Bowling Game Easy python3
2661 First Completely Painted Row or Column Medium python3
2662 Minimum Cost of a Path With Special Roads Medium cpp
2663 Lexicographically Smallest Beautiful String Hard python3
2665 Counter II Easy javascript
2667 Create Hello World Function Easy javascript
2670 Find the Distinct Difference Array Easy python3
2671 Frequency Tracker Medium python3
2672 Number of Adjacent Elements With the Same Color Medium python3
2673 Make Costs of Paths Equal in a Binary Tree Medium python3
2678 Number of Senior Citizens Easy cpp
2679 Sum in a Matrix Medium python3
2680 Maximum OR Medium cpp
2681 Power of Heroes Hard python3
2682 Find the Losers of the Circular Game Easy cpp
2683 Neighboring Bitwise XOR Medium cpp
2684 Maximum Number of Moves in a Grid Medium cpp
2685 Count the Number of Complete Components Medium python3
2696 Minimum String Length After Removing Substrings Easy cpp
2697 Lexicographically Smallest Palindrome Easy cpp
2698 Find the Punishment Number of an Integer Medium python3
2699 Modify Graph Edge Weights Hard cpp
2704 To Be Or Not To Be Easy javascript
2706 Buy Two Chocolates Easy python3
2707 Extra Characters in a String Medium cpp
2708 Maximum Strength of a Group Medium cpp
2709 Greatest Common Divisor Traversal Hard cpp
2710 Remove Trailing Zeros From a String Easy cpp
2711 Difference of Number of Distinct Values on Diagonals Medium cpp
2712 Minimum Cost to Make All Characters Equal Medium cpp
2716 Minimize String Length Easy python3
2717 Semi-Ordered Permutation Easy cpp
2718 Sum of Matrix After Queries Medium cpp
2719 Count of Integers Hard cpp
2729 Check if The Number is Fascinating Easy python3
2730 Find the Longest Semi-Repetitive Substring Medium python3
2731 Movement of Robots Medium cpp
2732 Find a Good Subset of the Matrix Hard cpp
2733 Neither Minimum nor Maximum Easy python3
2734 Lexicographically Smallest String After Substring Operation Medium cpp
2735 Collecting Chocolates Medium cpp
2736 Maximum Sum Queries Hard cpp
2739 Total Distance Traveled Easy cpp
2740 Find the Value of the Partition Medium cpp
2741 Special Permutations Medium cpp
2742 Painting the Walls Hard cpp
2744 Find Maximum Number of String Pairs Easy cpp
2745 Construct the Longest New String Medium cpp
2746 Decremental String Concatenation Medium cpp
2747 Count Zero Request Servers Medium python3
2748 Number of Beautiful Pairs Easy python3
2749 Minimum Operations to Make the Integer Zero Medium python3
2750 Ways to Split Array Into Good Subarrays Medium python3
2751 Robot Collisions Hard python3
2760 Longest Even Odd Subarray With Threshold Easy cpp
2761 Prime Pairs With Target Sum Medium cpp
2762 Continuous Subarrays Medium cpp
2763 Sum of Imbalance Numbers of All Subarrays Hard cpp
2765 Longest Alternating Subarray Easy cpp
2766 Relocate Marbles Medium cpp
2767 Partition String Into Minimum Beautiful Substrings Medium cpp
2768 Number of Black Blocks Medium cpp
2769 Find the Maximum Achievable Number Easy cpp
2770 Maximum Number of Jumps to Reach the Last Index Medium cpp
2771 Longest Non-decreasing Subarray From Two Arrays Medium cpp
2772 Apply Operations to Make All Array Elements Equal to Zero Medium cpp
2778 Sum of Squares of Special Elements Easy cpp
2779 Maximum Beauty of an Array After Applying Operation Medium cpp
2780 Minimum Index of a Valid Split Medium cpp
2781 Length of the Longest Valid Substring Hard cpp
2784 Check if Array is Good Easy cpp
2785 Sort Vowels in a String Medium cpp
2786 Visit Array Positions to Maximize Score Medium cpp
2787 Ways to Express an Integer as Sum of Powers Medium cpp
2788 Split Strings by Separator Easy python3
2789 Largest Element in an Array after Merge Operations Medium python3
2791 Count Paths That Can Form a Palindrome in a Tree Hard cpp
2798 Number of Employees Who Met the Target Easy python3
2799 Count Complete Subarrays in an Array Medium python3
2800 Shortest String That Contains Three Strings Medium python3
2801 Count Stepping Numbers in Range Hard python3
2806 Account Balance After Rounded Purchase Easy cpp
2807 Insert Greatest Common Divisors in Linked List Medium cpp
2808 Minimum Seconds to Equalize a Circular Array Medium cpp
2809 Minimum Time to Make Array Sum At Most x Hard cpp
2810 Faulty Keyboard Easy cpp
2811 Check if it is Possible to Split Array Medium cpp
2812 Find the Safest Path in a Grid Medium python3
2813 Maximum Elegance of a K-Length Subsequence Hard python3
2815 Max Pair Sum in an Array Easy python3
2816 Double a Number Represented as a Linked List Medium python3
2817 Minimum Absolute Difference Between Elements With Constraint Medium cpp
2818 Apply Operations to Maximize Score Hard cpp
2824 Count Pairs Whose Sum is Less than Target Easy cpp
2825 Make String a Subsequence Using Cyclic Increments Medium python3
2826 Sorting Three Groups Medium python3
2827 Number of Beautiful Integers in the Range Hard python3
2828 Check if a String Is an Acronym of Words Easy cpp
2829 Determine the Minimum Sum of a k-avoiding Array Medium cpp
2830 Maximize the Profit as the Salesman Medium cpp
2831 Find the Longest Equal Subarray Medium cpp
2833 Furthest Point From Origin Easy python3
2834 Find the Minimum Possible Sum of a Beautiful Array Medium python3
2835 Minimum Operations to Form Subsequence With Target Sum Hard python3
2836 Maximize Value of Function in a Ball Passing Game Hard python3
2839 Check if Strings Can be Made Equal With Operations I Easy cpp
2840 Check if Strings Can be Made Equal With Operations II Medium cpp
2841 Maximum Sum of Almost Unique Subarray Medium cpp
2842 Count K-Subsequences of a String With Maximum Beauty Hard cpp
2843 Count Symmetric Integers Easy cpp
2844 Minimum Operations to Make a Special Number Medium cpp
2845 Count of Interesting Subarrays Medium cpp
2846 Minimum Edge Weight Equilibrium Queries in a Tree Hard cpp
2848 Points That Intersect With Cars Easy cpp
2849 Determine if a Cell Is Reachable at a Given Time Medium cpp
2850 Minimum Moves to Spread Stones Over Grid Medium cpp
2855 Minimum Right Shifts to Sort the Array Easy cpp
2856 Minimum Array Length After Pair Removals Medium cpp
2857 Count Pairs of Points With Distance k Medium cpp
2858 Minimum Edge Reversals So Every Node Is Reachable Hard cpp
2859 Sum of Values at Indices With K Set Bits Easy cpp
2860 Happy Students Medium cpp
2861 Maximum Number of Alloys Medium cpp
2862 Maximum Element-Sum of a Complete Subset of Indices Hard cpp
2864 Maximum Odd Binary Number Easy cpp
2865 Beautiful Towers I Medium cpp
2866 Beautiful Towers II Medium cpp
2867 Count Valid Paths in a Tree Hard cpp
2869 Minimum Operations to Collect Elements Easy cpp
2870 Minimum Number of Operations to Make Array Empty Medium cpp
2871 Split Array Into Maximum Number of Subarrays Medium cpp
2872 Maximum Number of K-Divisible Components Hard cpp
2873 Maximum Value of an Ordered Triplet I Easy cpp
2874 Maximum Value of an Ordered Triplet II Medium cpp
2875 Minimum Size Subarray in Infinite Array Medium cpp
2876 Count Visited Nodes in a Directed Graph Hard cpp
2894 Divisible and Non-divisible Sums Difference Easy cpp
2895 Minimum Processing Time Medium cpp
2899 Last Visited Integers Easy cpp
2900 Longest Unequal Adjacent Groups Subsequence I Easy cpp
2901 Longest Unequal Adjacent Groups Subsequence II Medium cpp
2904 Shortest and Lexicographically Smallest Beautiful String Medium cpp
2908 Minimum Sum of Mountain Triplets I Easy cpp
2909 Minimum Sum of Mountain Triplets II Medium cpp
2917 Find the K-or of an Array Easy cpp
2918 Minimum Equal Sum of Two Arrays After Replacing Zeros Medium cpp
2919 Minimum Increment Operations to Make Array Beautiful Medium cpp
2920 Maximum Points After Collecting Coins From All Nodes Hard cpp
2923 Find Champion I Easy cpp
2924 Find Champion II Medium cpp
2925 Maximum Score After Applying Operations on a Tree Medium cpp
2926 Maximum Balanced Subsequence Sum Hard cpp
2930 Number of Strings Which Can Be Rearranged to Contain Substring Medium cpp
2931 Maximum Spending After Buying Items Hard cpp
2932 Maximum Strong Pair XOR I Easy cpp
2933 High-Access Employees Medium python3
2934 Minimum Operations to Maximize Last Elements in Arrays Medium cpp
2937 Make Three Strings Equal Easy cpp
2938 Separate Black and White Balls Medium cpp
2939 Maximum Xor Product Medium cpp
2940 Find Building Where Alice and Bob Can Meet Hard cpp
2942 Find Words Containing Character Easy cpp
2943 Maximize Area of Square Hole in Grid Medium cpp
2944 Minimum Number of Coins for Fruits Medium cpp
2946 Matrix Similarity After Cyclic Shifts Easy cpp
2948 Make Lexicographically Smallest Array by Swapping Elements Medium cpp
2951 Find the Peaks Easy cpp
2952 Minimum Number of Coins to be Added Medium cpp
2956 Find Common Elements Between Two Arrays Easy cpp
2957 Remove Adjacent Almost-Equal Characters Medium cpp
2958 Length of Longest Subarray With at Most K Frequency Medium cpp
2959 Number of Possible Sets of Closing Branches Hard cpp
2960 Count Tested Devices After Test Operations Easy cpp
2961 Double Modular Exponentiation Medium cpp
2963 Count the Number of Good Partitions Hard cpp
2965 Find Missing and Repeated Values Easy cpp
2966 Divide Array Into Arrays With Max Difference Medium cpp
2967 Minimum Cost to Make Array Equalindromic Medium cpp
2970 Count the Number of Incremovable Subarrays I Easy cpp
2971 Find Polygon With the Largest Perimeter Medium cpp
2973 Find Number of Coins to Place in Tree Nodes Hard cpp
2974 Minimum Number Game Easy cpp
2975 Maximum Square Area by Removing Fences From a Field Medium cpp
2976 Minimum Cost to Convert String I Medium cpp
2980 Check if Bitwise OR Has Trailing Zeros Easy cpp
2981 Find Longest Special Substring That Occurs Thrice I Medium cpp
2982 Find Longest Special Substring That Occurs Thrice II Medium cpp
2996 Smallest Missing Integer Greater Than Sequential Prefix Sum Easy cpp
2997 Minimum Number of Operations to Make Array XOR Equal to K Medium cpp
2998 Minimum Number of Operations to Make X and Y Equal Medium cpp
2999 Count the Number of Powerful Integers Hard cpp
3000 Maximum Area of Longest Diagonal Rectangle Easy cpp
3002 Maximum Size of a Set After Removals Medium cpp
3003 Maximize the Number of Partitions After Operations Hard cpp
3005 Count Elements With Maximum Frequency Easy python3
3006 Find Beautiful Indices in the Given Array I Medium cpp
3008 Find Beautiful Indices in the Given Array II Hard cpp
3014 Minimum Number of Pushes to Type Word I Easy cpp
3016 Minimum Number of Pushes to Type Word II Medium cpp
3019 Number of Changing Keys Easy cpp
3020 Find the Maximum Number of Elements in Subset Medium cpp
3021 Alice and Bob Playing Flower Game Medium cpp
3022 Minimize OR of Remaining Elements Using Operations Hard cpp
3024 Type of Triangle Easy cpp
3025 Find the Number of Ways to Place People I Medium cpp
3026 Maximum Good Subarray Sum Medium cpp
3027 Find the Number of Ways to Place People II Hard cpp
3028 Ant on the Boundary Easy cpp
3029 Minimum Time to Revert Word to Initial State I Medium cpp
3030 Find the Grid of Region Average Medium cpp
3031 Minimum Time to Revert Word to Initial State II Hard cpp
3033 Modify the Matrix Easy cpp
3034 Number of Subarrays That Match a Pattern I Medium cpp
3035 Maximum Palindromes After Operations Medium cpp
3036 Number of Subarrays That Match a Pattern II Hard cpp
3038 Maximum Number of Operations With the Same Score I Easy cpp
3039 Apply Operations to Make String Empty Medium cpp
3040 Maximum Number of Operations With the Same Score II Medium cpp
3041 Maximize Consecutive Elements in an Array After Modification Hard cpp
3042 Count Prefix and Suffix Pairs I Easy cpp
3043 Find the Length of the Longest Common Prefix Medium cpp
3044 Most Frequent Prime Medium cpp
3045 Count Prefix and Suffix Pairs II Hard cpp
3046 Split the Array Easy cpp
3047 Find the Largest Area of Square Inside Two Rectangles Medium cpp
3048 Earliest Second to Mark Indices I Medium cpp
3065 Minimum Operations to Exceed Threshold Value I Easy cpp
3066 Minimum Operations to Exceed Threshold Value II Medium cpp
3067 Count Pairs of Connectable Servers in a Weighted Tree Network Medium cpp
3068 Find the Maximum Sum of Node Values Hard cpp
3069 Distribute Elements Into Two Arrays I Easy cpp
3070 Count Submatrices with Top-Left Element and Sum Less Than k Medium cpp
3071 Minimum Operations to Write the Letter Y on a Grid Medium cpp
3072 Distribute Elements Into Two Arrays II Hard cpp
3074 Apple Redistribution into Boxes Easy cpp
3075 Maximize Happiness of Selected Children Medium cpp
3076 Shortest Uncommon Substring in an Array Medium cpp
3079 Find the Sum of Encrypted Integers Easy cpp
3080 Mark Elements on Array by Performing Queries Medium cpp
3081 Replace Question Marks in String to Minimize Its Value Medium cpp
3082 Find the Sum of the Power of All Subsequences Hard cpp
3083 Existence of a Substring in a String and Its Reverse Easy cpp
3084 Count Substrings Starting and Ending with Given Character Medium cpp
3085 Minimum Deletions to Make String K-Special Medium cpp
3090 Maximum Length Substring With Two Occurrences Easy cpp
3091 Apply Operations to Make Sum of Array Greater Than or Equal to k Medium cpp
3092 Most Frequent IDs Medium cpp
3093 Longest Common Suffix Queries Hard cpp
3095 Shortest Subarray With OR at Least K I Easy cpp
3096 Minimum Levels to Gain More Points Medium cpp
3097 Shortest Subarray With OR at Least K II Medium cpp
3098 Find the Sum of Subsequence Powers Hard cpp
3099 Harshad Number Easy cpp
3100 Water Bottles II Medium cpp
3101 Count Alternating Subarrays Medium cpp
3105 Longest Strictly Increasing or Strictly Decreasing Subarray Easy cpp
3106 Lexicographically Smallest String After Operations With Constraint Medium cpp
3107 Minimum Operations to Make Median of Array Equal to K Medium cpp
3108 Minimum Cost Walk in Weighted Graph Hard cpp
3110 Score of a String Easy cpp
3111 Minimum Rectangles to Cover Points Medium cpp
3112 Minimum Time to Visit Disappearing Nodes Medium cpp
3113 Find the Number of Subarrays Where Boundary Elements Are Maximum Hard cpp
3114 Latest Time You Can Obtain After Replacing Characters Easy cpp
3115 Maximum Prime Difference Medium cpp
3116 Kth Smallest Amount With Single Denomination Combination Hard cpp
3117 Minimum Sum of Values by Dividing Array Hard cpp
3120 Count the Number of Special Characters I Easy cpp
3121 Count the Number of Special Characters II Medium cpp
3122 Minimum Number of Operations to Satisfy Conditions Medium cpp
3123 Find Edges in Shortest Paths Hard cpp
3127 Make a Square with the Same Color Easy cpp
3128 Right Triangles Medium cpp
3129 Find All Possible Stable Binary Arrays I Medium cpp
3130 Find All Possible Stable Binary Arrays II Hard cpp
3131 Find the Integer Added to Array I Easy cpp
3132 Find the Integer Added to Array II Medium cpp
3133 Minimum Array End Medium cpp
3134 Find the Median of the Uniqueness Array Hard cpp
3136 Valid Word Easy cpp
3137 Minimum Number of Operations to Make Word K-Periodic Medium cpp
3138 Minimum Length of Anagram Concatenation Medium cpp
3142 Check if Grid Satisfies Conditions Easy cpp
3143 Maximum Points Inside the Square Medium cpp
3144 Minimum Substring Partition of Equal Character Frequency Medium cpp
3146 Permutation Difference between Two Strings Easy cpp
3147 Taking Maximum Energy From the Mystic Dungeon Medium cpp
3148 Maximum Difference Score in a Grid Medium cpp
3151 Special Array I Easy cpp
3152 Special Array II Medium cpp
3153 Sum of Digit Differences of All Pairs Medium cpp
3154 Find Number of Ways to Reach the K-th Stair Hard cpp
3158 Find the XOR of Numbers Which Appear Twice Easy cpp
3159 Find Occurrences of an Element in an Array Medium cpp
3160 Find the Number of Distinct Colors Among the Balls Medium cpp
3161 Block Placement Queries Hard cpp
3162 Find the Number of Good Pairs I Easy cpp
3163 String Compression III Medium cpp
3164 Find the Number of Good Pairs II Medium cpp
3165 Maximum Sum of Subsequence With Non-adjacent Elements Hard cpp
3168 Minimum Number of Chairs in a Waiting Room Easy cpp
3169 Count Days Without Meetings Medium cpp
3170 Lexicographically Minimum String After Removing Stars Medium cpp
3171 Find Subarray With Bitwise OR Closest to K Hard cpp
3174 Clear Digits Easy cpp
3175 Find The First Player to win K Games in a Row Medium cpp
3176 Find the Maximum Length of a Good Subsequence I Medium cpp
3177 Find the Maximum Length of a Good Subsequence II Hard cpp
3178 Find the Child Who Has the Ball After K Seconds Easy cpp
3179 Find the N-th Value After K Seconds Medium cpp
3180 Maximum Total Reward Using Operations I Medium cpp
3181 Maximum Total Reward Using Operations II Hard cpp
3184 Count Pairs That Form a Complete Day I Easy cpp
3185 Count Pairs That Form a Complete Day II Medium cpp
3186 Maximum Total Damage With Spell Casting Medium cpp
3187 Peaks in Array Hard cpp
3190 Find Minimum Operations to Make All Elements Divisible by Three Easy cpp
3191 Minimum Operations to Make Binary Array Elements Equal to One I Medium cpp
3192 Minimum Operations to Make Binary Array Elements Equal to One II Medium cpp
3193 Count the Number of Inversions Hard cpp
3194 Minimum Average of Smallest and Largest Elements Easy cpp
3195 Find the Minimum Area to Cover All Ones I Medium cpp
3196 Maximize Total Cost of Alternating Subarrays Medium cpp
3200 Maximum Height of a Triangle Easy cpp
3201 Find the Maximum Length of Valid Subsequence I Medium cpp
3202 Find the Maximum Length of Valid Subsequence II Medium cpp
3203 Find Minimum Diameter After Merging Two Trees Hard cpp
3206 Alternating Groups I Easy cpp
3207 Maximum Points After Enemy Battles Medium cpp
3208 Alternating Groups II Medium cpp
3209 Number of Subarrays With AND Value of K Hard cpp
3210 Find the Encrypted String Easy cpp
3211 Generate Binary Strings Without Adjacent Zeros Medium cpp
3212 Count Submatrices With Equal Frequency of X and Y Medium cpp
3216 Lexicographically Smallest String After a Swap Easy cpp
3217 Delete Nodes From Linked List Present in Array Medium cpp
3218 Minimum Cost for Cutting Cake I Medium cpp
3219 Minimum Cost for Cutting Cake II Hard cpp
3222 Find the Winning Player in Coin Game Easy cpp
3223 Minimum Length of String After Operations Medium cpp
3224 Minimum Array Changes to Make Differences Equal Medium cpp
3226 Number of Bit Changes to Make Two Integers Equal Easy cpp
3227 Vowels Game in a String Medium cpp
3228 Maximum Number of Operations to Move Ones to the End Medium cpp
3229 Minimum Operations to Make Array Equal to Target Hard cpp
3232 Find if Digit Game Can Be Won Easy cpp
3233 Find the Count of Numbers Which Are Not Special Medium cpp
3242 Design Neighbor Sum Service Easy cpp
3243 Shortest Distance After Road Addition Queries I Medium cpp
3244 Shortest Distance After Road Addition Queries II Hard cpp
3248 Snake in Matrix Easy cpp
3249 Count the Number of Good Nodes Medium cpp
3250 Find the Count of Monotonic Pairs I Hard cpp
3251 Find the Count of Monotonic Pairs II Hard cpp
3254 Find the Power of K-Size Subarrays I Medium cpp
3255 Find the Power of K-Size Subarrays II Medium cpp
3256 Maximum Value Sum by Placing Three Rooks I Hard cpp
3257 Maximum Value Sum by Placing Three Rooks II Hard cpp
3258 Count Substrings That Satisfy K-Constraint I Easy cpp
3259 Maximum Energy Boost From Two Drinks Medium cpp
3260 Find the Largest Palindrome Divisible by K Hard cpp
3264 Final Array State After K Multiplication Operations I Easy cpp
3265 Count Almost Equal Pairs I Medium cpp
3266 Final Array State After K Multiplication Operations II Hard cpp
3267 Count Almost Equal Pairs II Hard cpp
3270 Find the Key of the Numbers Easy cpp
3271 Hash Divided String Medium cpp
3272 Find the Count of Good Integers Hard cpp
3273 Minimum Amount of Damage Dealt to Bob Hard cpp
3274 Check if Two Chessboard Squares Have the Same Color Easy cpp
3275 K-th Nearest Obstacle Queries Medium cpp
3276 Select Cells in Grid With Maximum Score Hard cpp
3277 Maximum XOR Score Subarray Queries Hard cpp
3280 Convert Date to Binary Easy cpp
3281 Maximize Score of Numbers in Ranges Medium cpp
3282 Reach End of Array With Max Score Medium cpp
3283 Maximum Number of Moves to Kill All Pawns Hard cpp
3285 Find Indices of Stable Mountains Easy cpp
3286 Find a Safe Walk Through a Grid Medium cpp
3287 Find the Maximum Sequence Value of Array Hard cpp
3288 Length of the Longest Increasing Path Hard cpp
3289 The Two Sneaky Numbers of Digitville Easy cpp
3290 Maximum Multiplication Score Medium cpp
3291 Minimum Number of Valid Strings to Form Target I Medium cpp
3292 Minimum Number of Valid Strings to Form Target II Hard cpp
3295 Report Spam Message Medium cpp
3296 Minimum Number of Seconds to Make Mountain Height Zero Medium cpp
3297 Count Substrings That Can Be Rearranged to Contain a String I Medium cpp
3298 Count Substrings That Can Be Rearranged to Contain a String II Hard cpp
3300 Minimum Element After Replacement With Digit Sum Easy cpp
3301 Maximize the Total Height of Unique Towers Medium cpp
3303 Find the Occurrence of First Almost Equal Substring Hard cpp
3304 Find the K-th Character in String Game I Easy cpp
3305 Count of Substrings Containing Every Vowel and K Consonants I Medium cpp
3306 Count of Substrings Containing Every Vowel and K Consonants II Medium cpp
3309 Maximum Possible Number by Binary Concatenation Medium cpp
3310 Remove Methods From Project Medium cpp
3312 Sorted GCD Pair Queries Hard cpp
3314 Construct the Minimum Bitwise Array I Easy cpp
3315 Construct the Minimum Bitwise Array II Medium cpp
3316 Find Maximum Removals From Source String Medium cpp
3317 Find the Number of Possible Ways for an Event Hard cpp
3318 Find X-Sum of All K-Long Subarrays I Easy cpp
3319 K-th Largest Perfect Subtree Size in Binary Tree Medium cpp
3320 Count The Number of Winning Sequences Hard cpp
3321 Find X-Sum of All K-Long Subarrays II Hard cpp
3324 Find the Sequence of Strings Appeared on the Screen Medium cpp
3325 Count Substrings With K-Frequency Characters I Medium cpp
3326 Minimum Division Operations to Make Array Non Decreasing Medium cpp
3327 Check if DFS Strings Are Palindromes Hard cpp
3330 Find the Original Typed String I Easy cpp
3331 Find Subtree Sizes After Changes Medium cpp
3332 Maximum Points Tourist Can Earn Medium cpp
3333 Find the Original Typed String II Hard cpp
3334 Find the Maximum Factor Score of Array Medium cpp
3335 Total Characters in String After Transformations I Medium cpp
3336 Find the Number of Subsequences With Equal GCD Hard cpp
3340 Check Balanced String Easy cpp
3341 Find Minimum Time to Reach Last Room I Medium cpp
3342 Find Minimum Time to Reach Last Room II Medium cpp
3343 Count Number of Balanced Permutations Hard cpp
3345 Smallest Divisible Digit Product I Easy cpp
3346 Maximum Frequency of an Element After Performing Operations I Medium cpp
3347 Maximum Frequency of an Element After Performing Operations II Hard cpp
3349 Adjacent Increasing Subarrays Detection I Easy cpp
3350 Adjacent Increasing Subarrays Detection II Medium cpp
3351 Sum of Good Subsequences Hard cpp
3352 Count K-Reducible Numbers Less Than N Hard cpp
3354 Make Array Elements Equal to Zero Easy cpp
3355 Zero Array Transformation I Medium cpp
3356 Zero Array Transformation II Medium cpp
3360 Stone Removal Game Easy cpp
3361 Shift Distance Between Two Strings Medium cpp
3362 Zero Array Transformation III Medium cpp
3363 Find the Maximum Number of Fruits Collected Hard cpp
3364 Minimum Positive Sum Subarray Easy cpp
3365 Rearrange K Substrings to Form Target String Medium cpp
3366 Minimum Array Sum Medium cpp
3367 Maximize Sum of Weights after Edge Removals Hard cpp
3370 Smallest Number With All Set Bits Easy cpp
3371 Identify the Largest Outlier in an Array Medium cpp
3372 Maximize the Number of Target Nodes After Connecting Trees I Medium cpp
3373 Maximize the Number of Target Nodes After Connecting Trees II Hard cpp
3375 Minimum Operations to Make Array Values Equal to K Easy cpp
3376 Minimum Time to Break Locks I Medium cpp
3379 Transformed Array Easy cpp
3381 Maximum Subarray Sum With Length Divisible by K Medium cpp
3386 Button with Longest Push Time Easy cpp
3387 Maximize Amount After Two Days of Conversions Medium cpp
3388 Count Beautiful Splits in an Array Medium cpp
3392 Count Subarrays of Length Three With a Condition Easy cpp
3393 Count Paths With the Given XOR Value Medium cpp
3394 Check if Grid can be Cut into Sections Medium cpp
3396 Minimum Number of Operations to Make Elements in Array Distinct Easy cpp
3397 Maximum Number of Distinct Elements After Operations Medium cpp
3398 Smallest Substring With Identical Characters I Hard cpp
3402 Minimum Operations to Make Columns Strictly Increasing Easy cpp
3403 Find the Lexicographically Largest String From the Box I Medium cpp
3405 Count the Number of Arrays with K Matching Adjacent Elements Hard cpp
3407 Substring Matching Pattern Easy cpp
3408 Design Task Manager Medium cpp
3409 Longest Subsequence With Decreasing Adjacent Difference Medium cpp
3411 Maximum Subarray With Equal Products Easy cpp
3412 Find Mirror Score of a String Medium cpp
3413 Maximum Coins From K Consecutive Bags Medium cpp
3414 Maximum Score of Non-overlapping Intervals Hard cpp
3417 Zigzag Grid Traversal With Skip Easy cpp
3418 Maximum Amount of Money Robot Can Earn Medium cpp
3419 Minimize the Maximum Edge Weight of Graph Medium cpp
3423 Maximum Difference Between Adjacent Elements in a Circular Array Easy cpp
3424 Minimum Cost to Make Arrays Identical Medium cpp
3425 Longest Special Path Hard cpp
3432 Count Partitions with Even Sum Difference Easy cpp
3433 Count Mentions Per User Medium cpp
3434 Maximum Frequency After Subarray Operation Medium cpp
3438 Find Valid Pair of Adjacent Digits in String Easy cpp
3442 Maximum Difference Between Even and Odd Frequency I Easy cpp
3443 Maximum Manhattan Distance After K Changes Medium cpp
3446 Sort Matrix by Diagonals Medium cpp
3447 Assign Elements to Groups with Constraints Medium cpp
3507 Minimum Pair Removal to Sort Array I Easy cpp
3508 Implement Router Medium cpp
3512 Minimum Operations to Make Array Sum Divisible by K Easy cpp
3513 Number of Unique XOR Triplets I Medium cpp
3514 Number of Unique XOR Triplets II Medium cpp
3560 Find Minimum Log Transportation Cost Easy cpp
3561 Resulting String After Adjacent Removals Medium cpp
3566 Partition Array into Two Equal Product Subsets Medium cpp
3567 Minimum Absolute Difference in Sliding Submatrix Medium cpp
3568 Minimum Moves to Clean the Classroom Medium cpp
3668 Restore Finishing Order Easy cpp
3669 Balanced K-Factor Decomposition Medium cpp
3712 Sum of Elements With Frequency Divisible by K Easy cpp
3713 Longest Balanced Substring I Medium cpp
3718 Smallest Missing Multiple of K Easy python3
3719 Longest Balanced Subarray I Medium python3
3745 Maximize Expression of Three Elements Easy cpp
3746 Minimum String Length After Balanced Removals Medium cpp
3747 Count Distinct Integers After Removing Zeros Medium cpp
3754 Concatenate Non-Zero Digits and Multiply by Sum I Easy cpp
3755 Find Maximum Balanced XOR Subarray Length Medium cpp
3756 Concatenate Non-Zero Digits and Multiply by Sum II Medium cpp
3759 Count Elements With at Least K Greater Values Medium python3
3761 Minimum Absolute Distance Between Mirror Pairs Medium python3
3779 Minimum Number of Operations to Have Distinct Elements Medium cpp
3780 Maximum Sum of Three Numbers Divisible by Three Medium cpp
3783 Mirror Distance of an Integer Easy python3
3784 Minimum Deletion Cost to Make All Characters Equal Medium cpp
3786 Total Sum of Interaction Cost in Tree Groups Hard cpp
3794 Reverse String Prefix Easy python3
3795 Minimum Subarray Length With Distinct Sum At Least K Medium cpp
3796 Find Maximum Value in a Constrained Sequence Medium cpp
3798 Largest Even Number Easy cpp
3799 Word Squares II Medium cpp
3800 Minimum Cost to Make Two Binary Strings Equal Medium cpp
3803 Count Residue Prefixes Easy cpp
3804 Number of Centered Subarrays Medium python3
3805 Count Caesar Cipher Pairs Medium python3
3806 Maximum Bitwise AND After Increment Operations Hard cpp
3809 Best Reachable Tower Medium cpp
3810 Minimum Operations to Reach Target Array Medium cpp
3811 Number of Alternating XOR Partitions Medium cpp
3812 Minimum Edge Toggles on a Tree Hard cpp
3813 Vowel-Consonant Score Easy cpp
3814 Maximum Capacity Within Budget Medium cpp

About

My solutions for many LeetCode problems

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published