newbiepupil · 100
all problems · 2936
problem
1 Two Sum2 Add Two Numbers3 Longest Substring Without Repeating Characters4 Median of Two Sorted Arrays5 Longest Palindromic Substring6 Zigzag Conversion7 Reverse Integer8 String to Integer (atoi)9 Palindrome Number10 Regular Expression Matching11 Container With Most Water12 Integer to Roman13 Roman to Integer14 Longest Common Prefix15 3Sum16 3Sum Closest17 Letter Combinations of a Phone Number18 4Sum19 Remove Nth Node From End of List20 Valid Parentheses21 Merge Two Sorted Lists22 Generate Parentheses23 Merge k Sorted Lists24 Swap Nodes in Pairs25 Reverse Nodes in k-Group26 Remove Duplicates from Sorted Array27 Remove Element28 Find the Index of the First Occurrence in a String29 Divide Two Integers30 Substring with Concatenation of All Words31 Next Permutation32 Longest Valid Parentheses33 Search in Rotated Sorted Array34 Find First and Last Position of Element in Sorted Array35 Search Insert Position36 Valid Sudoku37 Sudoku Solver38 Count and Say39 Combination Sum40 Combination Sum II41 First Missing Positive42 Trapping Rain Water43 Multiply Strings44 Wildcard Matching45 Jump Game II46 Permutations47 Permutations II48 Rotate Image49 Group Anagrams50 Pow(x, n)51 N-Queens52 N-Queens II53 Maximum Subarray54 Spiral Matrix55 Jump Game56 Merge Intervals57 Insert Interval58 Length of Last Word59 Spiral Matrix II60 Permutation Sequence61 Rotate List62 Unique Paths63 Unique Paths II64 Minimum Path Sum65 Valid Number66 Plus One67 Add Binary68 Text Justification69 Sqrt(x)70 Climbing Stairs71 Simplify Path72 Edit Distance73 Set Matrix Zeroes74 Search a 2D Matrix75 Sort Colors76 Minimum Window Substring77 Combinations78 Subsets79 Word Search80 Remove Duplicates from Sorted Array II81 Search in Rotated Sorted Array II82 Remove Duplicates from Sorted List II83 Remove Duplicates from Sorted List84 Largest Rectangle in Histogram85 Maximal Rectangle86 Partition List87 Scramble String88 Merge Sorted Array89 Gray Code90 Subsets II91 Decode Ways92 Reverse Linked List II93 Restore IP Addresses94 Binary Tree Inorder Traversal95 Unique Binary Search Trees II96 Unique Binary Search Trees97 Interleaving String98 Validate Binary Search Tree99 Recover Binary Search Tree100 Same Tree101 Symmetric Tree102 Binary Tree Level Order Traversal103 Binary Tree Zigzag Level Order Traversal104 Maximum Depth of Binary Tree105 Construct Binary Tree from Preorder and Inorder Traversal106 Construct Binary Tree from Inorder and Postorder Traversal107 Binary Tree Level Order Traversal II108 Convert Sorted Array to Binary Search Tree109 Convert Sorted List to Binary Search Tree110 Balanced Binary Tree111 Minimum Depth of Binary Tree112 Path Sum113 Path Sum II114 Flatten Binary Tree to Linked List115 Distinct Subsequences116 Populating Next Right Pointers in Each Node117 Populating Next Right Pointers in Each Node II118 Pascal's Triangle119 Pascal's Triangle II120 Triangle121 Best Time to Buy and Sell Stock122 Best Time to Buy and Sell Stock II123 Best Time to Buy and Sell Stock III124 Binary Tree Maximum Path Sum125 Valid Palindrome126 Word Ladder II127 Word Ladder128 Longest Consecutive Sequence129 Sum Root to Leaf Numbers130 Surrounded Regions131 Palindrome Partitioning132 Palindrome Partitioning II133 Clone Graph134 Gas Station135 Candy136 Single Number137 Single Number II138 Copy List with Random Pointer139 Word Break140 Word Break II141 Linked List Cycle142 Linked List Cycle II143 Reorder List144 Binary Tree Preorder Traversal145 Binary Tree Postorder Traversal146 LRU Cache147 Insertion Sort List148 Sort List149 Max Points on a Line150 Evaluate Reverse Polish Notation151 Reverse Words in a String152 Maximum Product Subarray153 Find Minimum in Rotated Sorted Array154 Find Minimum in Rotated Sorted Array II155 Min Stack160 Intersection of Two Linked Lists162 Find Peak Element164 Maximum Gap165 Compare Version Numbers166 Fraction to Recurring Decimal167 Two Sum II - Input Array Is Sorted168 Excel Sheet Column Title169 Majority Element171 Excel Sheet Column Number172 Factorial Trailing Zeroes173 Binary Search Tree Iterator174 Dungeon Game179 Largest Number187 Repeated DNA Sequences188 Best Time to Buy and Sell Stock IV189 Rotate Array190 Reverse Bits191 Number of 1 Bits198 House Robber199 Binary Tree Right Side View200 Number of Islands201 Bitwise AND of Numbers Range202 Happy Number203 Remove Linked List Elements204 Count Primes205 Isomorphic Strings206 Reverse Linked List207 Course Schedule208 Implement Trie (Prefix Tree)209 Minimum Size Subarray Sum210 Course Schedule II211 Design Add and Search Words Data Structure212 Word Search II213 House Robber II214 Shortest Palindrome215 Kth Largest Element in an Array216 Combination Sum III217 Contains Duplicate218 The Skyline Problem219 Contains Duplicate II220 Contains Duplicate III221 Maximal Square222 Count Complete Tree Nodes223 Rectangle Area224 Basic Calculator225 Implement Stack using Queues226 Invert Binary Tree227 Basic Calculator II228 Summary Ranges229 Majority Element II230 Kth Smallest Element in a BST231 Power of Two232 Implement Queue using Stacks233 Number of Digit One234 Palindrome Linked List235 Lowest Common Ancestor of a Binary Search Tree236 Lowest Common Ancestor of a Binary Tree237 Delete Node in a Linked List238 Product of Array Except Self239 Sliding Window Maximum240 Search a 2D Matrix II241 Different Ways to Add Parentheses242 Valid Anagram257 Binary Tree Paths258 Add Digits260 Single Number III263 Ugly Number264 Ugly Number II268 Missing Number273 Integer to English Words274 H-Index275 H-Index II278 First Bad Version279 Perfect Squares282 Expression Add Operators283 Move Zeroes284 Peeking Iterator287 Find the Duplicate Number289 Game of Life290 Word Pattern292 Nim Game295 Find Median from Data Stream297 Serialize and Deserialize Binary Tree299 Bulls and Cows300 Longest Increasing Subsequence301 Remove Invalid Parentheses303 Range Sum Query - Immutable304 Range Sum Query 2D - Immutable306 Additive Number307 Range Sum Query - Mutable309 Best Time to Buy and Sell Stock with Cooldown310 Minimum Height Trees312 Burst Balloons313 Super Ugly Number315 Count of Smaller Numbers After Self316 Remove Duplicate Letters318 Maximum Product of Word Lengths319 Bulb Switcher321 Create Maximum Number322 Coin Change324 Wiggle Sort II326 Power of Three327 Count of Range Sum328 Odd Even Linked List329 Longest Increasing Path in a Matrix330 Patching Array331 Verify Preorder Serialization of a Binary Tree332 Reconstruct Itinerary334 Increasing Triplet Subsequence335 Self Crossing336 Palindrome Pairs337 House Robber III338 Counting Bits341 Flatten Nested List Iterator342 Power of Four343 Integer Break344 Reverse String345 Reverse Vowels of a String347 Top K Frequent Elements349 Intersection of Two Arrays350 Intersection of Two Arrays II352 Data Stream as Disjoint Intervals354 Russian Doll Envelopes355 Design Twitter357 Count Numbers with Unique Digits363 Max Sum of Rectangle No Larger Than K365 Water and Jug Problem367 Valid Perfect Square368 Largest Divisible Subset371 Sum of Two Integers372 Super Pow373 Find K Pairs with Smallest Sums374 Guess Number Higher or Lower375 Guess Number Higher or Lower II376 Wiggle Subsequence377 Combination Sum IV378 Kth Smallest Element in a Sorted Matrix380 Insert Delete GetRandom O(1)381 Insert Delete GetRandom O(1) - Duplicates allowed382 Linked List Random Node383 Ransom Note384 Shuffle an Array385 Mini Parser386 Lexicographical Numbers387 First Unique Character in a String388 Longest Absolute File Path389 Find the Difference390 Elimination Game391 Perfect Rectangle392 Is Subsequence393 UTF-8 Validation394 Decode String395 Longest Substring with At Least K Repeating Characters396 Rotate Function397 Integer Replacement398 Random Pick Index399 Evaluate Division400 Nth Digit401 Binary Watch402 Remove K Digits403 Frog Jump404 Sum of Left Leaves405 Convert a Number to Hexadecimal406 Queue Reconstruction by Height407 Trapping Rain Water II409 Longest Palindrome410 Split Array Largest Sum412 Fizz Buzz413 Arithmetic Slices414 Third Maximum Number415 Add Strings416 Partition Equal Subset Sum417 Pacific Atlantic Water Flow419 Battleships in a Board420 Strong Password Checker421 Maximum XOR of Two Numbers in an Array423 Reconstruct Original Digits from English424 Longest Repeating Character Replacement427 Construct Quad Tree429 N-ary Tree Level Order Traversal430 Flatten a Multilevel Doubly Linked List432 All O`one Data Structure433 Minimum Genetic Mutation434 Number of Segments in a String435 Non-overlapping Intervals436 Find Right Interval437 Path Sum III438 Find All Anagrams in a String440 K-th Smallest in Lexicographical Order441 Arranging Coins442 Find All Duplicates in an Array443 String Compression445 Add Two Numbers II446 Arithmetic Slices II - Subsequence447 Number of Boomerangs448 Find All Numbers Disappeared in an Array449 Serialize and Deserialize BST450 Delete Node in a BST451 Sort Characters By Frequency452 Minimum Number of Arrows to Burst Balloons453 Minimum Moves to Equal Array Elements454 4Sum II455 Assign Cookies456 132 Pattern457 Circular Array Loop458 Poor Pigs459 Repeated Substring Pattern460 LFU Cache461 Hamming Distance462 Minimum Moves to Equal Array Elements II463 Island Perimeter464 Can I Win466 Count The Repetitions467 Unique Substrings in Wraparound String468 Validate IP Address470 Implement Rand10() Using Rand7()472 Concatenated Words473 Matchsticks to Square474 Ones and Zeroes475 Heaters476 Number Complement477 Total Hamming Distance478 Generate Random Point in a Circle479 Largest Palindrome Product480 Sliding Window Median481 Magical String482 License Key Formatting483 Smallest Good Base485 Max Consecutive Ones486 Predict the Winner488 Zuma Game491 Non-decreasing Subsequences492 Construct the Rectangle493 Reverse Pairs494 Target Sum495 Teemo Attacking496 Next Greater Element I497 Random Point in Non-overlapping Rectangles498 Diagonal Traverse500 Keyboard Row501 Find Mode in Binary Search Tree502 IPO503 Next Greater Element II504 Base 7506 Relative Ranks507 Perfect Number508 Most Frequent Subtree Sum509 Fibonacci Number513 Find Bottom Left Tree Value514 Freedom Trail515 Find Largest Value in Each Tree Row516 Longest Palindromic Subsequence517 Super Washing Machines518 Coin Change II519 Random Flip Matrix520 Detect Capital521 Longest Uncommon Subsequence I522 Longest Uncommon Subsequence II523 Continuous Subarray Sum524 Longest Word in Dictionary through Deleting525 Contiguous Array526 Beautiful Arrangement528 Random Pick with Weight529 Minesweeper530 Minimum Absolute Difference in BST532 K-diff Pairs in an Array535 Encode and Decode TinyURL537 Complex Number Multiplication538 Convert BST to Greater Tree539 Minimum Time Difference540 Single Element in a Sorted Array541 Reverse String II542 01 Matrix543 Diameter of Binary Tree546 Remove Boxes547 Number of Provinces551 Student Attendance Record I552 Student Attendance Record II553 Optimal Division554 Brick Wall556 Next Greater Element III557 Reverse Words in a String III558 Logical OR of Two Binary Grids Represented as Quad-Trees559 Maximum Depth of N-ary Tree560 Subarray Sum Equals K561 Array Partition563 Binary Tree Tilt564 Find the Closest Palindrome565 Array Nesting566 Reshape the Matrix567 Permutation in String572 Subtree of Another Tree575 Distribute Candies576 Out of Boundary Paths581 Shortest Unsorted Continuous Subarray583 Delete Operation for Two Strings587 Erect the Fence589 N-ary Tree Preorder Traversal590 N-ary Tree Postorder Traversal591 Tag Validator592 Fraction Addition and Subtraction593 Valid Square594 Longest Harmonious Subsequence598 Range Addition II599 Minimum Index Sum of Two Lists600 Non-negative Integers without Consecutive Ones605 Can Place Flowers606 Construct String from Binary Tree609 Find Duplicate File in System611 Valid Triangle Number617 Merge Two Binary Trees621 Task Scheduler622 Design Circular Queue623 Add One Row to Tree624 Maximum Distance in Arrays (PRO)628 Maximum Product of Three Numbers629 K Inverse Pairs Array630 Course Schedule III632 Smallest Range Covering Elements from K Lists633 Sum of Square Numbers636 Exclusive Time of Functions637 Average of Levels in Binary Tree638 Shopping Offers639 Decode Ways II640 Solve the Equation641 Design Circular Deque643 Maximum Average Subarray I (PRO)645 Set Mismatch646 Maximum Length of Pair Chain647 Palindromic Substrings648 Replace Words649 Dota2 Senate650 2 Keys Keyboard652 Find Duplicate Subtrees653 Two Sum IV - Input is a BST654 Maximum Binary Tree655 Print Binary Tree657 Robot Return to Origin658 Find K Closest Elements659 Split Array into Consecutive Subsequences661 Image Smoother662 Maximum Width of Binary Tree664 Strange Printer665 Non-decreasing Array667 Beautiful Arrangement II668 Kth Smallest Number in Multiplication Table669 Trim a Binary Search Tree670 Maximum Swap671 Second Minimum Node In a Binary Tree672 Bulb Switcher II673 Number of Longest Increasing Subsequence674 Longest Continuous Increasing Subsequence675 Cut Off Trees for Golf Event676 Implement Magic Dictionary677 Map Sum Pairs678 Valid Parenthesis String679 24 Game680 Valid Palindrome II682 Baseball Game684 Redundant Connection685 Redundant Connection II686 Repeated String Match687 Longest Univalue Path688 Knight Probability in Chessboard689 Maximum Sum of 3 Non-Overlapping Subarrays690 Employee Importance691 Stickers to Spell Word692 Top K Frequent Words693 Binary Number with Alternating Bits695 Max Area of Island696 Count Binary Substrings697 Degree of an Array698 Partition to K Equal Sum Subsets699 Falling Squares700 Search in a Binary Search Tree701 Insert into a Binary Search Tree703 Kth Largest Element in a Stream704 Binary Search705 Design HashSet706 Design HashMap707 Design Linked List709 To Lower Case710 Random Pick with Blacklist (PRO)712 Minimum ASCII Delete Sum for Two Strings713 Subarray Product Less Than K714 Best Time to Buy and Sell Stock with Transaction Fee715 Range Module717 1-bit and 2-bit Characters718 Maximum Length of Repeated Subarray719 Find K-th Smallest Pair Distance720 Longest Word in Dictionary721 Accounts Merge722 Remove Comments724 Find Pivot Index725 Split Linked List in Parts726 Number of Atoms728 Self Dividing Numbers729 My Calendar I730 Count Different Palindromic Subsequences731 My Calendar II732 My Calendar III733 Flood Fill735 Asteroid Collision736 Parse Lisp Expression738 Monotone Increasing Digits739 Daily Temperatures740 Delete and Earn741 Cherry Pickup743 Network Delay Time744 Find Smallest Letter Greater Than Target745 Prefix and Suffix Search746 Min Cost Climbing Stairs747 Largest Number At Least Twice of Others748 Shortest Completing Word749 Contain Virus752 Open the Lock753 Cracking the Safe754 Reach a Number756 Pyramid Transition Matrix757 Set Intersection Size At Least Two761 Special Binary String762 Prime Number of Set Bits in Binary Representation763 Partition Labels764 Largest Plus Sign765 Couples Holding Hands766 Toeplitz Matrix767 Reorganize String768 Max Chunks To Make Sorted II769 Max Chunks To Make Sorted770 Basic Calculator IV771 Jewels and Stones773 Sliding Puzzle775 Global and Local Inversions777 Swap Adjacent in LR String778 Swim in Rising Water779 K-th Symbol in Grammar780 Reaching Points781 Rabbits in Forest782 Transform to Chessboard783 Minimum Distance Between BST Nodes784 Letter Case Permutation785 Is Graph Bipartite?786 K-th Smallest Prime Fraction787 Cheapest Flights Within K Stops788 Rotated Digits789 Escape The Ghosts790 Domino and Tromino Tiling791 Custom Sort String792 Number of Matching Subsequences793 Preimage Size of Factorial Zeroes Function794 Valid Tic-Tac-Toe State795 Number of Subarrays with Bounded Maximum796 Rotate String797 All Paths From Source to Target798 Smallest Rotation with Highest Score799 Champagne Tower801 Minimum Swaps To Make Sequences Increasing802 Find Eventual Safe States803 Bricks Falling When Hit804 Unique Morse Code Words805 Split Array With Same Average806 Number of Lines To Write String807 Max Increase to Keep City Skyline808 Soup Servings809 Expressive Words810 Chalkboard XOR Game811 Subdomain Visit Count812 Largest Triangle Area813 Largest Sum of Averages814 Binary Tree Pruning815 Bus Routes816 Ambiguous Coordinates817 Linked List Components818 Race Car819 Most Common Word820 Short Encoding of Words821 Shortest Distance to a Character822 Card Flipping Game823 Binary Trees With Factors824 Goat Latin825 Friends Of Appropriate Ages826 Most Profit Assigning Work827 Making A Large Island828 Count Unique Characters of All Substrings of a Given String829 Consecutive Numbers Sum830 Positions of Large Groups831 Masking Personal Information832 Flipping an Image833 Find And Replace in String834 Sum of Distances in Tree835 Image Overlap836 Rectangle Overlap837 New 21 Game838 Push Dominoes839 Similar String Groups840 Magic Squares In Grid841 Keys and Rooms842 Split Array into Fibonacci Sequence843 Guess the Word844 Backspace String Compare845 Longest Mountain in Array846 Hand of Straights847 Shortest Path Visiting All Nodes848 Shifting Letters849 Maximize Distance to Closest Person850 Rectangle Area II851 Loud and Rich852 Peak Index in a Mountain Array853 Car Fleet854 K-Similar Strings855 Exam Room856 Score of Parentheses857 Minimum Cost to Hire K Workers858 Mirror Reflection859 Buddy Strings860 Lemonade Change861 Score After Flipping Matrix862 Shortest Subarray with Sum at Least K863 All Nodes Distance K in Binary Tree864 Shortest Path to Get All Keys865 Smallest Subtree with all the Deepest Nodes866 Prime Palindrome867 Transpose Matrix868 Binary Gap869 Reordered Power of 2870 Advantage Shuffle871 Minimum Number of Refueling Stops872 Leaf-Similar Trees873 Length of Longest Fibonacci Subsequence874 Walking Robot Simulation875 Koko Eating Bananas876 Middle of the Linked List877 Stone Game878 Nth Magical Number879 Profitable Schemes880 Decoded String at Index881 Boats to Save People882 Reachable Nodes In Subdivided Graph883 Projection Area of 3D Shapes884 Uncommon Words from Two Sentences885 Spiral Matrix III886 Possible Bipartition887 Super Egg Drop888 Fair Candy Swap889 Construct Binary Tree from Preorder and Postorder Traversal890 Find and Replace Pattern891 Sum of Subsequence Widths892 Surface Area of 3D Shapes893 Groups of Special-Equivalent Strings894 All Possible Full Binary Trees895 Maximum Frequency Stack896 Monotonic Array897 Increasing Order Search Tree898 Bitwise ORs of Subarrays899 Orderly Queue900 RLE Iterator901 Online Stock Span902 Numbers At Most N Given Digit Set903 Valid Permutations for DI Sequence904 Fruit Into Baskets905 Sort Array By Parity906 Super Palindromes907 Sum of Subarray Minimums908 Smallest Range I909 Snakes and Ladders910 Smallest Range II911 Online Election912 Sort an Array913 Cat and Mouse914 X of a Kind in a Deck of Cards915 Partition Array into Disjoint Intervals916 Word Subsets917 Reverse Only Letters918 Maximum Sum Circular Subarray919 Complete Binary Tree Inserter920 Number of Music Playlists921 Minimum Add to Make Parentheses Valid922 Sort Array By Parity II923 3Sum With Multiplicity924 Minimize Malware Spread925 Long Pressed Name926 Flip String to Monotone Increasing927 Three Equal Parts928 Minimize Malware Spread II929 Unique Email Addresses930 Binary Subarrays With Sum931 Minimum Falling Path Sum932 Beautiful Array933 Number of Recent Calls934 Shortest Bridge935 Knight Dialer936 Stamping The Sequence937 Reorder Data in Log Files938 Range Sum of BST939 Minimum Area Rectangle940 Distinct Subsequences II941 Valid Mountain Array942 DI String Match943 Find the Shortest Superstring944 Delete Columns to Make Sorted945 Minimum Increment to Make Array Unique946 Validate Stack Sequences947 Most Stones Removed with Same Row or Column948 Bag of Tokens949 Largest Time for Given Digits950 Reveal Cards In Increasing Order951 Flip Equivalent Binary Trees952 Largest Component Size by Common Factor953 Verifying an Alien Dictionary954 Array of Doubled Pairs955 Delete Columns to Make Sorted II956 Tallest Billboard957 Prison Cells After N Days958 Check Completeness of a Binary Tree959 Regions Cut By Slashes960 Delete Columns to Make Sorted III961 N-Repeated Element in Size 2N Array962 Maximum Width Ramp963 Minimum Area Rectangle II964 Least Operators to Express Number965 Univalued Binary Tree966 Vowel Spellchecker967 Numbers With Same Consecutive Differences968 Binary Tree Cameras969 Pancake Sorting970 Powerful Integers971 Flip Binary Tree To Match Preorder Traversal972 Equal Rational Numbers973 K Closest Points to Origin974 Subarray Sums Divisible by K975 Odd Even Jump976 Largest Perimeter Triangle977 Squares of a Sorted Array978 Longest Turbulent Subarray979 Distribute Coins in Binary Tree980 Unique Paths III981 Time Based Key-Value Store982 Triples with Bitwise AND Equal To Zero983 Minimum Cost For Tickets984 String Without AAA or BBB985 Sum of Even Numbers After Queries986 Interval List Intersections987 Vertical Order Traversal of a Binary Tree988 Smallest String Starting From Leaf989 Add to Array-Form of Integer990 Satisfiability of Equality Equations991 Broken Calculator992 Subarrays with K Different Integers993 Cousins in Binary Tree994 Rotting Oranges995 Minimum Number of K Consecutive Bit Flips996 Number of Squareful Arrays997 Find the Town Judge998 Maximum Binary Tree II999 Available Captures for Rook1000 Minimum Cost to Merge Stones1001 Grid Illumination1002 Find Common Characters1003 Check If Word Is Valid After Substitutions1004 Max Consecutive Ones III1005 Maximize Sum Of Array After K Negations1006 Clumsy Factorial1007 Minimum Domino Rotations For Equal Row1008 Construct Binary Search Tree from Preorder Traversal1009 Complement of Base 10 Integer1010 Pairs of Songs With Total Durations Divisible by 601011 Capacity To Ship Packages Within D Days1012 Numbers With Repeated Digits1013 Partition Array Into Three Parts With Equal Sum1014 Best Sightseeing Pair1015 Smallest Integer Divisible by K1016 Binary String With Substrings Representing 1 To N1017 Convert to Base -21018 Binary Prefix Divisible By 51019 Next Greater Node In Linked List1020 Number of Enclaves1021 Remove Outermost Parentheses1022 Sum of Root To Leaf Binary Numbers1023 Camelcase Matching1024 Video Stitching1025 Divisor Game1026 Maximum Difference Between Node and Ancestor1027 Longest Arithmetic Subsequence1028 Recover a Tree From Preorder Traversal1029 Two City Scheduling1030 Matrix Cells in Distance Order1031 Maximum Sum of Two Non-Overlapping Subarrays1032 Stream of Characters1033 Moving Stones Until Consecutive1034 Coloring A Border1035 Uncrossed Lines1036 Escape a Large Maze1037 Valid Boomerang1038 Binary Search Tree to Greater Sum Tree1039 Minimum Score Triangulation of Polygon1040 Moving Stones Until Consecutive II1041 Robot Bounded In Circle1042 Flower Planting With No Adjacent1043 Partition Array for Maximum Sum1044 Longest Duplicate Substring1046 Last Stone Weight1047 Remove All Adjacent Duplicates In String1048 Longest String Chain1049 Last Stone Weight II1051 Height Checker1052 Grumpy Bookstore Owner1053 Previous Permutation With One Swap1054 Distant Barcodes1061 Lexicographically Smallest Equivalent String (PRO)1071 Greatest Common Divisor of Strings1072 Flip Columns For Maximum Number of Equal Rows1073 Adding Two Negabinary Numbers1074 Number of Submatrices That Sum to Target1078 Occurrences After Bigram1079 Letter Tile Possibilities1080 Insufficient Nodes in Root to Leaf Paths1081 Smallest Subsequence of Distinct Characters1089 Duplicate Zeros1090 Largest Values From Labels1091 Shortest Path in Binary Matrix1092 Shortest Common Supersequence 1093 Statistics from a Large Sample1094 Car Pooling1095 Find in Mountain Array1096 Brace Expansion II1103 Distribute Candies to People1104 Path In Zigzag Labelled Binary Tree1105 Filling Bookcase Shelves1106 Parsing A Boolean Expression1108 Defanging an IP Address1109 Corporate Flight Bookings1110 Delete Nodes And Return Forest1111 Maximum Nesting Depth of Two Valid Parentheses Strings1122 Relative Sort Array1123 Lowest Common Ancestor of Deepest Leaves1124 Longest Well-Performing Interval1125 Smallest Sufficient Team1128 Number of Equivalent Domino Pairs1129 Shortest Path with Alternating Colors1130 Minimum Cost Tree From Leaf Values1131 Maximum of Absolute Value Expression1137 N-th Tribonacci Number1138 Alphabet Board Path1139 Largest 1-Bordered Square1140 Stone Game II1143 Longest Common Subsequence1144 Decrease Elements To Make Array Zigzag1145 Binary Tree Coloring Game1146 Snapshot Array1147 Longest Chunked Palindrome Decomposition1154 Day of the Year1155 Number of Dice Rolls With Target Sum1156 Swap For Longest Repeated Character Substring1157 Online Majority Element In Subarray1160 Find Words That Can Be Formed by Characters1161 Maximum Level Sum of a Binary Tree1162 As Far from Land as Possible1163 Last Substring in Lexicographical Order1169 Invalid Transactions1170 Compare Strings by Frequency of the Smallest Character1171 Remove Zero Sum Consecutive Nodes from Linked List1172 Dinner Plate Stacks1175 Prime Arrangements1177 Can Make Palindrome from Substring1178 Number of Valid Words for Each Puzzle1184 Distance Between Bus Stops1185 Day of the Week1186 Maximum Subarray Sum with One Deletion1187 Make Array Strictly Increasing1189 Maximum Number of Balloons1190 Reverse Substrings Between Each Pair of Parentheses1191 K-Concatenation Maximum Sum1192 Critical Connections in a Network1200 Minimum Absolute Difference1201 Ugly Number III1202 Smallest String With Swaps1203 Sort Items by Groups Respecting Dependencies1206 Design Skiplist1207 Unique Number of Occurrences1208 Get Equal Substrings Within Budget1209 Remove All Adjacent Duplicates in String II1210 Minimum Moves to Reach Target with Rotations1217 Minimum Cost to Move Chips to The Same Position1218 Longest Arithmetic Subsequence of Given Difference1219 Path with Maximum Gold1220 Count Vowels Permutation1221 Split a String in Balanced Strings1222 Queens That Can Attack the King1223 Dice Roll Simulation1224 Maximum Equal Frequency1227 Airplane Seat Assignment Probability1232 Check If It Is a Straight Line1233 Remove Sub-Folders from the Filesystem1234 Replace the Substring for Balanced String1235 Maximum Profit in Job Scheduling1237 Find Positive Integer Solution for a Given Equation1238 Circular Permutation in Binary Representation1239 Maximum Length of a Concatenated String with Unique Characters1240 Tiling a Rectangle with the Fewest Squares1247 Minimum Swaps to Make Strings Equal1248 Count Number of Nice Subarrays1249 Minimum Remove to Make Valid Parentheses1250 Check If It Is a Good Array1252 Cells with Odd Values in a Matrix1253 Reconstruct a 2-Row Binary Matrix1254 Number of Closed Islands1255 Maximum Score Words Formed by Letters1260 Shift 2D Grid1261 Find Elements in a Contaminated Binary Tree1262 Greatest Sum Divisible by Three1263 Minimum Moves to Move a Box to Their Target Location1266 Minimum Time Visiting All Points1267 Count Servers that Communicate1268 Search Suggestions System1269 Number of Ways to Stay in the Same Place After Some Steps1275 Find Winner on a Tic Tac Toe Game1276 Number of Burgers with No Waste of Ingredients1277 Count Square Submatrices with All Ones1278 Palindrome Partitioning III1281 Subtract the Product and Sum of Digits of an Integer1282 Group the People Given the Group Size They Belong To1283 Find the Smallest Divisor Given a Threshold1284 Minimum Number of Flips to Convert Binary Matrix to Zero Matrix1286 Iterator for Combination1287 Element Appearing More Than 25% In Sorted Array1288 Remove Covered Intervals1289 Minimum Falling Path Sum II1290 Convert Binary Number in a Linked List to Integer1291 Sequential Digits1292 Maximum Side Length of a Square with Sum Less than or Equal to Threshold1293 Shortest Path in a Grid with Obstacles Elimination1295 Find Numbers with Even Number of Digits1296 Divide Array in Sets of K Consecutive Numbers1297 Maximum Number of Occurrences of a Substring1298 Maximum Candies You Can Get from Boxes1299 Replace Elements with Greatest Element on Right Side1300 Sum of Mutated Array Closest to Target1301 Number of Paths with Max Score1302 Deepest Leaves Sum1304 Find N Unique Integers Sum up to Zero1305 All Elements in Two Binary Search Trees1306 Jump Game III1307 Verbal Arithmetic Puzzle1309 Decrypt String from Alphabet to Integer Mapping1310 XOR Queries of a Subarray1311 Get Watched Videos by Your Friends1312 Minimum Insertion Steps to Make a String Palindrome1313 Decompress Run-Length Encoded List1314 Matrix Block Sum1315 Sum of Nodes with Even-Valued Grandparent1316 Distinct Echo Substrings1317 Convert Integer to the Sum of Two No-Zero Integers1318 Minimum Flips to Make a OR b Equal to c1319 Number of Operations to Make Network Connected1320 Minimum Distance to Type a Word Using Two Fingers1323 Maximum 69 Number1324 Print Words Vertically1325 Delete Leaves With a Given Value1326 Minimum Number of Taps to Open to Water a Garden1328 Break a Palindrome1329 Sort the Matrix Diagonally1330 Reverse Subarray To Maximize Array Value1331 Rank Transform of an Array1332 Remove Palindromic Subsequences1333 Filter Restaurants by Vegan-Friendly, Price and Distance1334 Find the City With the Smallest Number of Neighbors at a Threshold Distance1335 Minimum Difficulty of a Job Schedule1337 The K Weakest Rows in a Matrix1338 Reduce Array Size to The Half1339 Maximum Product of Splitted Binary Tree1340 Jump Game V1342 Number of Steps to Reduce a Number to Zero1343 Number of Sub-arrays of Size K and Average Greater than or Equal to Threshold1344 Angle Between Hands of a Clock1345 Jump Game IV1346 Check If N and Its Double Exist1347 Minimum Number of Steps to Make Two Strings Anagram1348 Tweet Counts Per Frequency1349 Maximum Students Taking Exam1351 Count Negative Numbers in a Sorted Matrix1352 Product of the Last K Numbers1353 Maximum Number of Events That Can Be Attended1354 Construct Target Array With Multiple Sums1356 Sort Integers by The Number of 1 Bits1357 Apply Discount Every n Orders1358 Number of Substrings Containing All Three Characters1359 Count All Valid Pickup and Delivery Options1360 Number of Days Between Two Dates1361 Validate Binary Tree Nodes1362 Closest Divisors1363 Largest Multiple of Three1365 How Many Numbers Are Smaller Than the Current Number1366 Rank Teams by Votes1367 Linked List in Binary Tree1368 Minimum Cost to Make at Least One Valid Path in a Grid1370 Increasing Decreasing String1371 Find the Longest Substring Containing Vowels in Even Counts1372 Longest ZigZag Path in a Binary Tree1373 Maximum Sum BST in Binary Tree1374 Generate a String With Characters That Have Odd Counts1375 Number of Times Binary String Is Prefix-Aligned1376 Time Needed to Inform All Employees1377 Frog Position After T Seconds1379 Find a Corresponding Node of a Binary Tree in a Clone of That Tree1380 Lucky Numbers in a Matrix1381 Design a Stack With Increment Operation1382 Balance a Binary Search Tree1383 Maximum Performance of a Team1385 Find the Distance Value Between Two Arrays1386 Cinema Seat Allocation1387 Sort Integers by The Power Value1388 Pizza With 3n Slices1389 Create Target Array in the Given Order1390 Four Divisors1391 Check if There is a Valid Path in a Grid1392 Longest Happy Prefix1394 Find Lucky Integer in an Array1395 Count Number of Teams1396 Design Underground System1397 Find All Good Strings1399 Count Largest Group1400 Construct K Palindrome Strings1401 Circle and Rectangle Overlapping1402 Reducing Dishes1403 Minimum Subsequence in Non-Increasing Order1404 Number of Steps to Reduce a Number in Binary Representation to One1405 Longest Happy String1406 Stone Game III1408 String Matching in an Array1409 Queries on a Permutation With Key1410 HTML Entity Parser1411 Number of Ways to Paint N × 3 Grid1413 Minimum Value to Get Positive Step by Step Sum1414 Find the Minimum Number of Fibonacci Numbers Whose Sum Is K1415 The k-th Lexicographical String of All Happy Strings of Length n1416 Restore The Array1417 Reformat The String1418 Display Table of Food Orders in a Restaurant1419 Minimum Number of Frogs Croaking1420 Build Array Where You Can Find The Maximum Exactly K Comparisons1422 Maximum Score After Splitting a String1423 Maximum Points You Can Obtain from Cards1424 Diagonal Traverse II1425 Constrained Subsequence Sum1431 Kids With the Greatest Number of Candies1432 Max Difference You Can Get From Changing an Integer1433 Check If a String Can Break Another String1434 Number of Ways to Wear Different Hats to Each Other1436 Destination City1437 Check If All 1's Are at Least Length K Places Away1438 Longest Continuous Subarray With Absolute Diff Less Than or Equal to Limit1439 Find the Kth Smallest Sum of a Matrix With Sorted Rows1441 Build an Array With Stack Operations1442 Count Triplets That Can Form Two Arrays of Equal XOR1443 Minimum Time to Collect All Apples in a Tree1444 Number of Ways of Cutting a Pizza1446 Consecutive Characters1447 Simplified Fractions1448 Count Good Nodes in Binary Tree1449 Form Largest Integer With Digits That Add up to Target1450 Number of Students Doing Homework at a Given Time1451 Rearrange Words in a Sentence1452 People Whose List of Favorite Companies Is Not a Subset of Another List1453 Maximum Number of Darts Inside of a Circular Dartboard1455 Check If a Word Occurs As a Prefix of Any Word in a Sentence1456 Maximum Number of Vowels in a Substring of Given Length1457 Pseudo-Palindromic Paths in a Binary Tree1458 Max Dot Product of Two Subsequences1460 Make Two Arrays Equal by Reversing Subarrays1461 Check If a String Contains All Binary Codes of Size K1462 Course Schedule IV1463 Cherry Pickup II1464 Maximum Product of Two Elements in an Array1465 Maximum Area of a Piece of Cake After Horizontal and Vertical Cuts1466 Reorder Routes to Make All Paths Lead to the City Zero1467 Probability of a Two Boxes Having The Same Number of Distinct Balls1470 Shuffle the Array1471 The k Strongest Values in an Array1472 Design Browser History1473 Paint House III1475 Final Prices With a Special Discount in a Shop1476 Subrectangle Queries1477 Find Two Non-overlapping Sub-arrays Each With Target Sum1478 Allocate Mailboxes1480 Running Sum of 1d Array1481 Least Number of Unique Integers after K Removals1482 Minimum Number of Days to Make m Bouquets1483 Kth Ancestor of a Tree Node1486 XOR Operation in an Array1487 Making File Names Unique1488 Avoid Flood in The City1489 Find Critical and Pseudo-Critical Edges in Minimum Spanning Tree1491 Average Salary Excluding the Minimum and Maximum Salary1492 The kth Factor of n1493 Longest Subarray of 1's After Deleting One Element1494 Parallel Courses II1496 Path Crossing1497 Check If Array Pairs Are Divisible by k1498 Number of Subsequences That Satisfy the Given Sum Condition1499 Max Value of Equation1502 Can Make Arithmetic Progression From Sequence1503 Last Moment Before All Ants Fall Out of a Plank1504 Count Submatrices With All Ones1505 Minimum Possible Integer After at Most K Adjacent Swaps On Digits1507 Reformat Date1508 Range Sum of Sorted Subarray Sums1509 Minimum Difference Between Largest and Smallest Value in Three Moves1510 Stone Game IV1512 Number of Good Pairs1513 Number of Substrings With Only 1s1514 Path with Maximum Probability1515 Best Position for a Service Centre1518 Water Bottles1519 Number of Nodes in the Sub-Tree With the Same Label (PRO)1520 Maximum Number of Non-Overlapping Substrings1521 Find a Value of a Mysterious Function Closest to Target1523 Count Odd Numbers in an Interval Range1524 Number of Sub-arrays With Odd Sum1525 Number of Good Ways to Split a String1526 Minimum Number of Increments on Subarrays to Form a Target Array1528 Shuffle String1529 Minimum Suffix Flips1530 Number of Good Leaf Nodes Pairs (PRO)1531 String Compression II1534 Count Good Triplets1535 Find the Winner of an Array Game1536 Minimum Swaps to Arrange a Binary Grid1537 Get the Maximum Score1539 Kth Missing Positive Number1540 Can Convert String in K Moves1541 Minimum Insertions to Balance a Parentheses String1542 Find Longest Awesome Substring1544 Make The String Great1545 Find Kth Bit in Nth Binary String1546 Maximum Number of Non-Overlapping Subarrays With Sum Equals Target1547 Minimum Cost to Cut a Stick1550 Three Consecutive Odds1551 Minimum Operations to Make Array Equal1552 Magnetic Force Between Two Balls1553 Minimum Number of Days to Eat N Oranges1556 Thousand Separator1557 Minimum Number of Vertices to Reach All Nodes1558 Minimum Numbers of Function Calls to Make Target Array1559 Detect Cycles in 2D Grid1560 Most Visited Sector in a Circular Track1561 Maximum Number of Coins You Can Get1562 Find Latest Group of Size M1563 Stone Game V1566 Detect Pattern of Length M Repeated K or More Times1567 Maximum Length of Subarray With Positive Product1568 Minimum Number of Days to Disconnect Island1569 Number of Ways to Reorder Array to Get Same BST1572 Matrix Diagonal Sum1573 Number of Ways to Split a String1574 Shortest Subarray to be Removed to Make Array Sorted1575 Count All Possible Routes1576 Replace All ?'s to Avoid Consecutive Repeating Characters1577 Number of Ways Where Square of Number Is Equal to Product of Two Numbers1578 Minimum Time to Make Rope Colorful1579 Remove Max Number of Edges to Keep Graph Fully Traversable1582 Special Positions in a Binary Matrix1583 Count Unhappy Friends1584 Min Cost to Connect All Points1585 Check If String Is Transformable With Substring Sort Operations1588 Sum of All Odd Length Subarrays1589 Maximum Sum Obtained of Any Permutation1590 Make Sum Divisible by P (PRO)1591 Strange Printer II1592 Rearrange Spaces Between Words1593 Split a String Into the Max Number of Unique Substrings1594 Maximum Non Negative Product in a Matrix1595 Minimum Cost to Connect Two Groups of Points1598 Crawler Log Folder1599 Maximum Profit of Operating a Centennial Wheel1600 Throne Inheritance1601 Maximum Number of Achievable Transfer Requests1603 Design Parking System1604 Alert Using Same Key-Card Three or More Times in a One Hour Period1605 Find Valid Matrix Given Row and Column Sums1606 Find Servers That Handled Most Number of Requests (PRO)1608 Special Array With X Elements Greater Than or Equal X1609 Even Odd Tree1610 Maximum Number of Visible Points1611 Minimum One Bit Operations to Make Integers Zero1614 Maximum Nesting Depth of the Parentheses1615 Maximal Network Rank1616 Split Two Strings to Make Palindrome1617 Count Subtrees With Max Distance Between Cities1619 Mean of Array After Removing Some Elements (PRO)1620 Coordinate With Maximum Network Quality1621 Number of Sets of K Non-Overlapping Line Segments1622 Fancy Sequence1624 Largest Substring Between Two Equal Characters1625 Lexicographically Smallest String After Applying Operations1626 Best Team With No Conflicts1627 Graph Connectivity With Threshold1629 Slowest Key1630 Arithmetic Subarrays1631 Path With Minimum Effort1632 Rank Transform of a Matrix1636 Sort Array by Increasing Frequency1637 Widest Vertical Area Between Two Points Containing No Points1638 Count Substrings That Differ by One Character (PRO)1639 Number of Ways to Form a Target String Given a Dictionary1640 Check Array Formation Through Concatenation1641 Count Sorted Vowel Strings1642 Furthest Building You Can Reach1643 Kth Smallest Instructions1646 Get Maximum in Generated Array1647 Minimum Deletions to Make Character Frequencies Unique1648 Sell Diminishing-Valued Colored Balls1649 Create Sorted Array through Instructions (PRO)1652 Defuse the Bomb1653 Minimum Deletions to Make String Balanced1654 Minimum Jumps to Reach Home1655 Distribute Repeating Integers1656 Design an Ordered Stream1657 Determine if Two Strings Are Close1658 Minimum Operations to Reduce X to Zero1659 Maximize Grid Happiness1662 Check If Two String Arrays are Equivalent1663 Smallest String With A Given Numeric Value1664 Ways to Make a Fair Array1665 Minimum Initial Energy to Finish Tasks1668 Maximum Repeating Substring (PRO)1669 Merge In Between Linked Lists (PRO)1670 Design Front Middle Back Queue1671 Minimum Number of Removals to Make Mountain Array1672 Richest Customer Wealth1673 Find the Most Competitive Subsequence1674 Minimum Moves to Make Array Complementary1675 Minimize Deviation in Array (PRO)1678 Goal Parser Interpretation1679 Max Number of K-Sum Pairs1680 Concatenation of Consecutive Binary Numbers1681 Minimum Incompatibility1684 Count the Number of Consistent Strings (PRO)1685 Sum of Absolute Differences in a Sorted Array1686 Stone Game VI1687 Delivering Boxes from Storage to Ports1688 Count of Matches in Tournament1689 Partitioning Into Minimum Number Of Deci-Binary Numbers1690 Stone Game VII1691 Maximum Height by Stacking Cuboids 1694 Reformat Phone Number1695 Maximum Erasure Value1696 Jump Game VI1697 Checking Existence of Edge Length Limited Paths1700 Number of Students Unable to Eat Lunch1701 Average Waiting Time1702 Maximum Binary String After Change1703 Minimum Adjacent Swaps for K Consecutive Ones1704 Determine if String Halves Are Alike1705 Maximum Number of Eaten Apples1706 Where Will the Ball Fall1707 Maximum XOR With an Element From Array (PRO)1710 Maximum Units on a Truck1711 Count Good Meals (PRO)1712 Ways to Split Array Into Three Subarrays1713 Minimum Operations to Make a Subsequence1716 Calculate Money in Leetcode Bank1717 Maximum Score From Removing Substrings1718 Construct the Lexicographically Largest Valid Sequence1719 Number Of Ways To Reconstruct A Tree1720 Decode XORed Array1721 Swapping Nodes in a Linked List (PRO)1722 Minimize Hamming Distance After Swap Operations1723 Find Minimum Time to Finish All Jobs1725 Number Of Rectangles That Can Form The Largest Square1726 Tuple with Same Product1727 Largest Submatrix With Rearrangements1728 Cat and Mouse II1732 Find the Highest Altitude1733 Minimum Number of People to Teach1734 Decode XORed Permutation1735 Count Ways to Make Array With Product1736 Latest Time by Replacing Hidden Digits1737 Change Minimum Characters to Satisfy One of Three Conditions1738 Find Kth Largest XOR Coordinate Value (PRO)1739 Building Boxes1742 Maximum Number of Balls in a Box1743 Restore the Array From Adjacent Pairs1744 Can You Eat Your Favorite Candy on Your Favorite Day?1745 Palindrome Partitioning IV1748 Sum of Unique Elements (PRO)1749 Maximum Absolute Sum of Any Subarray1750 Minimum Length of String After Deleting Similar Ends1751 Maximum Number of Events That Can Be Attended II1752 Check if Array Is Sorted and Rotated1753 Maximum Score From Removing Stones1754 Largest Merge Of Two Strings1755 Closest Subsequence Sum1758 Minimum Changes To Make Alternating Binary String1759 Count Number of Homogenous Substrings1760 Minimum Limit of Balls in a Bag1761 Minimum Degree of a Connected Trio in a Graph1763 Longest Nice Substring (PRO)1764 Form Array by Concatenating Subarrays of Another Array1765 Map of Highest Peak1766 Tree of Coprimes1768 Merge Strings Alternately (PRO)1769 Minimum Number of Operations to Move All Balls to Each Box1770 Maximum Score from Performing Multiplication Operations1771 Maximize Palindrome Length From Subsequences1773 Count Items Matching a Rule1774 Closest Dessert Cost1775 Equal Sum Arrays With Minimum Number of Operations1776 Car Fleet II1779 Find Nearest Point That Has the Same X or Y Coordinate1780 Check if Number is a Sum of Powers of Three1781 Sum of Beauty of All Substrings (PRO)1782 Count Pairs Of Nodes1784 Check if Binary String Has at Most One Segment of Ones1785 Minimum Elements to Add to Form a Given Sum1786 Number of Restricted Paths From First to Last Node1787 Make the XOR of All Segments Equal to Zero1790 Check if One String Swap Can Make Strings Equal1791 Find Center of Star Graph1792 Maximum Average Pass Ratio (PRO)1793 Maximum Score of a Good Subarray1796 Second Largest Digit in a String1797 Design Authentication Manager1798 Maximum Number of Consecutive Values You Can Make1799 Maximize Score After N Operations1800 Maximum Ascending Subarray Sum1801 Number of Orders in the Backlog1802 Maximum Value at a Given Index in a Bounded Array1803 Count Pairs With XOR in a Range (PRO)1805 Number of Different Integers in a String1806 Minimum Number of Operations to Reinitialize a Permutation1807 Evaluate the Bracket Pairs of a String (PRO)1808 Maximize Number of Nice Divisors1812 Determine Color of a Chessboard Square1813 Sentence Similarity III1814 Count Nice Pairs in an Array (PRO)1815 Maximum Number of Groups Getting Fresh Donuts1816 Truncate Sentence1817 Finding the Users Active Minutes (PRO)1818 Minimum Absolute Sum Difference1819 Number of Different Subsequences GCDs1822 Sign of the Product of an Array1823 Find the Winner of the Circular Game1824 Minimum Sideway Jumps1825 Finding MK Average1827 Minimum Operations to Make the Array Increasing1828 Queries on Number of Points Inside a Circle1829 Maximum XOR for Each Query1830 Minimum Number of Operations to Make String Sorted1832 Check if the Sentence Is Pangram1833 Maximum Ice Cream Bars1834 Single-Threaded CPU (PRO)1835 Find XOR Sum of All Pairs Bitwise AND1837 Sum of Digits in Base K1838 Frequency of the Most Frequent Element1839 Longest Substring Of All Vowels in Order (PRO)1840 Maximum Building Height1844 Replace All Digits with Characters (PRO)1845 Seat Reservation Manager1846 Maximum Element After Decreasing and Rearranging1847 Closest Room1848 Minimum Distance to the Target Element1849 Splitting a String Into Descending Consecutive Values1850 Minimum Adjacent Swaps to Reach the Kth Smallest Number1851 Minimum Interval to Include Each Query (PRO)1854 Maximum Population Year (PRO)1855 Maximum Distance Between a Pair of Values1856 Maximum Subarray Min-Product1857 Largest Color Value in a Directed Graph1859 Sorting the Sentence1860 Incremental Memory Leak1861 Rotating the Box1862 Sum of Floored Pairs1863 Sum of All Subset XOR Totals1864 Minimum Number of Swaps to Make the Binary String Alternating1865 Finding Pairs With a Certain Sum1866 Number of Ways to Rearrange Sticks With K Sticks Visible1869 Longer Contiguous Segments of Ones than Zeros1870 Minimum Speed to Arrive on Time1871 Jump Game VII1872 Stone Game VIII1876 Substrings of Size Three with Distinct Characters (PRO)1877 Minimize Maximum Pair Sum in Array1878 Get Biggest Three Rhombus Sums in a Grid1879 Minimum XOR Sum of Two Arrays1880 Check if Word Equals Summation of Two Words (PRO)1881 Maximum Value after Insertion1882 Process Tasks Using Servers (PRO)1883 Minimum Skips to Arrive at Meeting On Time1884 Egg Drop With 2 Eggs and N Floors1886 Determine Whether Matrix Can Be Obtained By Rotation (PRO)1887 Reduction Operations to Make the Array Elements Equal1888 Minimum Number of Flips to Make the Binary String Alternating1889 Minimum Space Wasted From Packaging1893 Check if All the Integers in a Range Are Covered1894 Find the Student that Will Replace the Chalk1895 Largest Magic Square (PRO)1896 Minimum Cost to Change the Final Value of Expression1897 Redistribute Characters to Make All Strings Equal1898 Maximum Number of Removable Characters1899 Merge Triplets to Form Target Triplet1900 The Earliest and Latest Rounds Where Players Compete1901 Find a Peak Element II1903 Largest Odd Number in String (PRO)1904 The Number of Full Rounds You Have Played1905 Count Sub Islands1906 Minimum Absolute Difference Queries (PRO)1909 Remove One Element to Make the Array Strictly Increasing1910 Remove All Occurrences of a Substring (PRO)1911 Maximum Alternating Subsequence Sum1912 Design Movie Rental System1913 Maximum Product Difference Between Two Pairs1914 Cyclically Rotating a Grid (PRO)1915 Number of Wonderful Substrings1916 Count Ways to Build Rooms in an Ant Colony1920 Build Array from Permutation (PRO)1921 Eliminate Maximum Number of Monsters1922 Count Good Numbers1923 Longest Common Subpath (PRO)1925 Count Square Sum Triples (PRO)1926 Nearest Exit from Entrance in Maze1927 Sum Game1928 Minimum Cost to Reach Destination in Time1929 Concatenation of Array (PRO)1930 Unique Length-3 Palindromic Subsequences (PRO)1931 Painting a Grid With Three Different Colors1932 Merge BSTs to Create Single BST1935 Maximum Number of Words You Can Type (PRO)1936 Add Minimum Number of Rungs1937 Maximum Number of Points with Cost1938 Maximum Genetic Difference Query (PRO)1941 Check if All Characters Have Equal Number of Occurrences (PRO)1942 The Number of the Smallest Unoccupied Chair1943 Describe the Painting1944 Number of Visible People in a Queue (PRO)1945 Sum of Digits of String After Convert1946 Largest Number After Mutating Substring1947 Maximum Compatibility Score Sum1948 Delete Duplicate Folders in System (PRO)1952 Three Divisors1953 Maximum Number of Weeks for Which You Can Work1954 Minimum Garden Perimeter to Collect Enough Apples1955 Count Number of Special Subsequences1957 Delete Characters to Make Fancy String (PRO)1958 Check if Move is Legal (PRO)1959 Minimum Total Space Wasted With K Resizing Operations1960 Maximum Product of the Length of Two Palindromic Substrings1961 Check If String Is a Prefix of Array (PRO)1962 Remove Stones to Minimize the Total (PRO)1963 Minimum Number of Swaps to Make the String Balanced (PRO)1964 Find the Longest Valid Obstacle Course at Each Position1967 Number of Strings That Appear as Substrings in Word (PRO)1968 Array With Elements Not Equal to Average of Neighbors1969 Minimum Non-Zero Product of the Array Elements1970 Last Day Where You Can Still Cross (PRO)1971 Find if Path Exists in Graph1974 Minimum Time to Type Word Using Special Typewriter (PRO)1975 Maximum Matrix Sum1976 Number of Ways to Arrive at Destination1977 Number of Ways to Separate Numbers1979 Find Greatest Common Divisor of Array1980 Find Unique Binary String1981 Minimize the Difference Between Target and Chosen Elements1982 Find Array Given Subset Sums1984 Minimum Difference Between Highest and Lowest of K Scores1985 Find the Kth Largest Integer in the Array1986 Minimum Number of Work Sessions to Finish the Tasks1987 Number of Unique Good Subsequences1991 Find the Middle Index in Array (PRO)1992 Find All Groups of Farmland (PRO)1993 Operations on Tree1994 The Number of Good Subsets1995 Count Special Quadruplets (PRO)1996 The Number of Weak Characters in the Game1997 First Day Where You Have Been in All the Rooms1998 GCD Sort of an Array (PRO)2000 Reverse Prefix of Word (PRO)2001 Number of Pairs of Interchangeable Rectangles2002 Maximum Product of the Length of Two Palindromic Subsequences2003 Smallest Missing Genetic Value in Each Subtree2006 Count Number of Pairs With Absolute Difference K2007 Find Original Array From Doubled Array2008 Maximum Earnings From Taxi2009 Minimum Number of Operations to Make Array Continuous2011 Final Value of Variable After Performing Operations2012 Sum of Beauty in the Array2013 Detect Squares2014 Longest Subsequence Repeated k Times2016 Maximum Difference Between Increasing Elements2017 Grid Game2018 Check if Word Can Be Placed In Crossword2019 The Score of Students Solving Math Expression2022 Convert 1D Array Into 2D Array2023 Number of Pairs of Strings With Concatenation Equal to Target2024 Maximize the Confusion of an Exam2025 Maximum Number of Ways to Partition an Array2027 Minimum Moves to Convert String2028 Find Missing Observations2029 Stone Game IX2030 Smallest K-Length Subsequence With Occurrences of a Letter2032 Two Out of Three2033 Minimum Operations to Make a Uni-Value Grid2034 Stock Price Fluctuation 2035 Partition Array Into Two Arrays to Minimize Sum Difference2037 Minimum Number of Moves to Seat Everyone2038 Remove Colored Pieces if Both Neighbors are the Same Color2039 The Time When the Network Becomes Idle2040 Kth Smallest Product of Two Sorted Arrays2042 Check if Numbers Are Ascending in a Sentence2043 Simple Bank System2044 Count Number of Maximum Bitwise-OR Subsets2045 Second Minimum Time to Reach Destination2047 Number of Valid Words in a Sentence2048 Next Greater Numerically Balanced Number2049 Count Nodes With the Highest Score2050 Parallel Courses III2053 Kth Distinct String in an Array2054 Two Best Non-Overlapping Events2055 Plates Between Candles2056 Number of Valid Move Combinations On Chessboard2057 Smallest Index With Equal Value2058 Find the Minimum and Maximum Number of Nodes Between Critical Points2059 Minimum Operations to Convert Number2060 Check if an Original String Exists Given Two Encoded Strings2062 Count Vowel Substrings of a String2063 Vowels of All Substrings2064 Minimized Maximum of Products Distributed to Any Store2065 Maximum Path Quality of a Graph2068 Check Whether Two Strings are Almost Equivalent2069 Walking Robot Simulation II2070 Most Beautiful Item for Each Query2071 Maximum Number of Tasks You Can Assign2073 Time Needed to Buy Tickets2074 Reverse Nodes in Even Length Groups2075 Decode the Slanted Ciphertext2076 Process Restricted Friend Requests2078 Two Furthest Houses With Different Colors2079 Watering Plants2080 Range Frequency Queries2081 Sum of k-Mirror Numbers2085 Count Common Words With One Occurrence2086 Minimum Number of Food Buckets to Feed the Hamsters2087 Minimum Cost Homecoming of a Robot in a Grid2088 Count Fertile Pyramids in a Land2089 Find Target Indices After Sorting Array2090 K Radius Subarray Averages2091 Removing Minimum and Maximum From Array2092 Find All People With Secret2094 Finding 3-Digit Even Numbers2095 Delete the Middle Node of a Linked List2096 Step-By-Step Directions From a Binary Tree Node to Another2097 Valid Arrangement of Pairs2099 Find Subsequence of Length K With the Largest Sum2100 Find Good Days to Rob the Bank2101 Detonate the Maximum Bombs2102 Sequentially Ordinal Rank Tracker2103 Rings and Rods2104 Sum of Subarray Ranges2105 Watering Plants II2106 Maximum Fruits Harvested After at Most K Steps2108 Find First Palindromic String in the Array2109 Adding Spaces to a String2110 Number of Smooth Descent Periods of a Stock2111 Minimum Operations to Make the Array K-Increasing2114 Maximum Number of Words Found in Sentences2115 Find All Possible Recipes from Given Supplies2116 Check if a Parentheses String Can Be Valid2117 Abbreviating the Product of a Range2119 A Number After a Double Reversal2120 Execution of All Suffix Instructions Staying in a Grid2121 Intervals Between Identical Elements2122 Recover the Original Array2124 Check if All A's Appears Before All B's2125 Number of Laser Beams in a Bank2126 Destroying Asteroids2127 Maximum Employees to Be Invited to a Meeting2129 Capitalize the Title2130 Maximum Twin Sum of a Linked List2131 Longest Palindrome by Concatenating Two Letter Words2132 Stamping the Grid2133 Check if Every Row and Column Contains All Numbers2134 Minimum Swaps to Group All 1's Together II2135 Count Words Obtained After Adding a Letter2136 Earliest Possible Day of Full Bloom2138 Divide a String Into Groups of Size k2139 Minimum Moves to Reach Target Score2140 Solving Questions With Brainpower2141 Maximum Running Time of N Computers2144 Minimum Cost of Buying Candies With Discount2145 Count the Hidden Sequences2146 K Highest Ranked Items Within a Price Range2147 Number of Ways to Divide a Long Corridor2148 Count Elements With Strictly Smaller and Greater Elements 2149 Rearrange Array Elements by Sign2150 Find All Lonely Numbers in the Array2151 Maximum Good People Based on Statements2154 Keep Multiplying Found Values by Two2155 All Divisions With the Highest Score of a Binary Array2156 Find Substring With Given Hash Value2157 Groups of Strings (PRO)2160 Minimum Sum of Four Digit Number After Splitting Digits2161 Partition Array According to Given Pivot2162 Minimum Cost to Set Cooking Time2163 Minimum Difference in Sums After Removal of Elements2164 Sort Even and Odd Indices Independently2165 Smallest Value of the Rearranged Number2166 Design Bitset2167 Minimum Time to Remove All Cars Containing Illegal Goods2169 Count Operations to Obtain Zero2170 Minimum Operations to Make the Array Alternating2171 Removing Minimum Number of Magic Beans2172 Maximum AND Sum of Array2176 Count Equal and Divisible Pairs in an Array2177 Find Three Consecutive Integers That Sum to a Given Number2178 Maximum Split of Positive Even Integers2179 Count Good Triplets in an Array2180 Count Integers With Even Digit Sum2181 Merge Nodes in Between Zeros2182 Construct String With Repeat Limit2183 Count Array Pairs Divisible by K2185 Counting Words With a Given Prefix2186 Minimum Number of Steps to Make Two Strings Anagram II2187 Minimum Time to Complete Trips2188 Minimum Time to Finish the Race2190 Most Frequent Number Following Key In an Array2191 Sort the Jumbled Numbers2192 All Ancestors of a Node in a Directed Acyclic Graph2193 Minimum Number of Moves to Make Palindrome2194 Cells in a Range on an Excel Sheet2195 Append K Integers With Minimal Sum2196 Create Binary Tree From Descriptions2197 Replace Non-Coprime Numbers in Array2200 Find All K-Distant Indices in an Array2201 Count Artifacts That Can Be Extracted2202 Maximize the Topmost Element After K Moves2203 Minimum Weighted Subgraph With the Required Paths2206 Divide Array Into Equal Pairs2207 Maximize Number of Subsequences in a String2208 Minimum Operations to Halve Array Sum2209 Minimum White Tiles After Covering With Carpets2210 Count Hills and Valleys in an Array2211 Count Collisions on a Road2212 Maximum Points in an Archery Competition2213 Longest Substring of One Repeating Character2215 Find the Difference of Two Arrays2216 Minimum Deletions to Make Array Beautiful2217 Find Palindrome With Fixed Length2218 Maximum Value of K Coins From Piles2220 Minimum Bit Flips to Convert Number2221 Find Triangular Sum of an Array2222 Number of Ways to Select Buildings2223 Sum of Scores of Built Strings2224 Minimum Number of Operations to Convert Time2225 Find Players With Zero or One Losses2226 Maximum Candies Allocated to K Children2227 Encrypt and Decrypt Strings2231 Largest Number After Digit Swaps by Parity2232 Minimize Result by Adding Parentheses to Expression2233 Maximum Product After K Increments2234 Maximum Total Beauty of the Gardens2235 Add Two Integers2236 Root Equals Sum of Children2239 Find Closest Number to Zero2240 Number of Ways to Buy Pens and Pencils2241 Design an ATM Machine2242 Maximum Score of a Node Sequence2243 Calculate Digit Sum of a String2244 Minimum Rounds to Complete All Tasks2245 Maximum Trailing Zeros in a Cornered Path2246 Longest Path With Different Adjacent Characters2248 Intersection of Multiple Arrays2249 Count Lattice Points Inside a Circle2250 Count Number of Rectangles Containing Each Point2251 Number of Flowers in Full Bloom2255 Count Prefixes of a Given String2256 Minimum Average Difference2257 Count Unguarded Cells in the Grid2258 Escape the Spreading Fire2259 Remove Digit From Number to Maximize Result2260 Minimum Consecutive Cards to Pick Up2261 K Divisible Elements Subarrays (PRO)2262 Total Appeal of A String2264 Largest 3-Same-Digit Number in String2265 Count Nodes Equal to Average of Subtree2266 Count Number of Texts2267 Check if There Is a Valid Parentheses String Path2269 Find the K-Beauty of a Number2270 Number of Ways to Split Array2271 Maximum White Tiles Covered by a Carpet2272 Substring With Largest Variance2273 Find Resultant Array After Removing Anagrams2274 Maximum Consecutive Floors Without Special Floors2275 Largest Combination With Bitwise AND Greater Than Zero2276 Count Integers in Intervals2278 Percentage of Letter in String2279 Maximum Bags With Full Capacity of Rocks2280 Minimum Lines to Represent a Line Chart2281 Sum of Total Strength of Wizards2283 Check if Number Has Equal Digit Count and Digit Value2284 Sender With Largest Word Count2285 Maximum Total Importance of Roads2286 Booking Concert Tickets in Groups2287 Rearrange Characters to Make Target String2288 Apply Discount to Prices2289 Steps to Make Array Non-decreasing2290 Minimum Obstacle Removal to Reach Corner2293 Min Max Game2294 Partition Array Such That Maximum Difference Is K2295 Replace Elements in an Array2296 Design a Text Editor2299 Strong Password Checker II2300 Successful Pairs of Spells and Potions2301 Match Substring After Replacement (PRO)2302 Count Subarrays With Score Less Than K2303 Calculate Amount Paid in Taxes2304 Minimum Path Cost in a Grid2305 Fair Distribution of Cookies2306 Naming a Company2309 Greatest English Letter in Upper and Lower Case2310 Sum of Numbers With Units Digit K2311 Longest Binary Subsequence Less Than or Equal to K2312 Selling Pieces of Wood2315 Count Asterisks2316 Count Unreachable Pairs of Nodes in an Undirected Graph2317 Maximum XOR After Operations 2318 Number of Distinct Roll Sequences2319 Check if Matrix Is X-Matrix2320 Count Number of Ways to Place Houses2321 Maximum Score Of Spliced Array2322 Minimum Score After Removals on a Tree2325 Decode the Message2326 Spiral Matrix IV2327 Number of People Aware of a Secret2328 Number of Increasing Paths in a Grid2331 Evaluate Boolean Binary Tree2332 The Latest Time to Catch a Bus2333 Minimum Sum of Squared Difference2334 Subarray With Elements Greater Than Varying Threshold2335 Minimum Amount of Time to Fill Cups2336 Smallest Number in Infinite Set2337 Move Pieces to Obtain a String2338 Count the Number of Ideal Arrays2341 Maximum Number of Pairs in Array2342 Max Sum of a Pair With Equal Sum of Digits2343 Query Kth Smallest Trimmed Number2344 Minimum Deletions to Make Array Divisible2347 Best Poker Hand2348 Number of Zero-Filled Subarrays2349 Design a Number Container System2350 Shortest Impossible Sequence of Rolls2351 First Letter to Appear Twice2352 Equal Row and Column Pairs2353 Design a Food Rating System2354 Number of Excellent Pairs2357 Make Array Zero by Subtracting Equal Amounts2358 Maximum Number of Groups Entering a Competition2359 Find Closest Node to Given Two Nodes2360 Longest Cycle in a Graph2363 Merge Similar Items2364 Count Number of Bad Pairs2365 Task Scheduler II2366 Minimum Replacements to Sort the Array2367 Number of Arithmetic Triplets2368 Reachable Nodes With Restrictions2369 Check if There is a Valid Partition For The Array2370 Longest Ideal Subsequence2373 Largest Local Values in a Matrix2374 Node With Highest Edge Score2375 Construct Smallest Number From DI String2376 Count Special Integers2379 Minimum Recolors to Get K Consecutive Black Blocks2380 Time Needed to Rearrange a Binary String2381 Shifting Letters II2382 Maximum Segment Sum After Removals2383 Minimum Hours of Training to Win a Competition2384 Largest Palindromic Number2385 Amount of Time for Binary Tree to Be Infected2386 Find the K-Sum of an Array2389 Longest Subsequence With Limited Sum2390 Removing Stars From a String2391 Minimum Amount of Time to Collect Garbage2392 Build a Matrix With Conditions2395 Find Subarrays With Equal Sum2396 Strictly Palindromic Number2397 Maximum Rows Covered by Columns2398 Maximum Number of Robots Within Budget2399 Check Distances Between Same Letters2400 Number of Ways to Reach a Position After Exactly k Steps2401 Longest Nice Subarray2402 Meeting Rooms III2404 Most Frequent Even Element2405 Optimal Partition of String2406 Divide Intervals Into Minimum Number of Groups2407 Longest Increasing Subsequence II2409 Count Days Spent Together2410 Maximum Matching of Players With Trainers2411 Smallest Subarrays With Maximum Bitwise OR2412 Minimum Money Required Before Transactions2413 Smallest Even Multiple2414 Length of the Longest Alphabetical Continuous Substring2415 Reverse Odd Levels of Binary Tree2416 Sum of Prefix Scores of Strings2418 Sort the People2419 Longest Subarray With Maximum Bitwise AND2420 Find All Good Indices2421 Number of Good Paths2423 Remove Letter To Equalize Frequency2424 Longest Uploaded Prefix2425 Bitwise XOR of All Pairings2426 Number of Pairs Satisfying Inequality2427 Number of Common Factors2428 Maximum Sum of an Hourglass2429 Minimize XOR2430 Maximum Deletions on a String2432 The Employee That Worked on the Longest Task2433 Find The Original Array of Prefix Xor2434 Using a Robot to Print the Lexicographically Smallest String2435 Paths in Matrix Whose Sum Is Divisible by K2437 Number of Valid Clock Times2438 Range Product Queries of Powers2439 Minimize Maximum of Array2440 Create Components With Same Value2441 Largest Positive Integer That Exists With Its Negative2442 Count Number of Distinct Integers After Reverse Operations2443 Sum of Number and Its Reverse2444 Count Subarrays With Fixed Bounds2446 Determine if Two Events Have Conflict2447 Number of Subarrays With GCD Equal to K2448 Minimum Cost to Make Array Equal2449 Minimum Number of Operations to Make Arrays Similar2451 Odd String Difference2452 Words Within Two Edits of Dictionary (PRO)2453 Destroy Sequential Targets2454 Next Greater Element IV2455 Average Value of Even Numbers That Are Divisible by Three2456 Most Popular Video Creator2457 Minimum Addition to Make Integer Beautiful2458 Height of Binary Tree After Subtree Removal Queries2460 Apply Operations to an Array2461 Maximum Sum of Distinct Subarrays With Length K2462 Total Cost to Hire K Workers2463 Minimum Total Distance Traveled2465 Number of Distinct Averages2466 Count Ways To Build Good Strings2467 Most Profitable Path in a Tree2468 Split Message Based on Limit2469 Convert the Temperature2470 Number of Subarrays With LCM Equal to K2471 Minimum Number of Operations to Sort a Binary Tree by Level2472 Maximum Number of Non-overlapping Palindrome Substrings2475 Number of Unequal Triplets in Array2476 Closest Nodes Queries in a Binary Search Tree2477 Minimum Fuel Cost to Report to the Capital2478 Number of Beautiful Partitions2481 Minimum Cuts to Divide a Circle2482 Difference Between Ones and Zeros in Row and Column2483 Minimum Penalty for a Shop2484 Count Palindromic Subsequences2485 Find the Pivot Integer2486 Append Characters to String to Make Subsequence2487 Remove Nodes From Linked List2488 Count Subarrays With Median K2490 Circular Sentence2491 Divide Players Into Teams of Equal Skill2492 Minimum Score of a Path Between Two Cities2493 Divide Nodes Into the Maximum Number of Groups2496 Maximum Value of a String in an Array2497 Maximum Star Sum of a Graph2498 Frog Jump II2499 Minimum Total Cost to Make Arrays Unequal2500 Delete Greatest Value in Each Row2501 Longest Square Streak in an Array2502 Design Memory Allocator2503 Maximum Number of Points From Grid Queries2506 Count Pairs Of Similar Strings2507 Smallest Value After Replacing With Sum of Prime Factors2508 Add Edges to Make Degrees of All Nodes Even2509 Cycle Length Queries in a Tree2511 Maximum Enemy Forts That Can Be Captured2512 Reward Top K Students2513 Minimize the Maximum of Two Arrays2514 Count Anagrams2515 Shortest Distance to Target String in a Circular Array2516 Take K of Each Character From Left and Right2517 Maximum Tastiness of Candy Basket2518 Number of Great Partitions2520 Count the Digits That Divide a Number2521 Distinct Prime Factors of Product of Array2522 Partition String Into Substrings With Values at Most K2523 Closest Prime Numbers in Range2525 Categorize Box According to Criteria2526 Find Consecutive Integers from a Data Stream2527 Find Xor-Beauty of Array2528 Maximize the Minimum Powered City2529 Maximum Count of Positive Integer and Negative Integer2530 Maximal Score After Applying K Operations2531 Make Number of Distinct Characters Equal (PRO)2532 Time to Cross a Bridge2535 Difference Between Element Sum and Digit Sum of an Array2536 Increment Submatrices by One2537 Count the Number of Good Subarrays2538 Difference Between Maximum and Minimum Price Sum2540 Minimum Common Value2541 Minimum Operations to Make Array Equal II2542 Maximum Subsequence Score2543 Check if Point Is Reachable2544 Alternating Digit Sum2545 Sort the Students by Their Kth Score2546 Apply Bitwise Operations to Make Strings Equal2547 Minimum Cost to Split an Array2549 Count Distinct Numbers on Board2550 Count Collisions of Monkeys on a Polygon2551 Put Marbles in Bags2552 Count Increasing Quadruplets2553 Separate the Digits in an Array2554 Maximum Number of Integers to Choose From a Range I2555 Maximize Win From Two Segments2556 Disconnect Path in a Binary Matrix by at Most One Flip2558 Take Gifts From the Richest Pile2559 Count Vowel Strings in Ranges2560 House Robber IV2561 Rearranging Fruits2562 Find the Array Concatenation Value2563 Count the Number of Fair Pairs2564 Substring XOR Queries (PRO)2565 Subsequence With the Minimum Score2566 Maximum Difference by Remapping a Digit2567 Minimum Score by Changing Two Elements2568 Minimum Impossible OR2569 Handling Sum Queries After Update2570 Merge Two 2D Arrays by Summing Values2571 Minimum Operations to Reduce an Integer to 02572 Count the Number of Square-Free Subsets2573 Find the String with LCP2574 Left and Right Sum Differences2575 Find the Divisibility Array of a String2576 Find the Maximum Number of Marked Indices2577 Minimum Time to Visit a Cell In a Grid2578 Split With Minimum Sum2579 Count Total Number of Colored Cells2580 Count Ways to Group Overlapping Ranges2581 Count Number of Possible Root Nodes2582 Pass the Pillow2583 Kth Largest Sum in a Binary Tree2584 Split the Array to Make Coprime Products2585 Number of Ways to Earn Points2586 Count the Number of Vowel Strings in Range2587 Rearrange Array to Maximize Prefix Score2588 Count the Number of Beautiful Subarrays2589 Minimum Time to Complete All Tasks2591 Distribute Money to Maximum Children2592 Maximize Greatness of an Array2593 Find Score of an Array After Marking All Elements2594 Minimum Time to Repair Cars2595 Number of Even and Odd Bits2596 Check Knight Tour Configuration2597 The Number of Beautiful Subsets2598 Smallest Missing Non-negative Integer After Operations (PRO)2600 K Items With the Maximum Sum2601 Prime Subtraction Operation2602 Minimum Operations to Make All Array Elements Equal2603 Collect Coins in a Tree2605 Form Smallest Number From Two Digit Arrays2606 Find the Substring With Maximum Cost2607 Make K-Subarray Sums Equal2608 Shortest Cycle in a Graph2609 Find the Longest Balanced Substring of a Binary String2610 Convert an Array Into a 2D Array With Conditions2611 Mice and Cheese2612 Minimum Reverse Operations2614 Prime In Diagonal2615 Sum of Distances2616 Minimize the Maximum Difference of Pairs2617 Minimum Number of Visited Cells in a Grid2639 Find the Width of Columns of a Grid2640 Find the Score of All Prefixes of an Array2641 Cousins in Binary Tree II2642 Design Graph With Shortest Path Calculator2643 Row With Maximum Ones2644 Find the Maximum Divisibility Score2645 Minimum Additions to Make Valid String2646 Minimize the Total Price of the Trips2651 Calculate Delayed Arrival Time2652 Sum Multiples2653 Sliding Subarray Beauty2654 Minimum Number of Operations to Make All Array Elements Equal to 12656 Maximum Sum With Exactly K Elements 2657 Find the Prefix Common Array of Two Arrays2658 Maximum Number of Fish in a Grid2659 Make Array Empty2660 Determine the Winner of a Bowling Game2661 First Completely Painted Row or Column2662 Minimum Cost of a Path With Special Roads2663 Lexicographically Smallest Beautiful String2670 Find the Distinct Difference Array2671 Frequency Tracker2672 Number of Adjacent Elements With the Same Color2673 Make Costs of Paths Equal in a Binary Tree2678 Number of Senior Citizens2679 Sum in a Matrix2680 Maximum OR2681 Power of Heroes2682 Find the Losers of the Circular Game2683 Neighboring Bitwise XOR2684 Maximum Number of Moves in a Grid2685 Count the Number of Complete Components2696 Minimum String Length After Removing Substrings2697 Lexicographically Smallest Palindrome2698 Find the Punishment Number of an Integer2699 Modify Graph Edge Weights2706 Buy Two Chocolates2707 Extra Characters in a String2708 Maximum Strength of a Group2709 Greatest Common Divisor Traversal (PRO)2710 Remove Trailing Zeros From a String2711 Difference of Number of Distinct Values on Diagonals2712 Minimum Cost to Make All Characters Equal2713 Maximum Strictly Increasing Cells in a Matrix2716 Minimize String Length2717 Semi-Ordered Permutation2718 Sum of Matrix After Queries2719 Count of Integers2729 Check if The Number is Fascinating (PRO)2730 Find the Longest Semi-Repetitive Substring2731 Movement of Robots2732 Find a Good Subset of the Matrix2733 Neither Minimum nor Maximum2734 Lexicographically Smallest String After Substring Operation2735 Collecting Chocolates2736 Maximum Sum Queries2739 Total Distance Traveled2740 Find the Value of the Partition2741 Special Permutations2742 Painting the Walls2744 Find Maximum Number of String Pairs2745 Construct the Longest New String2746 Decremental String Concatenation2747 Count Zero Request Servers2748 Number of Beautiful Pairs2749 Minimum Operations to Make the Integer Zero2750 Ways to Split Array Into Good Subarrays2751 Robot Collisions2760 Longest Even Odd Subarray With Threshold2761 Prime Pairs With Target Sum2762 Continuous Subarrays2763 Sum of Imbalance Numbers of All Subarrays2765 Longest Alternating Subarray2766 Relocate Marbles2767 Partition String Into Minimum Beautiful Substrings2768 Number of Black Blocks2769 Find the Maximum Achievable Number2770 Maximum Number of Jumps to Reach the Last Index2771 Longest Non-decreasing Subarray From Two Arrays2772 Apply Operations to Make All Array Elements Equal to Zero2778 Sum of Squares of Special Elements 2779 Maximum Beauty of an Array After Applying Operation2780 Minimum Index of a Valid Split2781 Length of the Longest Valid Substring2784 Check if Array is Good2785 Sort Vowels in a String2786 Visit Array Positions to Maximize Score2787 Ways to Express an Integer as Sum of Powers2788 Split Strings by Separator2789 Largest Element in an Array after Merge Operations2790 Maximum Number of Groups With Increasing Length2791 Count Paths That Can Form a Palindrome in a Tree2798 Number of Employees Who Met the Target2799 Count Complete Subarrays in an Array2800 Shortest String That Contains Three Strings2801 Count Stepping Numbers in Range2806 Account Balance After Rounded Purchase2807 Insert Greatest Common Divisors in Linked List2808 Minimum Seconds to Equalize a Circular Array2809 Minimum Time to Make Array Sum At Most x2810 Faulty Keyboard2811 Check if it is Possible to Split Array2812 Find the Safest Path in a Grid2813 Maximum Elegance of a K-Length Subsequence2815 Max Pair Sum in an Array2816 Double a Number Represented as a Linked List2817 Minimum Absolute Difference Between Elements With Constraint2818 Apply Operations to Maximize Score2824 Count Pairs Whose Sum is Less than Target2825 Make String a Subsequence Using Cyclic Increments2826 Sorting Three Groups2827 Number of Beautiful Integers in the Range2828 Check if a String Is an Acronym of Words2829 Determine the Minimum Sum of a k-avoiding Array2830 Maximize the Profit as the Salesman2831 Find the Longest Equal Subarray2833 Furthest Point From Origin2834 Find the Minimum Possible Sum of a Beautiful Array2835 Minimum Operations to Form Subsequence With Target Sum2836 Maximize Value of Function in a Ball Passing Game2839 Check if Strings Can be Made Equal With Operations I2840 Check if Strings Can be Made Equal With Operations II2841 Maximum Sum of Almost Unique Subarray2842 Count K-Subsequences of a String With Maximum Beauty2843 Count Symmetric Integers2844 Minimum Operations to Make a Special Number2845 Count of Interesting Subarrays2846 Minimum Edge Weight Equilibrium Queries in a Tree2848 Points That Intersect With Cars2849 Determine if a Cell Is Reachable at a Given Time2850 Minimum Moves to Spread Stones Over Grid2851 String Transformation2855 Minimum Right Shifts to Sort the Array2856 Minimum Array Length After Pair Removals2857 Count Pairs of Points With Distance k2858 Minimum Edge Reversals So Every Node Is Reachable2859 Sum of Values at Indices With K Set Bits2860 Happy Students2861 Maximum Number of Alloys2862 Maximum Element-Sum of a Complete Subset of Indices2864 Maximum Odd Binary Number2865 Beautiful Towers I2866 Beautiful Towers II2867 Count Valid Paths in a Tree2869 Minimum Operations to Collect Elements2870 Minimum Number of Operations to Make Array Empty2871 Split Array Into Maximum Number of Subarrays2872 Maximum Number of K-Divisible Components2873 Maximum Value of an Ordered Triplet I2874 Maximum Value of an Ordered Triplet II2875 Minimum Size Subarray in Infinite Array2876 Count Visited Nodes in a Directed Graph2894 Divisible and Non-divisible Sums Difference2895 Minimum Processing Time2896 Apply Operations to Make Two Strings Equal2897 Apply Operations on Array to Maximize Sum of Squares2899 Last Visited Integers2900 Longest Unequal Adjacent Groups Subsequence I2901 Longest Unequal Adjacent Groups Subsequence II2902 Count of Sub-Multisets With Bounded Sum2903 Find Indices With Index and Value Difference I2904 Shortest and Lexicographically Smallest Beautiful String2905 Find Indices With Index and Value Difference II2906 Construct Product Matrix2908 Minimum Sum of Mountain Triplets I2909 Minimum Sum of Mountain Triplets II2910 Minimum Number of Groups to Create a Valid Assignment2911 Minimum Changes to Make K Semi-palindromes2913 Subarrays Distinct Element Sum of Squares I2914 Minimum Number of Changes to Make Binary String Beautiful2915 Length of the Longest Subsequence That Sums to Target2916 Subarrays Distinct Element Sum of Squares II2917 Find the K-or of an Array2918 Minimum Equal Sum of Two Arrays After Replacing Zeros2919 Minimum Increment Operations to Make Array Beautiful2920 Maximum Points After Collecting Coins From All Nodes2923 Find Champion I2924 Find Champion II2925 Maximum Score After Applying Operations on a Tree2926 Maximum Balanced Subsequence Sum2928 Distribute Candies Among Children I2929 Distribute Candies Among Children II2930 Number of Strings Which Can Be Rearranged to Contain Substring2931 Maximum Spending After Buying Items2932 Maximum Strong Pair XOR I2933 High-Access Employees2934 Minimum Operations to Maximize Last Elements in Arrays2935 Maximum Strong Pair XOR II2937 Make Three Strings Equal2938 Separate Black and White Balls2939 Maximum Xor Product2940 Find Building Where Alice and Bob Can Meet2942 Find Words Containing Character2943 Maximize Area of Square Hole in Grid2944 Minimum Number of Coins for Fruits2945 Find Maximum Non-decreasing Array Length2946 Matrix Similarity After Cyclic Shifts2947 Count Beautiful Substrings I2948 Make Lexicographically Smallest Array by Swapping Elements2949 Count Beautiful Substrings II2951 Find the Peaks2952 Minimum Number of Coins to be Added2953 Count Complete Substrings2954 Count the Number of Infection Sequences2956 Find Common Elements Between Two Arrays2957 Remove Adjacent Almost-Equal Characters2958 Length of Longest Subarray With at Most K Frequency2959 Number of Possible Sets of Closing Branches2960 Count Tested Devices After Test Operations2961 Double Modular Exponentiation2962 Count Subarrays Where Max Element Appears at Least K Times2963 Count the Number of Good Partitions2965 Find Missing and Repeated Values2966 Divide Array Into Arrays With Max Difference2967 Minimum Cost to Make Array Equalindromic2968 Apply Operations to Maximize Frequency Score2970 Count the Number of Incremovable Subarrays I2971 Find Polygon With the Largest Perimeter2972 Count the Number of Incremovable Subarrays II2973 Find Number of Coins to Place in Tree Nodes2974 Minimum Number Game2975 Maximum Square Area by Removing Fences From a Field2976 Minimum Cost to Convert String I2977 Minimum Cost to Convert String II2980 Check if Bitwise OR Has Trailing Zeros2981 Find Longest Special Substring That Occurs Thrice I2982 Find Longest Special Substring That Occurs Thrice II2983 Palindrome Rearrangement Queries2996 Smallest Missing Integer Greater Than Sequential Prefix Sum2997 Minimum Number of Operations to Make Array XOR Equal to K2998 Minimum Number of Operations to Make X and Y Equal2999 Count the Number of Powerful Integers3000 Maximum Area of Longest Diagonal Rectangle3001 Minimum Moves to Capture The Queen3002 Maximum Size of a Set After Removals3003 Maximize the Number of Partitions After Operations3005 Count Elements With Maximum Frequency3006 Find Beautiful Indices in the Given Array I3007 Maximum Number That Sum of the Prices Is Less Than or Equal to K3008 Find Beautiful Indices in the Given Array II3010 Divide an Array Into Subarrays With Minimum Cost I3011 Find if Array Can Be Sorted3012 Minimize Length of Array Using Operations3013 Divide an Array Into Subarrays With Minimum Cost II3014 Minimum Number of Pushes to Type Word I3015 Count the Number of Houses at a Certain Distance I3016 Minimum Number of Pushes to Type Word II3017 Count the Number of Houses at a Certain Distance II3019 Number of Changing Keys3020 Find the Maximum Number of Elements in Subset3021 Alice and Bob Playing Flower Game3022 Minimize OR of Remaining Elements Using Operations3024 Type of Triangle3025 Find the Number of Ways to Place People I3026 Maximum Good Subarray Sum3027 Find the Number of Ways to Place People II3028 Ant on the Boundary3029 Minimum Time to Revert Word to Initial State I3030 Find the Grid of Region Average3031 Minimum Time to Revert Word to Initial State II3033 Modify the Matrix3034 Number of Subarrays That Match a Pattern I3035 Maximum Palindromes After Operations3036 Number of Subarrays That Match a Pattern II3038 Maximum Number of Operations With the Same Score I3039 Apply Operations to Make String Empty3040 Maximum Number of Operations With the Same Score II3041 Maximize Consecutive Elements in an Array After Modification3042 Count Prefix and Suffix Pairs I3043 Find the Length of the Longest Common Prefix3044 Most Frequent Prime3045 Count Prefix and Suffix Pairs II3046 Split the Array3047 Find the Largest Area of Square Inside Two Rectangles3048 Earliest Second to Mark Indices I3049 Earliest Second to Mark Indices II3065 Minimum Operations to Exceed Threshold Value I3066 Minimum Operations to Exceed Threshold Value II3067 Count Pairs of Connectable Servers in a Weighted Tree Network3068 Find the Maximum Sum of Node Values3069 Distribute Elements Into Two Arrays I3070 Count Submatrices with Top-Left Element and Sum Less Than k3071 Minimum Operations to Write the Letter Y on a Grid3072 Distribute Elements Into Two Arrays II3074 Apple Redistribution into Boxes3075 Maximize Happiness of Selected Children3076 Shortest Uncommon Substring in an Array3077 Maximum Strength of K Disjoint Subarrays3079 Find the Sum of Encrypted Integers3080 Mark Elements on Array by Performing Queries3081 Replace Question Marks in String to Minimize Its Value3082 Find the Sum of the Power of All Subsequences3083 Existence of a Substring in a String and Its Reverse3084 Count Substrings Starting and Ending with Given Character3085 Minimum Deletions to Make String K-Special3086 Minimum Moves to Pick K Ones (PRO)3090 Maximum Length Substring With Two Occurrences3091 Apply Operations to Make Sum of Array Greater Than or Equal to k3092 Most Frequent IDs3093 Longest Common Suffix Queries3095 Shortest Subarray With OR at Least K I3096 Minimum Levels to Gain More Points3097 Shortest Subarray With OR at Least K II3098 Find the Sum of Subsequence Powers3099 Harshad Number3100 Water Bottles II3101 Count Alternating Subarrays3102 Minimize Manhattan Distances3105 Longest Strictly Increasing or Strictly Decreasing Subarray3106 Lexicographically Smallest String After Operations With Constraint3107 Minimum Operations to Make Median of Array Equal to K3108 Minimum Cost Walk in Weighted Graph3110 Score of a String3111 Minimum Rectangles to Cover Points3112 Minimum Time to Visit Disappearing Nodes3113 Find the Number of Subarrays Where Boundary Elements Are Maximum3114 Latest Time You Can Obtain After Replacing Characters3115 Maximum Prime Difference3116 Kth Smallest Amount With Single Denomination Combination3117 Minimum Sum of Values by Dividing Array3120 Count the Number of Special Characters I3121 Count the Number of Special Characters II3122 Minimum Number of Operations to Satisfy Conditions3123 Find Edges in Shortest Paths3127 Make a Square with the Same Color3128 Right Triangles3129 Find All Possible Stable Binary Arrays I3130 Find All Possible Stable Binary Arrays II3131 Find the Integer Added to Array I3132 Find the Integer Added to Array II3133 Minimum Array End3134 Find the Median of the Uniqueness Array3136 Valid Word3137 Minimum Number of Operations to Make Word K-Periodic3138 Minimum Length of Anagram Concatenation3139 Minimum Cost to Equalize Array3142 Check if Grid Satisfies Conditions3143 Maximum Points Inside the Square3144 Minimum Substring Partition of Equal Character Frequency3145 Find Products of Elements of Big Array3146 Permutation Difference between Two Strings3147 Taking Maximum Energy From the Mystic Dungeon3148 Maximum Difference Score in a Grid3149 Find the Minimum Cost Array Permutation3151 Special Array I3152 Special Array II3153 Sum of Digit Differences of All Pairs3154 Find Number of Ways to Reach the K-th Stair3158 Find the XOR of Numbers Which Appear Twice3159 Find Occurrences of an Element in an Array3160 Find the Number of Distinct Colors Among the Balls3161 Block Placement Queries3162 Find the Number of Good Pairs I3163 String Compression III3164 Find the Number of Good Pairs II3165 Maximum Sum of Subsequence With Non-adjacent Elements3168 Minimum Number of Chairs in a Waiting Room3169 Count Days Without Meetings3170 Lexicographically Minimum String After Removing Stars3171 Find Subarray With Bitwise OR Closest to K3174 Clear Digits3175 Find The First Player to win K Games in a Row3176 Find the Maximum Length of a Good Subsequence I3177 Find the Maximum Length of a Good Subsequence II3178 Find the Child Who Has the Ball After K Seconds3179 Find the N-th Value After K Seconds3180 Maximum Total Reward Using Operations I3181 Maximum Total Reward Using Operations II3184 Count Pairs That Form a Complete Day I3185 Count Pairs That Form a Complete Day II3186 Maximum Total Damage With Spell Casting3187 Peaks in Array3190 Find Minimum Operations to Make All Elements Divisible by Three3191 Minimum Operations to Make Binary Array Elements Equal to One I3192 Minimum Operations to Make Binary Array Elements Equal to One II3193 Count the Number of Inversions3194 Minimum Average of Smallest and Largest Elements3195 Find the Minimum Area to Cover All Ones I3196 Maximize Total Cost of Alternating Subarrays3197 Find the Minimum Area to Cover All Ones II3200 Maximum Height of a Triangle3201 Find the Maximum Length of Valid Subsequence I3202 Find the Maximum Length of Valid Subsequence II3203 Find Minimum Diameter After Merging Two Trees3206 Alternating Groups I3207 Maximum Points After Enemy Battles3208 Alternating Groups II3209 Number of Subarrays With AND Value of K3210 Find the Encrypted String3211 Generate Binary Strings Without Adjacent Zeros (PRO)3212 Count Submatrices With Equal Frequency of X and Y3213 Construct String with Minimum Cost3216 Lexicographically Smallest String After a Swap3217 Delete Nodes From Linked List Present in Array (PRO)3218 Minimum Cost for Cutting Cake I3219 Minimum Cost for Cutting Cake II3222 Find the Winning Player in Coin Game3223 Minimum Length of String After Operations3224 Minimum Array Changes to Make Differences Equal3225 Maximum Score From Grid Operations3226 Number of Bit Changes to Make Two Integers Equal3227 Vowels Game in a String3228 Maximum Number of Operations to Move Ones to the End (PRO)3229 Minimum Operations to Make Array Equal to Target3232 Find if Digit Game Can Be Won3233 Find the Count of Numbers Which Are Not Special3234 Count the Number of Substrings With Dominant Ones3235 Check if the Rectangle Corner Is Reachable3238 Find the Number of Winning Players3239 Minimum Number of Flips to Make Binary Grid Palindromic I3240 Minimum Number of Flips to Make Binary Grid Palindromic II3241 Time Taken to Mark All Nodes3242 Design Neighbor Sum Service3243 Shortest Distance After Road Addition Queries I3244 Shortest Distance After Road Addition Queries II3245 Alternating Groups III3248 Snake in Matrix3249 Count the Number of Good Nodes3250 Find the Count of Monotonic Pairs I3251 Find the Count of Monotonic Pairs II3254 Find the Power of K-Size Subarrays I3255 Find the Power of K-Size Subarrays II3256 Maximum Value Sum by Placing Three Rooks I3257 Maximum Value Sum by Placing Three Rooks II3258 Count Substrings That Satisfy K-Constraint I3259 Maximum Energy Boost From Two Drinks3260 Find the Largest Palindrome Divisible by K3261 Count Substrings That Satisfy K-Constraint II3264 Final Array State After K Multiplication Operations I3265 Count Almost Equal Pairs I3266 Final Array State After K Multiplication Operations II3267 Count Almost Equal Pairs II3270 Find the Key of the Numbers3271 Hash Divided String3272 Find the Count of Good Integers3273 Minimum Amount of Damage Dealt to Bob3274 Check if Two Chessboard Squares Have the Same Color3275 K-th Nearest Obstacle Queries3276 Select Cells in Grid With Maximum Score3277 Maximum XOR Score Subarray Queries3280 Convert Date to Binary3281 Maximize Score of Numbers in Ranges3282 Reach End of Array With Max Score3283 Maximum Number of Moves to Kill All Pawns3285 Find Indices of Stable Mountains3286 Find a Safe Walk Through a Grid3287 Find the Maximum Sequence Value of Array3288 Length of the Longest Increasing Path3289 The Two Sneaky Numbers of Digitville3290 Maximum Multiplication Score3291 Minimum Number of Valid Strings to Form Target I3292 Minimum Number of Valid Strings to Form Target II3295 Report Spam Message3296 Minimum Number of Seconds to Make Mountain Height Zero3297 Count Substrings That Can Be Rearranged to Contain a String I3298 Count Substrings That Can Be Rearranged to Contain a String II3300 Minimum Element After Replacement With Digit Sum3301 Maximize the Total Height of Unique Towers3302 Find the Lexicographically Smallest Valid Sequence3303 Find the Occurrence of First Almost Equal Substring3304 Find the K-th Character in String Game I3305 Count of Substrings Containing Every Vowel and K Consonants I3306 Count of Substrings Containing Every Vowel and K Consonants II3307 Find the K-th Character in String Game II3309 Maximum Possible Number by Binary Concatenation3310 Remove Methods From Project3311 Construct 2D Grid Matching Graph Layout3312 Sorted GCD Pair Queries (PRO)3314 Construct the Minimum Bitwise Array I3315 Construct the Minimum Bitwise Array II3316 Find Maximum Removals From Source String3317 Find the Number of Possible Ways for an Event3318 Find X-Sum of All K-Long Subarrays I3319 K-th Largest Perfect Subtree Size in Binary Tree3320 Count The Number of Winning Sequences3321 Find X-Sum of All K-Long Subarrays II3324 Find the Sequence of Strings Appeared on the Screen3325 Count Substrings With K-Frequency Characters I3326 Minimum Division Operations to Make Array Non Decreasing3327 Check if DFS Strings Are Palindromes3330 Find the Original Typed String I3331 Find Subtree Sizes After Changes3332 Maximum Points Tourist Can Earn3333 Find the Original Typed String II3334 Find the Maximum Factor Score of Array3335 Total Characters in String After Transformations I3336 Find the Number of Subsequences With Equal GCD3337 Total Characters in String After Transformations II3340 Check Balanced String3341 Find Minimum Time to Reach Last Room I3342 Find Minimum Time to Reach Last Room II3343 Count Number of Balanced Permutations3345 Smallest Divisible Digit Product I3346 Maximum Frequency of an Element After Performing Operations I3347 Maximum Frequency of an Element After Performing Operations II3348 Smallest Divisible Digit Product II3349 Adjacent Increasing Subarrays Detection I3350 Adjacent Increasing Subarrays Detection II3351 Sum of Good Subsequences3352 Count K-Reducible Numbers Less Than N3354 Make Array Elements Equal to Zero3355 Zero Array Transformation I3356 Zero Array Transformation II3357 Minimize the Maximum Adjacent Element Difference3360 Stone Removal Game3361 Shift Distance Between Two Strings3362 Zero Array Transformation III3363 Find the Maximum Number of Fruits Collected3364 Minimum Positive Sum Subarray 3365 Rearrange K Substrings to Form Target String3366 Minimum Array Sum3367 Maximize Sum of Weights after Edge Removals3370 Smallest Number With All Set Bits3371 Identify the Largest Outlier in an Array3372 Maximize the Number of Target Nodes After Connecting Trees I3373 Maximize the Number of Target Nodes After Connecting Trees II3375 Minimum Operations to Make Array Values Equal to K3376 Minimum Time to Break Locks I3377 Digit Operations to Make Two Integers Equal3378 Count Connected Components in LCM Graph3379 Transformed Array3380 Maximum Area Rectangle With Point Constraints I3381 Maximum Subarray Sum With Length Divisible by K3382 Maximum Area Rectangle With Point Constraints II3386 Button with Longest Push Time3387 Maximize Amount After Two Days of Conversions3388 Count Beautiful Splits in an Array3389 Minimum Operations to Make Character Frequencies Equal3392 Count Subarrays of Length Three With a Condition3393 Count Paths With the Given XOR Value3394 Check if Grid can be Cut into Sections3395 Subsequences with a Unique Middle Mode I3396 Minimum Number of Operations to Make Elements in Array Distinct3397 Maximum Number of Distinct Elements After Operations3398 Smallest Substring With Identical Characters I3399 Smallest Substring With Identical Characters II3402 Minimum Operations to Make Columns Strictly Increasing3403 Find the Lexicographically Largest String From the Box I3404 Count Special Subsequences3405 Count the Number of Arrays with K Matching Adjacent Elements3407 Substring Matching Pattern3408 Design Task Manager3409 Longest Subsequence With Decreasing Adjacent Difference3410 Maximize Subarray Sum After Removing All Occurrences of One Element3411 Maximum Subarray With Equal Products3412 Find Mirror Score of a String3413 Maximum Coins From K Consecutive Bags3414 Maximum Score of Non-overlapping Intervals3417 Zigzag Grid Traversal With Skip3418 Maximum Amount of Money Robot Can Earn3419 Minimize the Maximum Edge Weight of Graph3420 Count Non-Decreasing Subarrays After K Operations3423 Maximum Difference Between Adjacent Elements in a Circular Array3424 Minimum Cost to Make Arrays Identical3425 Longest Special Path3426 Manhattan Distances of All Arrangements of Pieces3427 Sum of Variable Length Subarrays3428 Maximum and Minimum Sums of at Most Size K Subsequences3429 Paint House IV3430 Maximum and Minimum Sums of at Most Size K Subarrays3432 Count Partitions with Even Sum Difference3433 Count Mentions Per User3434 Maximum Frequency After Subarray Operation3435 Frequencies of Shortest Supersequences3438 Find Valid Pair of Adjacent Digits in String3439 Reschedule Meetings for Maximum Free Time I3440 Reschedule Meetings for Maximum Free Time II3441 Minimum Cost Good Caption3442 Maximum Difference Between Even and Odd Frequency I (PRO)3443 Maximum Manhattan Distance After K Changes (PRO)3444 Minimum Increments for Target Multiples in an Array3445 Maximum Difference Between Even and Odd Frequency II3446 Sort Matrix by Diagonals3447 Assign Elements to Groups with Constraints3448 Count Substrings Divisible By Last Digit3449 Maximize the Minimum Game Score (PRO)3452 Sum of Good Numbers3453 Separate Squares I3454 Separate Squares II3455 Shortest Matching Substring3456 Find Special Substring of Length K3457 Eat Pizzas!3458 Select K Disjoint Special Substrings3459 Length of Longest V-Shaped Diagonal Segment3461 Check If Digits Are Equal in String After Operations I3462 Maximum Sum With at Most K Elements3463 Check If Digits Are Equal in String After Operations II3464 Maximize the Distance Between Points on a Square3467 Transform Array by Parity3468 Find the Number of Copy Arrays3469 Find Minimum Cost to Remove Array Elements3470 Permutations IV3471 Find the Largest Almost Missing Integer3472 Longest Palindromic Subsequence After at Most K Operations3473 Sum of K Subarrays With Length at Least M3474 Lexicographically Smallest Generated String3477 Fruits Into Baskets II3478 Choose K Elements With Maximum Sum3479 Fruits Into Baskets III3480 Maximize Subarrays After Removing One Conflicting Pair3483 Unique 3-Digit Even Numbers3484 Design Spreadsheet3485 Longest Common Prefix of K Strings After Removal3486 Longest Special Path II3487 Maximum Unique Subarray Sum After Deletion3488 Closest Equal Element Queries3489 Zero Array Transformation IV3490 Count Beautiful Numbers3492 Maximum Containers on a Ship3493 Properties Graph3494 Find the Minimum Amount of Time to Brew Potions3495 Minimum Operations to Make Array Elements Zero3498 Reverse Degree of a String3499 Maximize Active Section with Trade I3500 Minimum Cost to Divide Array Into Subarrays3501 Maximize Active Section with Trade II3502 Minimum Cost to Reach Every Position3503 Longest Palindrome After Substring Concatenation I3504 Longest Palindrome After Substring Concatenation II3505 Minimum Operations to Make Elements Within K Subarrays Equal3507 Minimum Pair Removal to Sort Array I3508 Implement Router3509 Maximum Product of Subsequences With an Alternating Sum Equal to K3510 Minimum Pair Removal to Sort Array II3512 Minimum Operations to Make Array Sum Divisible by K3513 Number of Unique XOR Triplets I3514 Number of Unique XOR Triplets II3515 Shortest Path in a Weighted Tree3516 Find Closest Person3517 Smallest Palindromic Rearrangement I3518 Smallest Palindromic Rearrangement II3519 Count Numbers with Non-Decreasing Digits 3522 Calculate Score After Performing Instructions3523 Make Array Non-decreasing3524 Find X Value of Array I3525 Find X Value of Array II3527 Find the Most Common Response3528 Unit Conversion I3529 Count Cells in Overlapping Horizontal and Vertical Substrings3530 Maximum Profit from Valid Topological Order in DAG3531 Count Covered Buildings3532 Path Existence Queries in a Graph I3533 Concatenated Divisibility3534 Path Existence Queries in a Graph II3536 Maximum Product of Two Digits3537 Fill a Special Grid3538 Merge Operations for Minimum Travel Time3539 Find Sum of Array Product of Magical Sequences3541 Find Most Frequent Vowel and Consonant3542 Minimum Operations to Convert All Elements to Zero3543 Maximum Weighted K-Edge Path3544 Subtree Inversion Sum3545 Minimum Deletions for At Most K Distinct Characters3546 Equal Sum Grid Partition I3547 Maximum Sum of Edge Values in a Graph3548 Equal Sum Grid Partition II3550 Smallest Index With Digit Sum Equal to Index3551 Minimum Swaps to Sort by Digit Sum3552 Grid Teleportation Traversal3553 Minimum Weighted Subgraph With the Required Paths II3556 Sum of Largest Prime Substrings3557 Find Maximum Number of Non Intersecting Substrings3558 Number of Ways to Assign Edge Weights I3559 Number of Ways to Assign Edge Weights II3560 Find Minimum Log Transportation Cost3561 Resulting String After Adjacent Removals3562 Maximum Profit from Trading Stocks with Discounts3563 Lexicographically Smallest String After Adjacent Removals3566 Partition Array into Two Equal Product Subsets3567 Minimum Absolute Difference in Sliding Submatrix3568 Minimum Moves to Clean the Classroom3569 Maximize Count of Distinct Primes After Split3572 Maximize Y‑Sum by Picking a Triplet of Distinct X‑Values3573 Best Time to Buy and Sell Stock V3574 Maximize Subarray GCD Score3575 Maximum Good Subtree Score3576 Transform Array to All Equal Elements3577 Count the Number of Computer Unlocking Permutations3578 Count Partitions With Max-Min Difference at Most K3579 Minimum Steps to Convert String with Operations3582 Generate Tag for Video Caption3583 Count Special Triplets3584 Maximum Product of First and Last Elements of a Subsequence3585 Find Weighted Median Node in Tree3587 Minimum Adjacent Swaps to Alternate Parity3588 Find Maximum Area of a Triangle3589 Count Prime-Gap Balanced Subarrays3590 Kth Smallest Path XOR Sum3591 Check if Any Element Has Prime Frequency3592 Inverse Coin Change3593 Minimum Increments to Equalize Leaf Paths3594 Minimum Time to Transport All Individuals3597 Partition String 3598 Longest Common Prefix Between Adjacent Strings After Removals3599 Partition Array to Minimize XOR3600 Maximize Spanning Tree Stability with Upgrades3602 Hexadecimal and Hexatrigesimal Conversion3603 Minimum Cost Path with Alternating Directions II3604 Minimum Time to Reach Destination in Directed Graph3605 Minimum Stability Factor of Array3606 Coupon Code Validator (PRO)3607 Power Grid Maintenance3608 Minimum Time for K Connected Components3609 Minimum Moves to Reach Target in Grid3612 Process String with Special Operations I3613 Minimize Maximum Component Cost3614 Process String with Special Operations II3615 Longest Palindromic Path in Graph3618 Split Array by Prime Indices3619 Count Islands With Total Value Divisible by K3620 Network Recovery Pathways3621 Number of Integers With Popcount-Depth Equal to K I3622 Check Divisibility by Digit Sum and Product3623 Count Number of Trapezoids I3624 Number of Integers With Popcount-Depth Equal to K II3625 Count Number of Trapezoids II3627 Maximum Median Sum of Subsequences of Size 33628 Maximum Number of Subsequences After One Inserting3629 Minimum Jumps to Reach End via Prime Teleportation3630 Partition Array for Maximum XOR and AND3633 Earliest Finish Time for Land and Water Rides I3634 Minimum Removals to Balance Array3635 Earliest Finish Time for Land and Water Rides II3636 Threshold Majority Queries3637 Trionic Array I3638 Maximum Balanced Shipments3639 Minimum Time to Activate String3640 Trionic Array II3643 Flip Square Submatrix Vertically3644 Maximum K to Sort a Permutation3645 Maximum Total from Optimal Activation Order3646 Next Special Palindrome Number3648 Minimum Sensors to Cover Grid3649 Number of Perfect Pairs3650 Minimum Cost Path with Edge Reversals3651 Minimum Cost Path with Teleportations3652 Best Time to Buy and Sell Stock using Strategy3653 XOR After Range Multiplication Queries I3654 Minimum Sum After Divisible Sum Deletions3655 XOR After Range Multiplication Queries II3658 GCD of Odd and Even Sums3659 Partition Array Into K-Distinct Groups3660 Jump Game IX3661 Maximum Walls Destroyed by Robots3663 Find The Least Frequent Digit3664 Two-Letter Card Game3665 Twisted Mirror Path Count3666 Minimum Operations to Equalize Binary String3668 Restore Finishing Order3669 Balanced K-Factor Decomposition3670 Maximum Product of Two Integers With No Common Bits3671 Sum of Beautiful Subsequences3674 Minimum Operations to Equalize Array3675 Minimum Operations to Transform String3676 Count Bowl Subarrays3677 Count Binary Palindromic Numbers3678 Smallest Absent Positive Greater Than Average3679 Minimum Discards to Balance Inventory3680 Generate Schedule3681 Maximum XOR of Subsequences3683 Earliest Time to Finish One Task3684 Maximize Sum of At Most K Distinct Elements3685 Subsequence Sum After Capping Elements3686 Number of Stable Subsequences3688 Bitwise OR of Even Numbers in an Array3689 Maximum Total Subarray Value I3690 Split and Merge Array Transformation3691 Maximum Total Subarray Value II3692 Majority Frequency Characters3693 Climbing Stairs II3694 Distinct Points Reachable After Substring Removal3695 Maximize Alternating Sum Using Swaps3697 Compute Decimal Representation3698 Split Array With Minimum Difference3699 Number of ZigZag Arrays I3700 Number of ZigZag Arrays II3701 Compute Alternating Sum3702 Longest Subsequence With Non-Zero Bitwise XOR3703 Remove K-Balanced Substrings3704 Count No-Zero Pairs That Sum to N3707 Equal Score Substrings3708 Longest Fibonacci Subarray3709 Design Exam Scores Tracker3710 Maximum Partition Factor3712 Sum of Elements With Frequency Divisible by K3713 Longest Balanced Substring I3714 Longest Balanced Substring II3715 Sum of Perfect Square Ancestors3718 Smallest Missing Multiple of K3719 Longest Balanced Subarray I3720 Lexicographically Smallest Permutation Greater Than Target3721 Longest Balanced Subarray II3722 Lexicographically Smallest String After Reverse3723 Maximize Sum of Squares of Digits3724 Minimum Operations to Transform Array3725 Count Ways to Choose Coprime Integers from Rows3726 Remove Zeros in Decimal Representation3727 Maximum Alternating Sum of Squares3728 Stable Subarrays With Equal Boundary and Interior Sum3729 Count Distinct Subarrays Divisible by K in Sorted Array3731 Find Missing Elements3732 Maximum Product of Three Elements After One Replacement3733 Minimum Time to Complete All Deliveries3734 Lexicographically Smallest Palindromic Permutation Greater Than Target3736 Minimum Moves to Equal Array Elements III3737 Count Subarrays With Majority Element I3738 Longest Non-Decreasing Subarray After Replacing at Most One Element3739 Count Subarrays With Majority Element II3740 Minimum Distance Between Three Equal Elements I3741 Minimum Distance Between Three Equal Elements II3742 Maximum Path Score in a Grid3743 Maximize Cyclic Partition Score3745 Maximize Expression of Three Elements3746 Minimum String Length After Balanced Removals (PRO)3747 Count Distinct Integers After Removing Zeros3748 Count Stable Subarrays3750 Minimum Number of Flips to Reverse Binary String3751 Total Waviness of Numbers in Range I3752 Lexicographically Smallest Negated Permutation that Sums to Target3753 Total Waviness of Numbers in Range II3754 Concatenate Non-Zero Digits and Multiply by Sum I3755 Find Maximum Balanced XOR Subarray Length3756 Concatenate Non-Zero Digits and Multiply by Sum II3757 Number of Effective Subsequences3759 Count Elements With at Least K Greater Values3760 Maximum Substrings With Distinct Start3761 Minimum Absolute Distance Between Mirror Pairs3762 Minimum Operations to Equalize Subarrays3765 Complete Prime Number3766 Minimum Operations to Make Binary Palindrome3767 Maximize Points After Choosing K Tasks3768 Minimum Inversion Count in Subarrays of Fixed Length3769 Sort Integers by Binary Reflection3770 Largest Prime from Consecutive Prime Sum3771 Total Score of Dungeon Runs3772 Maximum Subgraph Score in a Tree3774 Absolute Difference Between Maximum and Minimum K Elements3775 Reverse Words With Same Vowel Count3776 Minimum Moves to Balance Circular Array3777 Minimum Deletions to Make Alternating Substring (PRO)3779 Minimum Number of Operations to Have Distinct Elements3780 Maximum Sum of Three Numbers Divisible by Three3781 Maximum Score After Binary Swaps3782 Last Remaining Integer After Alternating Deletion Operations (PRO)3783 Mirror Distance of an Integer3784 Minimum Deletion Cost to Make All Characters Equal3785 Minimum Swaps to Avoid Forbidden Values3786 Total Sum of Interaction Cost in Tree Groups3788 Maximum Score of a Split3789 Minimum Cost to Acquire Required Items3790 Smallest All-Ones Multiple3791 Number of Balanced Integers in a Range3794 Reverse String Prefix3795 Minimum Subarray Length With Distinct Sum At Least K3796 Find Maximum Value in a Constrained Sequence3797 Count Routes to Climb a Rectangular Grid3798 Largest Even Number3799 Word Squares II3800 Minimum Cost to Make Two Binary Strings Equal3801 Minimum Cost to Merge Sorted Lists3803 Count Residue Prefixes3804 Number of Centered Subarrays3805 Count Caesar Cipher Pairs3806 Maximum Bitwise AND After Increment Operations3809 Best Reachable Tower3810 Minimum Operations to Reach Target Array3811 Number of Alternating XOR Partitions3812 Minimum Edge Toggles on a Tree3813 Vowel-Consonant Score3814 Maximum Capacity Within Budget3815 Design Auction System3816 Lexicographically Smallest String After Deleting Duplicate Characters3818 Minimum Prefix Removal to Make Array Strictly Increasing3819 Rotate Non Negative Elements3820 Pythagorean Distance Nodes in a Tree3821 Find Nth Smallest Integer With K One Bits3823 Reverse Letters Then Special Characters in a String3824 Minimum K to Reduce Array Within Limit3825 Longest Strictly Increasing Subsequence With Non-Zero Bitwise AND3826 Minimum Partition Score3827 Count Monobit Integers3828 Final Element After Subarray Deletions3829 Design Ride Sharing System3830 Longest Alternating Subarray After Removing At Most One Element3833 Count Dominant Indices3834 Merge Adjacent Equal Elements3835 Count Subarrays With Cost Less Than or Equal to K3836 Maximum Score Using Exactly K Pairs3838 Weighted Word Mapping3839 Number of Prefix Connected Groups3840 House Robber V3841 Palindromic Path Queries in a Tree3842 Toggle Light Bulbs3843 First Element with Unique Frequency3844 Longest Almost-Palindromic Substring3845 Maximum Subarray XOR with Bounded Range3847 Find the Score Difference in a Game3848 Check Digitorial Permutation3849 Maximum Bitwise XOR After Rearrangement3850 Count Sequences to K3852 Smallest Pair With Different Frequencies3853 Merge Close Characters3854 Minimum Operations to Make Array Parity Alternating3855 Sum of K-Digit Numbers in a Range3856 Trim Trailing Vowels3857 Minimum Cost to Split into Ones3858 Minimum Bitwise OR From Grid3859 Count Subarrays With K Distinct Integers