Skip to content

grid47/list

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Q.No. Category Question
1 Easy Two Sum
2 Medium Add Two Numbers
3 Medium Longest Substring Without Repeating Characters
5 Medium Longest Palindromic Substring
6 Medium Zigzag Conversion
7 Medium Reverse Integer
8 Medium String to Integer (atoi)
9 Easy Palindrome Number
11 Medium Container With Most Water
12 Medium Integer to Roman
13 Easy Roman to Integer
15 Medium 3Sum
16 Medium 3Sum Closest
17 Medium Letter Combinations of a Phone Number
18 Medium 4Sum
19 Medium Remove Nth Node From End of List
20 Easy Valid Parentheses
21 Easy Merge Two Sorted Lists
22 Medium Generate Parentheses
24 Medium Swap Nodes in Pairs
27 Easy Remove Element
29 Medium Divide Two Integers
31 Medium Next Permutation
33 Medium Search in Rotated Sorted Array
34 Medium Find First and Last Position of Element in Sorted Array
35 Easy Search Insert Position
36 Medium Valid Sudoku
38 Medium Count and Say
39 Medium Combination Sum
40 Medium Combination Sum II
43 Medium Multiply Strings
45 Medium Jump Game II
46 Medium Permutations
47 Medium Permutations II
48 Medium Rotate Image
49 Medium Group Anagrams
50 Medium Pow(x, n)
53 Medium Maximum Subarray
54 Medium Spiral Matrix
55 Medium Jump Game
56 Medium Merge Intervals
57 Medium Insert Interval
59 Medium Spiral Matrix II
62 Medium Unique Paths
63 Medium Unique Paths II
64 Medium Minimum Path Sum
66 Easy Plus One
67 Easy Add Binary
70 Easy Climbing Stairs
71 Medium Simplify Path
72 Medium Edit Distance
73 Medium Set Matrix Zeroes
74 Medium Search a 2D Matrix
75 Medium Sort Colors
77 Medium Combinations
78 Medium Subsets
79 Medium Word Search
81 Medium Search in Rotated Sorted Array II
86 Medium Partition List
89 Medium Gray Code
90 Medium Subsets II
91 Medium Decode Ways
92 Medium Reverse Linked List II
94 Easy Binary Tree Inorder Traversal
95 Medium Unique Binary Search Trees II
97 Medium Interleaving String
98 Medium Validate Binary Search Tree
99 Medium Recover Binary Search Tree
100 Easy Same Tree
102 Medium Binary Tree Level Order Traversal
103 Medium Binary Tree Zigzag Level Order Traversal
104 Easy Maximum Depth of Binary Tree
105 Medium Construct Binary Tree from Preorder and Inorder Traversal
107 Medium Binary Tree Level Order Traversal II
109 Medium Convert Sorted List to Binary Search Tree
110 Easy Balanced Binary Tree
111 Easy Minimum Depth of Binary Tree
113 Medium Path Sum II
114 Medium Flatten Binary Tree to Linked List
116 Medium Populating Next Right Pointers in Each Node
118 Easy Pascal's Triangle
121 Easy Best Time to Buy and Sell Stock
125 Easy Valid Palindrome
128 Medium Longest Consecutive Sequence
130 Medium Surrounded Regions
131 Medium Palindrome Partitioning
133 Medium Clone Graph
134 Medium Gas Station
136 Easy Single Number
137 Medium Single Number II
138 Medium Copy List with Random Pointer
139 Medium Word Break
141 Easy Linked List Cycle
142 Medium Linked List Cycle II
143 Medium Reorder List
144 Easy Binary Tree Preorder Traversal
146 Medium LRU Cache
150 Medium Evaluate Reverse Polish Notation
152 Medium Maximum Product Subarray
153 Medium Find Minimum in Rotated Sorted Array
155 Medium Min Stack
162 Medium Find Peak Element
167 Medium Two Sum II - Input Array Is Sorted
168 Easy Excel Sheet Column Title
169 Easy Majority Element
189 Medium Rotate Array
190 Easy Reverse Bits
191 Easy Number of 1 Bits
198 Medium House Robber
199 Medium Binary Tree Right Side View
200 Medium Number of Islands
201 Medium Bitwise AND of Numbers Range
202 Easy Happy Number
205 Easy Isomorphic Strings
206 Easy Reverse Linked List
207 Medium Course Schedule
208 Medium Implement Trie (Prefix Tree)
209 Medium Minimum Size Subarray Sum
210 Medium Course Schedule II
211 Medium Design Add and Search Words Data Structure
213 Medium House Robber II
215 Medium Kth Largest Element in an Array
217 Easy Contains Duplicate
225 Easy Implement Stack using Queues
226 Easy Invert Binary Tree
228 Easy Summary Ranges
229 Medium Majority Element II
230 Medium Kth Smallest Element in a BST
231 Easy Power of Two
232 Easy Implement Queue using Stacks
235 Medium Lowest Common Ancestor of a Binary Search Tree
236 Medium Lowest Common Ancestor of a Binary Tree
237 Medium Delete Node in a Linked List
238 Medium Product of Array Except Self
242 Easy Valid Anagram
258 Easy Add Digits
268 Easy Missing Number
278 Easy First Bad Version
279 Medium Perfect Squares
283 Easy Move Zeroes
287 Medium Find the Duplicate Number
300 Medium Longest Increasing Subsequence
309 Medium Best Time to Buy and Sell Stock with Cooldown
310 Medium Minimum Height Trees
316 Medium Remove Duplicate Letters
318 Medium Maximum Product of Word Lengths
319 Medium Bulb Switcher
322 Medium Coin Change
324 Medium Wiggle Sort II
328 Medium Odd Even Linked List
338 Easy Counting Bits
341 Medium Flatten Nested List Iterator
342 Easy Power of Four
343 Medium Integer Break
344 Easy Reverse String
347 Medium Top K Frequent Elements
349 Easy Intersection of Two Arrays
355 Medium Design Twitter
357 Medium Count Numbers with Unique Digits
365 Medium Water and Jug Problem
368 Medium Largest Divisible Subset
371 Medium Sum of Two Integers
372 Medium Super Pow
373 Medium Find K Pairs with Smallest Sums
375 Medium Guess Number Higher or Lower II
376 Medium Wiggle Subsequence
377 Medium Combination Sum IV
378 Medium Kth Smallest Element in a Sorted Matrix
380 Medium Insert Delete GetRandom O(1)
382 Medium Linked List Random Node
383 Easy Ransom Note
384 Medium Shuffle an Array
385 Medium Mini Parser
386 Medium Lexicographical Numbers
387 Easy First Unique Character in a String
388 Medium Longest Absolute File Path
390 Medium Elimination Game
392 Easy Is Subsequence
393 Medium UTF-8 Validation
394 Medium Decode String
395 Medium Longest Substring with At Least K Repeating Characters
396 Medium Rotate Function
397 Medium Integer Replacement
398 Medium Random Pick Index
399 Medium Evaluate Division
400 Medium Nth Digit
402 Medium Remove K Digits
406 Medium Queue Reconstruction by Height
409 Easy Longest Palindrome
415 Easy Add Strings
416 Medium Partition Equal Subset Sum
417 Medium Pacific Atlantic Water Flow
419 Medium Battleships in a Board
421 Medium Maximum XOR of Two Numbers in an Array
423 Medium Reconstruct Original Digits from English
424 Medium Longest Repeating Character Replacement
427 Medium Construct Quad Tree
429 Medium N-ary Tree Level Order Traversal
433 Medium Minimum Genetic Mutation
435 Medium Non-overlapping Intervals
436 Medium Find Right Interval
437 Medium Path Sum III
438 Medium Find All Anagrams in a String
443 Medium String Compression
445 Medium Add Two Numbers II
447 Medium Number of Boomerangs
449 Medium Serialize and Deserialize BST
451 Medium Sort Characters By Frequency
452 Medium Minimum Number of Arrows to Burst Balloons
454 Medium 4Sum II
455 Easy Assign Cookies
456 Medium 132 Pattern
457 Medium Circular Array Loop
459 Easy Repeated Substring Pattern
467 Medium Unique Substrings in Wraparound String
468 Medium Validate IP Address
469 Medium Convex Polygon
474 Medium Ones and Zeroes
475 Medium Heaters
477 Medium Total Hamming Distance
481 Medium Magical String
486 Medium Predict the Winner
494 Medium Target Sum
497 Medium Random Point in Non-overlapping Rectangles
498 Medium Diagonal Traverse
501 Easy Find Mode in Binary Search Tree
508 Medium Most Frequent Subtree Sum
509 Easy Fibonacci Number
513 Medium Find Bottom Left Tree Value
515 Medium Find Largest Value in Each Tree Row
516 Medium Longest Palindromic Subsequence
518 Medium Coin Change II
519 Medium Random Flip Matrix
520 Easy Detect Capital
522 Medium Longest Uncommon Subsequence II
523 Medium Continuous Subarray Sum
524 Medium Longest Word in Dictionary through Deleting
525 Medium Contiguous Array
528 Medium Random Pick with Weight
529 Medium Minesweeper
530 Easy Minimum Absolute Difference in BST
532 Medium K-diff Pairs in an Array
535 Medium Encode and Decode TinyURL
537 Medium Complex Number Multiplication
538 Medium Convert BST to Greater Tree
539 Medium Minimum Time Difference
540 Medium Single Element in a Sorted Array
542 Medium 01 Matrix
543 Easy Diameter of Binary Tree
547 Medium Number of Provinces
553 Medium Optimal Division
554 Medium Brick Wall
556 Medium Next Greater Element III
557 Easy Reverse Words in a String III
560 Medium Subarray Sum Equals K
565 Medium Array Nesting
567 Medium Permutation in String
572 Easy Subtree of Another Tree
576 Medium Out of Boundary Paths
581 Medium Shortest Unsorted Continuous Subarray
583 Medium Delete Operation for Two Strings
589 Easy N-ary Tree Preorder Traversal
592 Medium Fraction Addition and Subtraction
593 Medium Valid Square
606 Medium Construct String from Binary Tree
609 Medium Find Duplicate File in System
611 Medium Valid Triangle Number
617 Easy Merge Two Binary Trees
621 Medium Task Scheduler
622 Medium Design Circular Queue
623 Medium Add One Row to Tree
624 Medium Maximum Distance in Arrays
627 Easy Swap Salary
633 Medium Sum of Square Numbers
636 Medium Exclusive Time of Functions
638 Medium Shopping Offers
640 Medium Solve the Equation
641 Medium Design Circular Deque
645 Easy Set Mismatch
646 Medium Maximum Length of Pair Chain
647 Medium Palindromic Substrings
648 Medium Replace Words
649 Medium Dota2 Senate
652 Medium Find Duplicate Subtrees
654 Medium Maximum Binary Tree
655 Medium Print Binary Tree
658 Medium Find K Closest Elements
659 Medium Split Array into Consecutive Subsequences
662 Medium Maximum Width of Binary Tree
667 Medium Beautiful Arrangement II
669 Medium Trim a Binary Search Tree
670 Medium Maximum Swap
672 Medium Bulb Switcher II
673 Medium Number of Longest Increasing Subsequence
676 Medium Implement Magic Dictionary
677 Medium Map Sum Pairs
678 Medium Valid Parenthesis String
684 Medium Redundant Connection
686 Medium Repeated String Match
687 Medium Longest Univalue Path
688 Medium Knight Probability in Chessboard
692 Medium Top K Frequent Words
695 Medium Max Area of Island
698 Medium Partition to K Equal Sum Subsets
703 Easy Kth Largest Element in a Stream
704 Easy Binary Search
705 Easy Design HashSet
707 Medium Design Linked List
712 Medium Minimum ASCII Delete Sum for Two Strings
713 Medium Subarray Product Less Than K
714 Medium Best Time to Buy and Sell Stock with Transaction Fee
718 Medium Maximum Length of Repeated Subarray
720 Medium Longest Word in Dictionary
721 Medium Accounts Merge
722 Medium Remove Comments
724 Easy Find Pivot Index
725 Medium Split Linked List in Parts
729 Medium My Calendar I
731 Medium My Calendar II
733 Easy Flood Fill
735 Medium Asteroid Collision
738 Medium Monotone Increasing Digits
739 Medium Daily Temperatures
740 Medium Delete and Earn
743 Medium Network Delay Time
744 Easy Find Smallest Letter Greater Than Target
746 Easy Min Cost Climbing Stairs
752 Medium Open the Lock
754 Medium Reach a Number
756 Medium Pyramid Transition Matrix
762 Easy Prime Number of Set Bits in Binary Representation
763 Medium Partition Labels
764 Medium Largest Plus Sign
767 Medium Reorganize String
769 Medium Max Chunks To Make Sorted
775 Medium Global and Local Inversions
777 Medium Swap Adjacent in LR String
779 Medium K-th Symbol in Grammar
781 Medium Rabbits in Forest
784 Medium Letter Case Permutation
785 Medium Is Graph Bipartite?
786 Medium K-th Smallest Prime Fraction
787 Medium Cheapest Flights Within K Stops
788 Medium Rotated Digits
789 Medium Escape The Ghosts
790 Medium Domino and Tromino Tiling
791 Medium Custom Sort String
792 Medium Number of Matching Subsequences
794 Medium Valid Tic-Tac-Toe State
795 Medium Number of Subarrays with Bounded Maximum
797 Medium All Paths From Source to Target
799 Medium Champagne Tower
802 Medium Find Eventual Safe States
807 Medium Max Increase to Keep City Skyline
808 Medium Soup Servings
809 Medium Expressive Words
811 Medium Subdomain Visit Count
813 Medium Largest Sum of Averages
814 Medium Binary Tree Pruning
816 Medium Ambiguous Coordinates
817 Medium Linked List Components
820 Medium Short Encoding of Words
822 Medium Card Flipping Game
823 Medium Binary Trees With Factors
824 Easy Goat Latin
825 Medium Friends Of Appropriate Ages
826 Medium Most Profit Assigning Work
831 Medium Masking Personal Information
833 Medium Find And Replace in String
835 Medium Image Overlap
836 Easy Rectangle Overlap
837 Medium New 21 Game
838 Medium Push Dominoes
840 Medium Magic Squares In Grid
841 Medium Keys and Rooms
842 Medium Split Array into Fibonacci Sequence
844 Easy Backspace String Compare
845 Medium Longest Mountain in Array
846 Medium Hand of Straights
848 Medium Shifting Letters
851 Medium Loud and Rich
852 Medium Peak Index in a Mountain Array
853 Medium Car Fleet
855 Medium Exam Room
856 Medium Score of Parentheses
858 Medium Mirror Reflection
859 Easy Buddy Strings
860 Easy Lemonade Change
861 Medium Score After Flipping Matrix
863 Medium All Nodes Distance K in Binary Tree
865 Medium Smallest Subtree with all the Deepest Nodes
866 Medium Prime Palindrome
867 Easy Transpose Matrix
868 Easy Binary Gap
869 Medium Reordered Power of 2
870 Medium Advantage Shuffle
872 Easy Leaf-Similar Trees
873 Medium Length of Longest Fibonacci Subsequence
875 Medium Koko Eating Bananas
876 Easy Middle of the Linked List
877 Medium Stone Game
880 Medium Decoded String at Index
881 Medium Boats to Save People
885 Medium Spiral Matrix III
886 Medium Possible Bipartition
889 Medium Construct Binary Tree from Preorder and Postorder Traversal
893 Medium Groups of Special-Equivalent Strings
894 Medium All Possible Full Binary Trees
896 Easy Monotonic Array
898 Medium Bitwise ORs of Subarrays
900 Medium RLE Iterator
901 Medium Online Stock Span
904 Medium Fruit Into Baskets
907 Medium Sum of Subarray Minimums
909 Medium Snakes and Ladders
910 Medium Smallest Range II
911 Medium Online Election
915 Medium Partition Array into Disjoint Intervals
916 Medium Word Subsets
918 Medium Maximum Sum Circular Subarray
919 Medium Complete Binary Tree Inserter
921 Medium Minimum Add to Make Parentheses Valid
925 Easy Long Pressed Name
926 Medium Flip String to Monotone Increasing
930 Medium Binary Subarrays With Sum
931 Medium Minimum Falling Path Sum
934 Medium Shortest Bridge
935 Medium Knight Dialer
938 Easy Range Sum of BST
939 Medium Minimum Area Rectangle
945 Medium Minimum Increment to Make Array Unique
946 Medium Validate Stack Sequences
947 Medium Most Stones Removed with Same Row or Column
948 Medium Bag of Tokens
949 Medium Largest Time for Given Digits
950 Medium Reveal Cards In Increasing Order
951 Medium Flip Equivalent Binary Trees
954 Medium Array of Doubled Pairs
955 Medium Delete Columns to Make Sorted II
957 Medium Prison Cells After N Days
958 Medium Check Completeness of a Binary Tree
959 Medium Regions Cut By Slashes
962 Medium Maximum Width Ramp
963 Medium Minimum Area Rectangle II
966 Medium Vowel Spellchecker
967 Medium Numbers With Same Consecutive Differences
969 Medium Pancake Sorting
970 Medium Powerful Integers
971 Medium Flip Binary Tree To Match Preorder Traversal
973 Medium K Closest Points to Origin
974 Medium Subarray Sums Divisible by K
977 Easy Squares of a Sorted Array
978 Medium Longest Turbulent Subarray
979 Medium Distribute Coins in Binary Tree
981 Medium Time Based Key-Value Store
983 Medium Minimum Cost For Tickets
984 Medium String Without AAA or BBB
985 Medium Sum of Even Numbers After Queries
988 Medium Smallest String Starting From Leaf
990 Medium Satisfiability of Equality Equations
991 Medium Broken Calculator
994 Medium Rotting Oranges
997 Easy Find the Town Judge
998 Medium Maximum Binary Tree II
1002 Easy Find Common Characters
1003 Medium Check If Word Is Valid After Substitutions
1004 Medium Max Consecutive Ones III
1005 Easy Maximize Sum Of Array After K Negations
1006 Medium Clumsy Factorial
1007 Medium Minimum Domino Rotations For Equal Row
1008 Medium Construct Binary Search Tree from Preorder Traversal
1010 Medium Pairs of Songs With Total Durations Divisible by 60
1011 Medium Capacity To Ship Packages Within D Days
1014 Medium Best Sightseeing Pair
1015 Medium Smallest Integer Divisible by K
1016 Medium Binary String With Substrings Representing 1 To N
1017 Medium Convert to Base -2
1019 Medium Next Greater Node In Linked List
1020 Medium Number of Enclaves
1023 Medium Camelcase Matching
1024 Medium Video Stitching
1026 Medium Maximum Difference Between Node and Ancestor
1027 Medium Longest Arithmetic Subsequence
1029 Medium Two City Scheduling
1031 Medium Maximum Sum of Two Non-Overlapping Subarrays
1033 Medium Moving Stones Until Consecutive
1034 Medium Coloring A Border
1035 Medium Uncrossed Lines
1038 Medium Binary Search Tree to Greater Sum Tree
1039 Medium Minimum Score Triangulation of Polygon
1040 Medium Moving Stones Until Consecutive II
1042 Medium Flower Planting With No Adjacent
1043 Medium Partition Array for Maximum Sum
1046 Easy Last Stone Weight
1048 Medium Longest String Chain
1049 Medium Last Stone Weight II
1051 Easy Height Checker
1052 Medium Grumpy Bookstore Owner
1053 Medium Previous Permutation With One Swap
1054 Medium Distant Barcodes
1061 Medium Lexicographically Smallest Equivalent String
1072 Medium Flip Columns For Maximum Number of Equal Rows
1073 Medium Adding Two Negabinary Numbers
1079 Medium Letter Tile Possibilities
1080 Medium Insufficient Nodes in Root to Leaf Paths
1081 Medium Smallest Subsequence of Distinct Characters
1090 Medium Largest Values From Labels
1091 Medium Shortest Path in Binary Matrix
1093 Medium Statistics from a Large Sample
1104 Medium Path In Zigzag Labelled Binary Tree
1105 Medium Filling Bookcase Shelves
1109 Medium Corporate Flight Bookings
1110 Medium Delete Nodes And Return Forest
1111 Medium Maximum Nesting Depth of Two Valid Parentheses Strings
1114 Easy Print in Order
1115 Medium Print FooBar Alternately
1116 Medium Print Zero Even Odd
1122 Easy Relative Sort Array
1123 Medium Lowest Common Ancestor of Deepest Leaves
1124 Medium Longest Well-Performing Interval
1129 Medium Shortest Path with Alternating Colors
1130 Medium Minimum Cost Tree From Leaf Values
1131 Medium Maximum of Absolute Value Expression
1137 Easy N-th Tribonacci Number
1138 Medium Alphabet Board Path
1139 Medium Largest 1-Bordered Square
1140 Medium Stone Game II
1143 Medium Longest Common Subsequence
1144 Medium Decrease Elements To Make Array Zigzag
1145 Medium Binary Tree Coloring Game
1146 Medium Snapshot Array
1155 Medium Number of Dice Rolls With Target Sum
1156 Medium Swap For Longest Repeated Character Substring
1160 Easy Find Words That Can Be Formed by Characters
1161 Medium Maximum Level Sum of a Binary Tree
1162 Medium As Far from Land as Possible
1170 Medium Compare Strings by Frequency of the Smallest Character
1171 Medium Remove Zero Sum Consecutive Nodes from Linked List
1177 Medium Can Make Palindrome from Substring
1186 Medium Maximum Subarray Sum with One Deletion
1190 Medium Reverse Substrings Between Each Pair of Parentheses
1195 Medium Fizz Buzz Multithreaded
1201 Medium Ugly Number III
1202 Medium Smallest String With Swaps
1207 Easy Unique Number of Occurrences
1208 Medium Get Equal Substrings Within Budget
1209 Medium Remove All Adjacent Duplicates in String II
1218 Medium Longest Arithmetic Subsequence of Given Difference
1219 Medium Path with Maximum Gold
1222 Medium Queens That Can Attack the King
1226 Medium The Dining Philosophers
1227 Medium Airplane Seat Assignment Probability
1232 Easy Check If It Is a Straight Line
1233 Medium Remove Sub-Folders from the Filesystem
1234 Medium Replace the Substring for Balanced String
1237 Medium Find Positive Integer Solution for a Given Equation
1238 Medium Circular Permutation in Binary Representation
1239 Medium Maximum Length of a Concatenated String with Unique Characters
1247 Medium Minimum Swaps to Make Strings Equal
1248 Medium Count Number of Nice Subarrays
1249 Medium Minimum Remove to Make Valid Parentheses
1253 Medium Reconstruct a 2-Row Binary Matrix
1254 Medium Number of Closed Islands
1261 Medium Find Elements in a Contaminated Binary Tree
1262 Medium Greatest Sum Divisible by Three
1266 Easy Minimum Time Visiting All Points
1267 Medium Count Servers that Communicate
1268 Medium Search Suggestions System
1276 Medium Number of Burgers with No Waste of Ingredients
1277 Medium Count Square Submatrices with All Ones
1282 Medium Group the People Given the Group Size They Belong To
1283 Medium Find the Smallest Divisor Given a Threshold
1286 Medium Iterator for Combination
1287 Easy Element Appearing More Than 25% In Sorted Array
1288 Medium Remove Covered Intervals
1292 Medium Maximum Side Length of a Square with Sum Less than or Equal to Threshold
1296 Medium Divide Array in Sets of K Consecutive Numbers
1297 Medium Maximum Number of Occurrences of a Substring
1300 Medium Sum of Mutated Array Closest to Target
1302 Medium Deepest Leaves Sum
1305 Medium All Elements in Two Binary Search Trees
1306 Medium Jump Game III
1310 Medium XOR Queries of a Subarray
1311 Medium Get Watched Videos by Your Friends
1314 Medium Matrix Block Sum
1315 Medium Sum of Nodes with Even-Valued Grandparent
1318 Medium Minimum Flips to Make a OR b Equal to c
1319 Medium Number of Operations to Make Network Connected
1325 Medium Delete Leaves With a Given Value
1328 Medium Break a Palindrome
1329 Medium Sort the Matrix Diagonally
1333 Medium Filter Restaurants by Vegan-Friendly, Price and Distance
1334 Medium Find the City With the Smallest Number of Neighbors at a Threshold Distance
1337 Easy The K Weakest Rows in a Matrix
1338 Medium Reduce Array Size to The Half
1339 Medium Maximum Product of Splitted Binary Tree
1343 Medium Number of Sub-arrays of Size K and Average Greater than or Equal to Threshold
1344 Medium Angle Between Hands of a Clock
1347 Medium Minimum Number of Steps to Make Two Strings Anagram
1348 Medium Tweet Counts Per Frequency
1351 Easy Count Negative Numbers in a Sorted Matrix
1352 Medium Product of the Last K Numbers
1353 Medium Maximum Number of Events That Can Be Attended
1356 Easy Sort Integers by The Number of 1 Bits
1357 Medium Apply Discount Every n Orders
1358 Medium Number of Substrings Containing All Three Characters
1361 Medium Validate Binary Tree Nodes
1362 Medium Closest Divisors
1366 Medium Rank Teams by Votes
1367 Medium Linked List in Binary Tree
1371 Medium Find the Longest Substring Containing Vowels in Even Counts
1372 Medium Longest ZigZag Path in a Binary Tree
1376 Medium Time Needed to Inform All Employees
1379 Easy Find a Corresponding Node of a Binary Tree in a Clone of That Tree
1380 Easy Lucky Numbers in a Matrix
1381 Medium Design a Stack With Increment Operation
1382 Medium Balance a Binary Search Tree
1386 Medium Cinema Seat Allocation
1387 Medium Sort Integers by The Power Value
1389 Easy Create Target Array in the Given Order
1390 Medium Four Divisors
1391 Medium Check if There is a Valid Path in a Grid
1395 Medium Count Number of Teams
1396 Medium Design Underground System
1400 Medium Construct K Palindrome Strings
1401 Medium Circle and Rectangle Overlapping
1404 Medium Number of Steps to Reduce a Number in Binary Representation to One
1405 Medium Longest Happy String
1409 Medium Queries on a Permutation With Key
1410 Medium HTML Entity Parser
1414 Medium Find the Minimum Number of Fibonacci Numbers Whose Sum Is K
1415 Medium The k-th Lexicographical String of All Happy Strings of Length n
1418 Medium Display Table of Food Orders in a Restaurant
1419 Medium Minimum Number of Frogs Croaking
1422 Easy Maximum Score After Splitting a String
1423 Medium Maximum Points You Can Obtain from Cards
1424 Medium Diagonal Traverse II
1431 Easy Kids With the Greatest Number of Candies
1432 Medium Max Difference You Can Get From Changing an Integer
1433 Medium Check If a String Can Break Another String
1436 Easy Destination City
1438 Medium Longest Continuous Subarray With Absolute Diff Less Than or Equal to Limit
1441 Medium Build an Array With Stack Operations
1442 Medium Count Triplets That Can Form Two Arrays of Equal XOR
1443 Medium Minimum Time to Collect All Apples in a Tree
1447 Medium Simplified Fractions
1448 Medium Count Good Nodes in Binary Tree
1451 Medium Rearrange Words in a Sentence
1452 Medium People Whose List of Favorite Companies Is Not a Subset of Another List
1456 Medium Maximum Number of Vowels in a Substring of Given Length
1457 Medium Pseudo-Palindromic Paths in a Binary Tree
1461 Medium Check If a String Contains All Binary Codes of Size K
1462 Medium Course Schedule IV
1464 Easy Maximum Product of Two Elements in an Array
1465 Medium Maximum Area of a Piece of Cake After Horizontal and Vertical Cuts
1466 Medium Reorder Routes to Make All Paths Lead to the City Zero
1471 Medium The k Strongest Values in an Array
1472 Medium Design Browser History
1476 Medium Subrectangle Queries
1477 Medium Find Two Non-overlapping Sub-arrays Each With Target Sum
1480 Easy Running Sum of 1d Array
1481 Medium Least Number of Unique Integers after K Removals
1482 Medium Minimum Number of Days to Make m Bouquets
1487 Medium Making File Names Unique
1488 Medium Avoid Flood in The City
1491 Easy Average Salary Excluding the Minimum and Maximum Salary
1492 Medium The kth Factor of n
1493 Medium Longest Subarray of 1's After Deleting One Element
1496 Easy Path Crossing
1497 Medium Check If Array Pairs Are Divisible by k
1498 Medium Number of Subsequences That Satisfy the Given Sum Condition
1502 Easy Can Make Arithmetic Progression From Sequence
1503 Medium Last Moment Before All Ants Fall Out of a Plank
1504 Medium Count Submatrices With All Ones
1508 Medium Range Sum of Sorted Subarray Sums
1509 Medium Minimum Difference Between Largest and Smallest Value in Three Moves
1512 Easy Number of Good Pairs
1513 Medium Number of Substrings With Only 1s
1514 Medium Path with Maximum Probability
1519 Medium Number of Nodes in the Sub-Tree With the Same Label
1524 Medium Number of Sub-arrays With Odd Sum
1525 Medium Number of Good Ways to Split a String
1529 Medium Minimum Suffix Flips
1530 Medium Number of Good Leaf Nodes Pairs
1535 Medium Find the Winner of an Array Game
1536 Medium Minimum Swaps to Arrange a Binary Grid
1540 Medium Can Convert String in K Moves
1541 Medium Minimum Insertions to Balance a Parentheses String
1545 Medium Find Kth Bit in Nth Binary String
1546 Medium Maximum Number of Non-Overlapping Subarrays With Sum Equals Target
1551 Medium Minimum Operations to Make Array Equal
1552 Medium Magnetic Force Between Two Balls
1557 Medium Minimum Number of Vertices to Reach All Nodes
1559 Medium Detect Cycles in 2D Grid
1561 Medium Maximum Number of Coins You Can Get
1562 Medium Find Latest Group of Size M
1567 Medium Maximum Length of Subarray With Positive Product
1572 Easy Matrix Diagonal Sum
1573 Medium Number of Ways to Split a String
1577 Medium Number of Ways Where Square of Number Is Equal to Product of Two Numbers
1578 Medium Minimum Time to Make Rope Colorful
1582 Easy Special Positions in a Binary Matrix
1583 Medium Count Unhappy Friends
1584 Medium Min Cost to Connect All Points
1589 Medium Maximum Sum Obtained of Any Permutation
1590 Medium Make Sum Divisible by P
1593 Medium Split a String Into the Max Number of Unique Substrings
1594 Medium Maximum Non Negative Product in a Matrix
1598 Easy Crawler Log Folder
1599 Medium Maximum Profit of Operating a Centennial Wheel
1600 Medium Throne Inheritance
1603 Easy Design Parking System
1604 Medium Alert Using Same Key-Card Three or More Times in a One Hour Period
1605 Medium Find Valid Matrix Given Row and Column Sums
1609 Medium Even Odd Tree
1615 Medium Maximal Network Rank
1616 Medium Split Two Strings to Make Palindrome
1620 Medium Coordinate With Maximum Network Quality
1621 Medium Number of Sets of K Non-Overlapping Line Segments
1624 Easy Largest Substring Between Two Equal Characters
1625 Medium Lexicographically Smallest String After Applying Operations
1626 Medium Best Team With No Conflicts
1630 Medium Arithmetic Subarrays
1631 Medium Path With Minimum Effort
1637 Easy Widest Vertical Area Between Two Points Containing No Points
1638 Medium Count Substrings That Differ by One Character
1642 Medium Furthest Building You Can Reach
1646 Easy Get Maximum in Generated Array
1647 Medium Minimum Deletions to Make Character Frequencies Unique
1648 Medium Sell Diminishing-Valued Colored Balls
1652 Easy Defuse the Bomb
1653 Medium Minimum Deletions to Make String Balanced
1656 Easy Design an Ordered Stream
1657 Medium Determine if Two Strings Are Close
1658 Medium Minimum Operations to Reduce X to Zero
1662 Easy Check If Two String Arrays are Equivalent
1663 Medium Smallest String With A Given Numeric Value
1664 Medium Ways to Make a Fair Array
1668 Easy Maximum Repeating Substring
1669 Medium Merge In Between Linked Lists
1670 Medium Design Front Middle Back Queue
1672 Easy Richest Customer Wealth
1673 Medium Find the Most Competitive Subsequence
1674 Medium Minimum Moves to Make Array Complementary
1678 Easy Goal Parser Interpretation
1680 Medium Concatenation of Consecutive Binary Numbers
1684 Easy Count the Number of Consistent Strings
1685 Medium Sum of Absolute Differences in a Sorted Array
1686 Medium Stone Game VI
1688 Easy Count of Matches in Tournament
1690 Medium Stone Game VII
1694 Easy Reformat Phone Number
1695 Medium Maximum Erasure Value
1696 Medium Jump Game VI
1700 Easy Number of Students Unable to Eat Lunch
1701 Medium Average Waiting Time
1702 Medium Maximum Binary String After Change
1704 Easy Determine if String Halves Are Alike
1705 Medium Maximum Number of Eaten Apples
1706 Medium Where Will the Ball Fall
1712 Medium Ways to Split Array Into Three Subarrays
1716 Easy Calculate Money in Leetcode Bank
1717 Medium Maximum Score From Removing Substrings
1718 Medium Construct the Lexicographically Largest Valid Sequence
1720 Easy Decode XORed Array
1721 Medium Swapping Nodes in a Linked List
1722 Medium Minimize Hamming Distance After Swap Operations
1725 Easy Number Of Rectangles That Can Form The Largest Square
1726 Medium Tuple with Same Product
1727 Medium Largest Submatrix With Rearrangements
1732 Easy Find the Highest Altitude
1733 Medium Minimum Number of People to Teach
1734 Medium Decode XORed Permutation
1736 Easy Latest Time by Replacing Hidden Digits
1737 Medium Change Minimum Characters to Satisfy One of Three Conditions
1738 Medium Find Kth Largest XOR Coordinate Value
1742 Easy Maximum Number of Balls in a Box
1743 Medium Restore the Array From Adjacent Pairs
1744 Medium Can You Eat Your Favorite Candy on Your Favorite Day?
1748 Easy Sum of Unique Elements
1749 Medium Maximum Absolute Sum of Any Subarray
1750 Medium Minimum Length of String After Deleting Similar Ends
1752 Easy Check if Array Is Sorted and Rotated
1753 Medium Maximum Score From Removing Stones
1754 Medium Largest Merge Of Two Strings
1758 Easy Minimum Changes To Make Alternating Binary String
1759 Medium Count Number of Homogenous Substrings
1760 Medium Minimum Limit of Balls in a Bag
1763 Easy Longest Nice Substring
1764 Medium Form Array by Concatenating Subarrays of Another Array
1765 Medium Map of Highest Peak
1768 Easy Merge Strings Alternately
1769 Medium Minimum Number of Operations to Move All Balls to Each Box
1773 Easy Count Items Matching a Rule
1774 Medium Closest Dessert Cost
1775 Medium Equal Sum Arrays With Minimum Number of Operations
1784 Easy Check if Binary String Has at Most One Segment of Ones
1785 Medium Minimum Elements to Add to Form a Given Sum
1786 Medium Number of Restricted Paths From First to Last Node
1790 Easy Check if One String Swap Can Make Strings Equal
1791 Easy Find Center of Star Graph
1792 Medium Maximum Average Pass Ratio
1796 Easy Second Largest Digit in a String
1797 Medium Design Authentication Manager
1798 Medium Maximum Number of Consecutive Values You Can Make
1800 Easy Maximum Ascending Subarray Sum
1801 Medium Number of Orders in the Backlog
1802 Medium Maximum Value at a Given Index in a Bounded Array
1805 Easy Number of Different Integers in a String
1806 Medium Minimum Number of Operations to Reinitialize a Permutation
1807 Medium Evaluate the Bracket Pairs of a String
1812 Easy Determine Color of a Chessboard Square
1813 Medium Sentence Similarity III
1814 Medium Count Nice Pairs in an Array
1816 Easy Truncate Sentence
1817 Medium Finding the Users Active Minutes
1818 Medium Minimum Absolute Sum Difference
1822 Easy Sign of the Product of an Array
1823 Medium Find the Winner of the Circular Game
1824 Medium Minimum Sideway Jumps
1827 Easy Minimum Operations to Make the Array Increasing
1828 Medium Queries on Number of Points Inside a Circle
1829 Medium Maximum XOR for Each Query
1832 Easy Check if the Sentence Is Pangram
1833 Medium Maximum Ice Cream Bars
1834 Medium Single-Threaded CPU
1837 Easy Sum of Digits in Base K
1838 Medium Frequency of the Most Frequent Element
1839 Medium Longest Substring Of All Vowels in Order
1844 Easy Replace All Digits with Characters
1845 Medium Seat Reservation Manager
1846 Medium Maximum Element After Decreasing and Rearranging
1848 Easy Minimum Distance to the Target Element
1849 Medium Splitting a String Into Descending Consecutive Values
1850 Medium Minimum Adjacent Swaps to Reach the Kth Smallest Number
1854 Easy Maximum Population Year
1855 Medium Maximum Distance Between a Pair of Values
1859 Easy Sorting the Sentence
1860 Medium Incremental Memory Leak
1861 Medium Rotating the Box
1863 Easy Sum of All Subset XOR Totals
1865 Medium Finding Pairs With a Certain Sum
1869 Easy Longer Contiguous Segments of Ones than Zeros
1870 Medium Minimum Speed to Arrive on Time
1871 Medium Jump Game VII
1876 Easy Substrings of Size Three with Distinct Characters
1877 Medium Minimize Maximum Pair Sum in Array
1878 Medium Get Biggest Three Rhombus Sums in a Grid
1880 Easy Check if Word Equals Summation of Two Words
1882 Medium Process Tasks Using Servers
1886 Easy Determine Whether Matrix Can Be Obtained By Rotation
1887 Medium Reduction Operations to Make the Array Elements Equal
1888 Medium Minimum Number of Flips to Make the Binary String Alternating
1893 Easy Check if All the Integers in a Range Are Covered
1898 Medium Maximum Number of Removable Characters
1899 Medium Merge Triplets to Form Target Triplet
1901 Medium Find a Peak Element II
1903 Easy Largest Odd Number in String
1904 Medium The Number of Full Rounds You Have Played
1905 Medium Count Sub Islands
1906 Medium Minimum Absolute Difference Queries
1910 Medium Remove All Occurrences of a Substring
1911 Medium Maximum Alternating Subsequence Sum
1913 Easy Maximum Product Difference Between Two Pairs
1914 Medium Cyclically Rotating a Grid
1915 Medium Number of Wonderful Substrings
1920 Easy Build Array from Permutation
1921 Medium Eliminate Maximum Number of Monsters
1925 Easy Count Square Sum Triples
1926 Medium Nearest Exit from Entrance in Maze
1929 Easy Concatenation of Array
1930 Medium Unique Length-3 Palindromic Subsequences
1935 Easy Maximum Number of Words You Can Type
1936 Medium Add Minimum Number of Rungs
1937 Medium Maximum Number of Points with Cost
1941 Easy Check if All Characters Have Equal Number of Occurrences
1942 Medium The Number of the Smallest Unoccupied Chair
1943 Medium Describe the Painting
1945 Easy Sum of Digits of String After Convert
1947 Medium Maximum Compatibility Score Sum
1952 Easy Three Divisors
1957 Easy Delete Characters to Make Fancy String
1958 Medium Check if Move is Legal
1959 Medium Minimum Total Space Wasted With K Resizing Operations
1961 Easy Check If String Is a Prefix of Array
1962 Medium Remove Stones to Minimize the Total
1963 Medium Minimum Number of Swaps to Make the String Balanced
1968 Medium Array With Elements Not Equal to Average of Neighbors
1969 Medium Minimum Non-Zero Product of the Array Elements
1971 Easy Find if Path Exists in Graph
1974 Easy Minimum Time to Type Word Using Special Typewriter
1975 Medium Maximum Matrix Sum
1976 Medium Number of Ways to Arrive at Destination
1979 Easy Find Greatest Common Divisor of Array
1980 Medium Find Unique Binary String
1981 Medium Minimize the Difference Between Target and Chosen Elements
1984 Easy Minimum Difference Between Highest and Lowest of K Scores
1985 Medium Find the Kth Largest Integer in the Array
1986 Medium Minimum Number of Work Sessions to Finish the Tasks
1991 Easy Find the Middle Index in Array
1992 Medium Find All Groups of Farmland
1993 Medium Operations on Tree
1995 Easy Count Special Quadruplets
1996 Medium The Number of Weak Characters in the Game
1997 Medium First Day Where You Have Been in All the Rooms
2000 Easy Reverse Prefix of Word
2001 Medium Number of Pairs of Interchangeable Rectangles
2002 Medium Maximum Product of the Length of Two Palindromic Subsequences
2006 Easy Count Number of Pairs With Absolute Difference K
2007 Medium Find Original Array From Doubled Array
2008 Medium Maximum Earnings From Taxi
2011 Easy Final Value of Variable After Performing Operations
2012 Medium Sum of Beauty in the Array
2013 Medium Detect Squares
2016 Easy Maximum Difference Between Increasing Elements
2017 Medium Grid Game
2018 Medium Check if Word Can Be Placed In Crossword
2022 Easy Convert 1D Array Into 2D Array
2023 Medium Number of Pairs of Strings With Concatenation Equal to Target
2024 Medium Maximize the Confusion of an Exam
2027 Easy Minimum Moves to Convert String
2028 Medium Find Missing Observations
2029 Medium Stone Game IX
2033 Medium Minimum Operations to Make a Uni-Value Grid
2034 Medium Stock Price Fluctuation
2037 Easy Minimum Number of Moves to Seat Everyone
2038 Medium Remove Colored Pieces if Both Neighbors are the Same Color
2039 Medium The Time When the Network Becomes Idle
2043 Medium Simple Bank System
2044 Medium Count Number of Maximum Bitwise-OR Subsets
2047 Easy Number of Valid Words in a Sentence
2048 Medium Next Greater Numerically Balanced Number
2049 Medium Count Nodes With the Highest Score
2053 Easy Kth Distinct String in an Array
2054 Medium Two Best Non-Overlapping Events
2055 Medium Plates Between Candles
2058 Medium Find the Minimum and Maximum Number of Nodes Between Critical Points
2059 Medium Minimum Operations to Convert Number
2063 Medium Vowels of All Substrings
2064 Medium Minimized Maximum of Products Distributed to Any Store
2068 Easy Check Whether Two Strings are Almost Equivalent
2069 Medium Walking Robot Simulation II
2070 Medium Most Beautiful Item for Each Query
2073 Easy Time Needed to Buy Tickets
2075 Medium Decode the Slanted Ciphertext
2079 Medium Watering Plants
2080 Medium Range Frequency Queries
2086 Medium Minimum Number of Food Buckets to Feed the Hamsters
2087 Medium Minimum Cost Homecoming of a Robot in a Grid
2090 Medium K Radius Subarray Averages
2091 Medium Removing Minimum and Maximum From Array
2095 Medium Delete the Middle Node of a Linked List
2096 Medium Step-By-Step Directions From a Binary Tree Node to Another
2099 Easy Find Subsequence of Length K With the Largest Sum
2100 Medium Find Good Days to Rob the Bank
2101 Medium Detonate the Maximum Bombs
2104 Medium Sum of Subarray Ranges
2105 Medium Watering Plants II
2108 Easy Find First Palindromic String in the Array
2109 Medium Adding Spaces to a String
2110 Medium Number of Smooth Descent Periods of a Stock
2116 Medium Check if a Parentheses String Can Be Valid
2120 Medium Execution of All Suffix Instructions Staying in a Grid
2121 Medium Intervals Between Identical Elements
2124 Easy Check if All A's Appears Before All B's
2125 Medium Number of Laser Beams in a Bank
2126 Medium Destroying Asteroids
2129 Easy Capitalize the Title
2130 Medium Maximum Twin Sum of a Linked List
2131 Medium Longest Palindrome by Concatenating Two Letter Words
2133 Easy Check if Every Row and Column Contains All Numbers
2134 Medium Minimum Swaps to Group All 1's Together II
2135 Medium Count Words Obtained After Adding a Letter
2138 Easy Divide a String Into Groups of Size k
2139 Medium Minimum Moves to Reach Target Score
2140 Medium Solving Questions With Brainpower
2144 Easy Minimum Cost of Buying Candies With Discount
2145 Medium Count the Hidden Sequences
2146 Medium K Highest Ranked Items Within a Price Range
2148 Easy Count Elements With Strictly Smaller and Greater Elements
2149 Medium Rearrange Array Elements by Sign
2150 Medium Find All Lonely Numbers in the Array
2154 Easy Keep Multiplying Found Values by Two
2155 Medium All Divisions With the Highest Score of a Binary Array
2160 Easy Minimum Sum of Four Digit Number After Splitting Digits
2161 Medium Partition Array According to Given Pivot
2164 Easy Sort Even and Odd Indices Independently
2165 Medium Smallest Value of the Rearranged Number
2166 Medium Design Bitset
2169 Easy Count Operations to Obtain Zero
2170 Medium Minimum Operations to Make the Array Alternating
2171 Medium Removing Minimum Number of Magic Beans
2176 Easy Count Equal and Divisible Pairs in an Array
2177 Medium Find Three Consecutive Integers That Sum to a Given Number
2178 Medium Maximum Split of Positive Even Integers
2180 Easy Count Integers With Even Digit Sum
2181 Medium Merge Nodes in Between Zeros
2182 Medium Construct String With Repeat Limit
2185 Easy Counting Words With a Given Prefix
2186 Medium Minimum Number of Steps to Make Two Strings Anagram II
2187 Medium Minimum Time to Complete Trips
2190 Easy Most Frequent Number Following Key In an Array
2191 Medium Sort the Jumbled Numbers
2192 Medium All Ancestors of a Node in a Directed Acyclic Graph
2194 Easy Cells in a Range on an Excel Sheet
2196 Medium Create Binary Tree From Descriptions
2201 Medium Count Artifacts That Can Be Extracted
2202 Medium Maximize the Topmost Element After K Moves
2207 Medium Maximize Number of Subsequences in a String
2208 Medium Minimum Operations to Halve Array Sum
2210 Easy Count Hills and Valleys in an Array
2211 Medium Count Collisions on a Road
2212 Medium Maximum Points in an Archery Competition
2215 Easy Find the Difference of Two Arrays
2216 Medium Minimum Deletions to Make Array Beautiful
2217 Medium Find Palindrome With Fixed Length
2220 Easy Minimum Bit Flips to Convert Number
2221 Medium Find Triangular Sum of an Array
2222 Medium Number of Ways to Select Buildings
2224 Easy Minimum Number of Operations to Convert Time
2225 Medium Find Players With Zero or One Losses
2226 Medium Maximum Candies Allocated to K Children
2231 Easy Largest Number After Digit Swaps by Parity
2232 Medium Minimize Result by Adding Parentheses to Expression
2233 Medium Maximum Product After K Increments
2235 Easy Add Two Integers
2236 Easy Root Equals Sum of Children
2239 Easy Find Closest Number to Zero
2240 Medium Number of Ways to Buy Pens and Pencils
2241 Medium Design an ATM Machine
2243 Easy Calculate Digit Sum of a String
2245 Medium Maximum Trailing Zeros in a Cornered Path
2249 Medium Count Lattice Points Inside a Circle
2250 Medium Count Number of Rectangles Containing Each Point
2255 Easy Count Prefixes of a Given String
2256 Medium Minimum Average Difference
2257 Medium Count Unguarded Cells in the Grid
2259 Easy Remove Digit From Number to Maximize Result
2260 Medium Minimum Consecutive Cards to Pick Up
2261 Medium K Divisible Elements Subarrays
2264 Easy Largest 3-Same-Digit Number in String
2265 Medium Count Nodes Equal to Average of Subtree
2266 Medium Count Number of Texts
2269 Easy Find the K-Beauty of a Number
2270 Medium Number of Ways to Split Array
2271 Medium Maximum White Tiles Covered by a Carpet
2273 Easy Find Resultant Array After Removing Anagrams
2274 Medium Maximum Consecutive Floors Without Special Floors
2275 Medium Largest Combination With Bitwise AND Greater Than Zero
2278 Easy Percentage of Letter in String
2279 Medium Maximum Bags With Full Capacity of Rocks
2280 Medium Minimum Lines to Represent a Line Chart
2283 Easy Check if Number Has Equal Digit Count and Digit Value
2284 Medium Sender With Largest Word Count
2287 Easy Rearrange Characters to Make Target String
2288 Medium Apply Discount to Prices
2293 Easy Min Max Game
2295 Medium Replace Elements in an Array
2299 Easy Strong Password Checker II
2300 Medium Successful Pairs of Spells and Potions
2304 Medium Minimum Path Cost in a Grid
2305 Medium Fair Distribution of Cookies
2309 Easy Greatest English Letter in Upper and Lower Case
2311 Medium Longest Binary Subsequence Less Than or Equal to K
2315 Easy Count Asterisks
2316 Medium Count Unreachable Pairs of Nodes in an Undirected Graph
2317 Medium Maximum XOR After Operations
2319 Easy Check if Matrix Is X-Matrix
2320 Medium Count Number of Ways to Place Houses
2325 Easy Decode the Message
2326 Medium Spiral Matrix IV
2327 Medium Number of People Aware of a Secret
2331 Easy Evaluate Boolean Binary Tree
2332 Medium The Latest Time to Catch a Bus
2333 Medium Minimum Sum of Squared Difference
2335 Easy Minimum Amount of Time to Fill Cups
2336 Medium Smallest Number in Infinite Set
2337 Medium Move Pieces to Obtain a String
2341 Easy Maximum Number of Pairs in Array
2342 Medium Max Sum of a Pair With Equal Sum of Digits
2343 Medium Query Kth Smallest Trimmed Number
2347 Easy Best Poker Hand
2348 Medium Number of Zero-Filled Subarrays
2349 Medium Design a Number Container System
2351 Easy First Letter to Appear Twice
2352 Medium Equal Row and Column Pairs
2353 Medium Design a Food Rating System
2357 Easy Make Array Zero by Subtracting Equal Amounts
2358 Medium Maximum Number of Groups Entering a Competition
2359 Medium Find Closest Node to Given Two Nodes
2363 Easy Merge Similar Items
2364 Medium Count Number of Bad Pairs
2365 Medium Task Scheduler II
2367 Easy Number of Arithmetic Triplets
2368 Medium Reachable Nodes With Restrictions
2369 Medium Check if There is a Valid Partition For The Array
2370 Medium Longest Ideal Subsequence
2373 Easy Largest Local Values in a Matrix
2374 Medium Node With Highest Edge Score
2375 Medium Construct Smallest Number From DI String
2379 Easy Minimum Recolors to Get K Consecutive Black Blocks
2380 Medium Time Needed to Rearrange a Binary String
2381 Medium Shifting Letters II
2383 Easy Minimum Hours of Training to Win a Competition
2384 Medium Largest Palindromic Number
2385 Medium Amount of Time for Binary Tree to Be Infected
2389 Easy Longest Subsequence With Limited Sum
2390 Medium Removing Stars From a String
2391 Medium Minimum Amount of Time to Collect Garbage
2395 Easy Find Subarrays With Equal Sum
2396 Medium Strictly Palindromic Number
2397 Medium Maximum Rows Covered by Columns
2399 Easy Check Distances Between Same Letters
2400 Medium Number of Ways to Reach a Position After Exactly k Steps
2401 Medium Longest Nice Subarray
2404 Easy Most Frequent Even Element
2405 Medium Optimal Partition of String
2406 Medium Divide Intervals Into Minimum Number of Groups
2409 Easy Count Days Spent Together
2410 Medium Maximum Matching of Players With Trainers
2411 Medium Smallest Subarrays With Maximum Bitwise OR
2413 Easy Smallest Even Multiple
2414 Medium Length of the Longest Alphabetical Continuous Substring
2415 Medium Reverse Odd Levels of Binary Tree
2418 Easy Sort the People
2419 Medium Longest Subarray With Maximum Bitwise AND
2420 Medium Find All Good Indices
2423 Easy Remove Letter To Equalize Frequency
2424 Medium Longest Uploaded Prefix
2425 Medium Bitwise XOR of All Pairings
2427 Easy Number of Common Factors
2428 Medium Maximum Sum of an Hourglass
2429 Medium Minimize XOR
2432 Easy The Employee That Worked on the Longest Task
2433 Medium Find The Original Array of Prefix Xor
2434 Medium Using a Robot to Print the Lexicographically Smallest String
2437 Easy Number of Valid Clock Times
2438 Medium Range Product Queries of Powers
2439 Medium Minimize Maximum of Array
2441 Easy Largest Positive Integer That Exists With Its Negative
2442 Medium Count Number of Distinct Integers After Reverse Operations
2443 Medium Sum of Number and Its Reverse
2446 Easy Determine if Two Events Have Conflict
2447 Medium Number of Subarrays With GCD Equal to K
2451 Easy Odd String Difference
2452 Medium Words Within Two Edits of Dictionary
2453 Medium Destroy Sequential Targets
2455 Easy Average Value of Even Numbers That Are Divisible by Three
2456 Medium Most Popular Video Creator
2457 Medium Minimum Addition to Make Integer Beautiful
2460 Easy Apply Operations to an Array
2461 Medium Maximum Sum of Distinct Subarrays With Length K
2462 Medium Total Cost to Hire K Workers
2465 Easy Number of Distinct Averages
2466 Medium Count Ways To Build Good Strings
2467 Medium Most Profitable Path in a Tree
2469 Easy Convert the Temperature
2470 Medium Number of Subarrays With LCM Equal to K
2471 Medium Minimum Number of Operations to Sort a Binary Tree by Level
2475 Easy Number of Unequal Triplets in Array
2476 Medium Closest Nodes Queries in a Binary Search Tree
2477 Medium Minimum Fuel Cost to Report to the Capital
2481 Easy Minimum Cuts to Divide a Circle
2482 Medium Difference Between Ones and Zeros in Row and Column
2483 Medium Minimum Penalty for a Shop
2485 Easy Find the Pivot Integer
2486 Medium Append Characters to String to Make Subsequence
2487 Medium Remove Nodes From Linked List
2490 Easy Circular Sentence
2491 Medium Divide Players Into Teams of Equal Skill
2492 Medium Minimum Score of a Path Between Two Cities
2496 Easy Maximum Value of a String in an Array
2497 Medium Maximum Star Sum of a Graph
2498 Medium Frog Jump II
2500 Easy Delete Greatest Value in Each Row
2501 Medium Longest Square Streak in an Array
2502 Medium Design Memory Allocator
2506 Easy Count Pairs Of Similar Strings
2507 Medium Smallest Value After Replacing With Sum of Prime Factors
2511 Easy Maximum Enemy Forts That Can Be Captured
2512 Medium Reward Top K Students
2513 Medium Minimize the Maximum of Two Arrays
2515 Easy Shortest Distance to Target String in a Circular Array
2516 Medium Take K of Each Character From Left and Right
2517 Medium Maximum Tastiness of Candy Basket
2520 Easy Count the Digits That Divide a Number
2521 Medium Distinct Prime Factors of Product of Array
2522 Medium Partition String Into Substrings With Values at Most K
2523 Medium Closest Prime Numbers in Range
2525 Easy Categorize Box According to Criteria
2526 Medium Find Consecutive Integers from a Data Stream
2527 Medium Find Xor-Beauty of Array
2529 Easy Maximum Count of Positive Integer and Negative Integer
2530 Medium Maximal Score After Applying K Operations
2531 Medium Make Number of Distinct Characters Equal
2535 Easy Difference Between Element Sum and Digit Sum of an Array
2536 Medium Increment Submatrices by One
2537 Medium Count the Number of Good Subarrays
2540 Easy Minimum Common Value
2541 Medium Minimum Operations to Make Array Equal II
2542 Medium Maximum Subsequence Score
2544 Easy Alternating Digit Sum
2545 Medium Sort the Students by Their Kth Score
2546 Medium Apply Bitwise Operations to Make Strings Equal
2549 Easy Count Distinct Numbers on Board
2550 Medium Count Collisions of Monkeys on a Polygon
2553 Easy Separate the Digits in an Array
2554 Medium Maximum Number of Integers to Choose From a Range I
2555 Medium Maximize Win From Two Segments
2556 Medium Disconnect Path in a Binary Matrix by at Most One Flip
2558 Easy Take Gifts From the Richest Pile
2559 Medium Count Vowel Strings in Ranges
2560 Medium House Robber IV
2562 Easy Find the Array Concatenation Value
2563 Medium Count the Number of Fair Pairs
2564 Medium Substring XOR Queries
2566 Easy Maximum Difference by Remapping a Digit
2567 Medium Minimum Score by Changing Two Elements
2568 Medium Minimum Impossible OR
2570 Easy Merge Two 2D Arrays by Summing Values
2571 Medium Minimum Operations to Reduce an Integer to 0
2572 Medium Count the Number of Square-Free Subsets
2574 Easy Left and Right Sum Differences
2575 Medium Find the Divisibility Array of a String
2576 Medium Find the Maximum Number of Marked Indices
2578 Easy Split With Minimum Sum
2579 Medium Count Total Number of Colored Cells
2580 Medium Count Ways to Group Overlapping Ranges
2582 Easy Pass the Pillow
2583 Medium Kth Largest Sum in a Binary Tree
2586 Easy Count the Number of Vowel Strings in Range
2587 Medium Rearrange Array to Maximize Prefix Score
2588 Medium Count the Number of Beautiful Subarrays
2591 Easy Distribute Money to Maximum Children
2592 Medium Maximize Greatness of an Array
2593 Medium Find Score of an Array After Marking All Elements
2594 Medium Minimum Time to Repair Cars
2595 Easy Number of Even and Odd Bits
2596 Medium Check Knight Tour Configuration
2597 Medium The Number of Beautiful Subsets
2598 Medium Smallest Missing Non-negative Integer After Operations
2600 Easy K Items With the Maximum Sum
2601 Medium Prime Subtraction Operation
2602 Medium Minimum Operations to Make All Array Elements Equal
2605 Easy Form Smallest Number From Two Digit Arrays
2606 Medium Find the Substring With Maximum Cost
2607 Medium Make K-Subarray Sums Equal
2609 Easy Find the Longest Balanced Substring of a Binary String
2610 Medium Convert an Array Into a 2D Array With Conditions
2611 Medium Mice and Cheese
2614 Easy Prime In Diagonal
2615 Medium Sum of Distances
2616 Medium Minimize the Maximum Difference of Pairs
2639 Easy Find the Width of Columns of a Grid
2640 Medium Find the Score of All Prefixes of an Array
2641 Medium Cousins in Binary Tree II
2643 Easy Row With Maximum Ones
2644 Easy Find the Maximum Divisibility Score
2645 Medium Minimum Additions to Make Valid String
2651 Easy Calculate Delayed Arrival Time
2652 Easy Sum Multiples
2653 Medium Sliding Subarray Beauty
2654 Medium Minimum Number of Operations to Make All Array Elements Equal to 1
2656 Easy Maximum Sum With Exactly K Elements
2657 Medium Find the Prefix Common Array of Two Arrays
2658 Medium Maximum Number of Fish in a Grid
2660 Easy Determine the Winner of a Bowling Game
2661 Medium First Completely Painted Row or Column
2670 Easy Find the Distinct Difference Array
2672 Medium Number of Adjacent Elements With the Same Color
2673 Medium Make Costs of Paths Equal in a Binary Tree
2678 Easy Number of Senior Citizens
2679 Medium Sum in a Matrix
2680 Medium Maximum OR
2682 Easy Find the Losers of the Circular Game
2683 Medium Neighboring Bitwise XOR
2684 Medium Maximum Number of Moves in a Grid
2685 Medium Count the Number of Complete Components
2696 Easy Minimum String Length After Removing Substrings
2697 Easy Lexicographically Smallest Palindrome
2706 Easy Buy Two Chocolates
2707 Medium Extra Characters in a String
2708 Medium Maximum Strength of a Group
2710 Easy Remove Trailing Zeros From a String
2711 Medium Difference of Number of Distinct Values on Diagonals
2712 Medium Minimum Cost to Make All Characters Equal
2716 Easy Minimize String Length
2717 Easy Semi-Ordered Permutation
2718 Medium Sum of Matrix After Queries
2729 Easy Check if The Number is Fascinating
2730 Medium Find the Longest Semi-Repetitive Substring
2731 Medium Movement of Robots
2733 Easy Neither Minimum nor Maximum
2734 Medium Lexicographically Smallest String After Substring Operation
2735 Medium Collecting Chocolates
2739 Easy Total Distance Traveled
2740 Medium Find the Value of the Partition
2741 Medium Special Permutations
2744 Easy Find Maximum Number of String Pairs
2746 Medium Decremental String Concatenation
2747 Medium Count Zero Request Servers
2748 Easy Number of Beautiful Pairs
2750 Medium Ways to Split Array Into Good Subarrays
2760 Easy Longest Even Odd Subarray With Threshold
2761 Medium Prime Pairs With Target Sum
2762 Medium Continuous Subarrays
2765 Easy Longest Alternating Subarray
2766 Medium Relocate Marbles
2767 Medium Partition String Into Minimum Beautiful Substrings
2768 Medium Number of Black Blocks
2769 Easy Find the Maximum Achievable Number
2770 Medium Maximum Number of Jumps to Reach the Last Index
2771 Medium Longest Non-decreasing Subarray From Two Arrays
2772 Medium Apply Operations to Make All Array Elements Equal to Zero
2778 Easy Sum of Squares of Special Elements
2780 Medium Minimum Index of a Valid Split
2784 Easy Check if Array is Good
2785 Medium Sort Vowels in a String
2786 Medium Visit Array Positions to Maximize Score
2788 Easy Split Strings by Separator
2789 Medium Largest Element in an Array after Merge Operations
2798 Easy Number of Employees Who Met the Target
2799 Medium Count Complete Subarrays in an Array
2800 Medium Shortest String That Contains Three Strings
2806 Easy Account Balance After Rounded Purchase
2807 Medium Insert Greatest Common Divisors in Linked List
2808 Medium Minimum Seconds to Equalize a Circular Array
2810 Easy Faulty Keyboard
2811 Medium Check if it is Possible to Split Array
2812 Medium Find the Safest Path in a Grid
2815 Easy Max Pair Sum in an Array
2816 Medium Double a Number Represented as a Linked List
2817 Medium Minimum Absolute Difference Between Elements With Constraint
2824 Easy Count Pairs Whose Sum is Less than Target
2825 Medium Make String a Subsequence Using Cyclic Increments
2826 Medium Sorting Three Groups
2828 Easy Check if a String Is an Acronym of Words
2829 Medium Determine the Minimum Sum of a k-avoiding Array
2830 Medium Maximize the Profit as the Salesman
2831 Medium Find the Longest Equal Subarray
2833 Easy Furthest Point From Origin
2839 Easy Check if Strings Can be Made Equal With Operations I
2840 Medium Check if Strings Can be Made Equal With Operations II
2841 Medium Maximum Sum of Almost Unique Subarray
2843 Easy Count Symmetric Integers
2844 Medium Minimum Operations to Make a Special Number
2845 Medium Count of Interesting Subarrays
2848 Easy Points That Intersect With Cars
2849 Medium Determine if a Cell Is Reachable at a Given Time
2850 Medium Minimum Moves to Spread Stones Over Grid
2855 Easy Minimum Right Shifts to Sort the Array
2856 Medium Minimum Array Length After Pair Removals
2857 Medium Count Pairs of Points With Distance k
2859 Easy Sum of Values at Indices With K Set Bits
2860 Medium Happy Students
2861 Medium Maximum Number of Alloys
2864 Easy Maximum Odd Binary Number
2865 Medium Beautiful Towers I
2866 Medium Beautiful Towers II
2869 Easy Minimum Operations to Collect Elements
2870 Medium Minimum Number of Operations to Make Array Empty
2871 Medium Split Array Into Maximum Number of Subarrays
2873 Easy Maximum Value of an Ordered Triplet I
2874 Medium Maximum Value of an Ordered Triplet II
2875 Medium Minimum Size Subarray in Infinite Array
2894 Easy Divisible and Non-divisible Sums Difference
2895 Medium Minimum Processing Time
2899 Easy Last Visited Integers
2900 Easy Longest Unequal Adjacent Groups Subsequence I
2901 Medium Longest Unequal Adjacent Groups Subsequence II
2903 Easy Find Indices With Index and Value Difference I
2904 Medium Shortest and Lexicographically Smallest Beautiful String
2905 Medium Find Indices With Index and Value Difference II
2906 Medium Construct Product Matrix
2908 Easy Minimum Sum of Mountain Triplets I
2909 Medium Minimum Sum of Mountain Triplets II
2910 Medium Minimum Number of Groups to Create a Valid Assignment
2913 Easy Subarrays Distinct Element Sum of Squares I
2914 Medium Minimum Number of Changes to Make Binary String Beautiful
2915 Medium Length of the Longest Subsequence That Sums to Target
2917 Easy Find the K-or of an Array
2918 Medium Minimum Equal Sum of Two Arrays After Replacing Zeros
2919 Medium Minimum Increment Operations to Make Array Beautiful
2923 Easy Find Champion I
2924 Medium Find Champion II
2928 Easy Distribute Candies Among Children I
2932 Easy Maximum Strong Pair XOR I
2933 Medium High-Access Employees
2934 Medium Minimum Operations to Maximize Last Elements in Arrays
2937 Easy Make Three Strings Equal
2938 Medium Separate Black and White Balls
2942 Easy Find Words Containing Character
2943 Medium Maximize Area of Square Hole in Grid
2944 Medium Minimum Number of Coins for Fruits
2946 Easy Matrix Similarity After Cyclic Shifts
2947 Medium Count Beautiful Substrings I
2948 Medium Make Lexicographically Smallest Array by Swapping Elements
2951 Easy Find the Peaks
2952 Medium Minimum Number of Coins to be Added
2956 Easy Find Common Elements Between Two Arrays
2957 Medium Remove Adjacent Almost-Equal Characters
2958 Medium Length of Longest Subarray With at Most K Frequency
2960 Easy Count Tested Devices After Test Operations
2961 Medium Double Modular Exponentiation
2962 Medium Count Subarrays Where Max Element Appears at Least K Times
2965 Easy Find Missing and Repeated Values
2966 Medium Divide Array Into Arrays With Max Difference
2971 Medium Find Polygon With the Largest Perimeter
3005 Easy Count Elements With Maximum Frequency
3026 Medium Maximum Good Subarray Sum
3042 Easy Count Prefix and Suffix Pairs I
3043 Medium Find the Length of the Longest Common Prefix
3044 Medium Most Frequent Prime
3046 Easy Split the Array
3081 Medium Replace Question Marks in String to Minimize Its Value
3099 Easy Harshad Number
3100 Medium Water Bottles II
3101 Medium Count Alternating Subarrays
3110 Easy Score of a String
3120 Easy Count the Number of Special Characters I
3121 Medium Count the Number of Special Characters II
3122 Medium Minimum Number of Operations to Satisfy Conditions
3127 Easy Make a Square with the Same Color
3128 Medium Right Triangles
3129 Medium Find All Possible Stable Binary Arrays I
3136 Easy Valid Word
3137 Medium Minimum Number of Operations to Make Word K-Periodic
3138 Medium Minimum Length of Anagram Concatenation
3146 Easy Permutation Difference between Two Strings
3162 Easy Find the Number of Good Pairs I
3163 Medium String Compression III
3168 Easy Minimum Number of Chairs in a Waiting Room
3169 Medium Count Days Without Meetings
3178 Easy Find the Child Who Has the Ball After K Seconds
3179 Medium Find the N-th Value After K Seconds
3190 Easy Find Minimum Operations to Make All Elements Divisible by Three

About

grid47.xyz

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages