Home

Awesome

LeetCode Algorithms

problems-solved problems-solved-java problems-solved-python problems-solved-javascript PRs Welcome cp

🔒 = Subscription Content

Problems

#NameSolutionYoutube
1Two SumJava Pythonjava-yt python-yt
2Add Two NumbersJava js
3Longest Substring Without Repeating CharactersJava
5Longest Palindromic SubstringJava
6Zigzag ConversionJava
7Reverse IntegerJava Python jsjava-yt python-yt
8String to Integer (atoi)Java
9Palindrome NumberJava Python js
11Container With Most WaterJava
12Integer to RomanJava
13Roman To IntegerJava Pythonjava-yt python-yt
14Longest Common PrefixJava Python
153SumJava
163Sum ClosestJava
17Letter Combinations of a Phone NumberJava
184SumJava
19Remove Nth Node From End of ListJava
20ValidParenthesesJava Python
21Merge 2 Sorted ListsJava Python
22Generate ParenthesesJava
24Swap Nodes in PairsJava
25Reverse Nodes in k-GroupJava
26Remove Duplicates From Sorted ArrayJava Python js
27Remove ElementJava Python
28Needle in HaystackJava Python
29Divide Two IntegersJava
30Substring with Concatenation of All WordsJava
31Next PermutationJava
33Search in Rotated Sorted ArrayJava
34Find First and Last Position of Element in Sorted ArrayJava
35Search Inserted PositionJava Python
36Valid SudokuJava
37Sudoku SolverJava
38Count and SayJava Python
39Combination SumJava
40Combination Sum IIJava
41First Missing PositiveJava
42Trapping Rain WaterJava
43Multiply StringsJava
45Jump Game IIJava
46PermutationsJava
47Permutations IIJava
48Rotate ImageJava
49Group AnagramsJava
50Pow(x,n)Java
51N-QueensJava
51N-Queens IIJava
53Maximum SubArrayJava Python
54Spiral MatrixJava
55Jump GameJava
56Merge IntervalsJava
57Insert IntervalJava
58Length of Last WordJava Python
59Spiral Matrix IIJava
61Rotate ListJava
62Unique PathsJava
63Unique Paths IIJava
64Minimum Path SumJava Python
66Plus OneJava Python
67Add BinaryJava Python
68Text JustificationJava
69Sqrt(x)Java Python
70Climbing StairsJava Python
71Simplify PathJava
72Edit DistanceJava
73Set Matrix ZeroesJava
74Search a 2D MatrixJava
75Sort ColorsJava
77CombinationsJava
78SubsetsJava
79Word SearchJava
80Remove Duplicates from Sorted Array IIJava
81Search in Rotated Sorted Array IIJava
82Remove Duplicates from Sorted List IIJava
83Remove Duplicates from Sorted ListJava Python
86Partition ListJava
87Scramble StringPython
88Merge Sorted ArrayJava Python
89Gray CodeJava
90Subsets IIJava
91Decode WaysJava
92Reverse Linked List IIJava
93Restore IP AddressesJava
94Binary Tree Inorder TraversalJava Python
95Unique Binary Search Trees IIJava
96Unique Binary Search TreesJava
97Interleaving StringJava
98Validate Binary Search TreeJava
99Recover Binary Search TreeJava
100Same TreeJava Python
101Symmetric TreeJava Python
102Binary Tree Level Order TraversalJava
103Binary Tree Zigzag Level Order TraversalJava
104Maximum Depth of Binary TreeJava Python
105Construct Binary Tree from Preorder and Inorder TraversalJava
106Construct Binary Tree from Inorder and Postorder TraversalJava
107Binary Tree Level Order Traversal IIJava Python
108Convert Sorted Array To Binary Search TreeJava Python
109Convert Sorted List to Binary Search TreeJava
110Balanced Binary TreeJava Python
111Minimum Depth of Binary TreeJava Python
112Path SumJava Python
113Path Sum IIJava
114Flatten Binary Tree to Linked ListJava
116Populating Next Right Pointers in Each NodeJava
117Populating Next Right Pointers in Each Node IIJava
118Pascal's TriangleJava Python
119Pascal's Triangle IIJava Python
120TriangleJava
121Best Time to Buy and Sell StocksJava Python
122Best Time to Buy and Sell Stocks IIJava Python
123Binary Tree Maximum Path SumJava
125Valid PalindromeJava Python
127Word LadderJava
128Longest Consecutive SequenceJava
129Sum Root to Leaf NumbersJava
130Surrounded RegionsJava
131Palindrome PartitioningJava
133Clone GraphJava Python
134Gas StationJava
135CandyJava
136Single NumberJava Python
137Single Number IIJava
138Copy List with Random PointerJava
139Word BreakJava
141Linked List CycleJava Python
142Linked List Cycle IIJava
143Reorder ListJava
144Binary Tree Preorder TraversalJava Python
145Binary Tree Postorder TraversalJava Python
146LRU CacheJava
147Insertion Sort ListJava
148Sort ListJava
150Evaluate Reverse Polish NotationJava
151Reverse Words in a StringJava
152Maximum Product SubarrayJava
153Find Minimum in Rotated Sorted ArrayJava
155Min StackJava Python
156🔒 Binary Tree Upside Down
157🔒 Read N Characters Given Read4Java
159🔒 Longest Substring With At Most Two Distinct Characters
160Intersection of Two Linked ListsJava Python
161🔒 One Edit Distance
162Find Peak ElementJava
163Missing RangesJava
164Maximum Gap
165Compare Version NumbersJava
166Fraction to Recurring DecimalJava
167Two Sum II - Input Array is SortedJava Python
168Excel Sheet Column TitleJava Python
169Majority ElementJava Python
170🔒 Two Sum III - Data Structure DesignJava
171Excel Sheet Column NumberJava Python
172Factoring Trailing ZeroesJava Python
173Binary Search Tree IteratorJava
179Largest NumberJava
187Repeated DNA SequencesJava
189Rotate ArrayJava Python
190Reverse BitsJava Python
191Number of One BitsJava Python
198House RobberJava Python
199Binary Tree Right Side ViewJava
200Number of IslandsJava Python
201Bitwise AND of Numbers RangeJava
202Happy NumberJava Python
203Remove Linked List ElementsJava Python
204Count PrimesJava Python
205Isomorphic StringsJava Python
206Reverse Linked ListJava Python
207Course ScheduleJava
208Implement Trie (Prefix Tree)Java Python
209Minimum Size Subarray SumJava
210Course Schedule IIJava
211Design Add and Search Words Data StructureJava Python
213House Robber IIJava
215Kth Largest Element in an ArrayJava
216Combination Sum IIIJava
217Contains DuplicateJava Python
218The Skyline ProblemPython
219Contains Duplicate IIJava Python
220Contains Duplicate IIIJava
221Maximal SquareJava
222Count Complete Tree NodesJava
223Rectangle AreaJava
224Basic CalculatorJava
225Implement Stack using QueuesJava Python
226Invert Binary TreeJava Python
227Basic Calculator IIJava
229Majority Element IIJava
230Kth Smallest Element in a BSTJava
231Power of TwoJava Python
232Implement Queue Using StacksJava Python
234Palindrome Linked ListsJava Python
235Lowest Common Ancestor of a Binary Search TreeJava Python
236Lowest Common Ancestor of a Binary TreeJava
237Delete a Node In A Linked ListJava Python
238Product of Array Except SelfJava
240Search a 2D Matrix IIJava
241Different Ways to Add Parentheses
242Valid AnagramJava Python
243🔒 Shortest Word DistanceJava
244🔒 Shortest Word Distance II
245🔒 Shortest Word Distance III
246🔒 Strobogrammatic NumberJava
247🔒 Strobogrammatic Number II
249🔒 Group Shifted Strings
250🔒 Count Univalue Subtrees
251🔒 Flatten 2D Vector
252🔒 Meeting RoomsJava
253🔒 Meeting Rooms II
254🔒 Factor Combinations
255🔒 Verify Preorder Sequence In Binary Search Tree
256🔒 Paint House
257Binary Tree PathsJava Python
258Add DigitsJava Python
259🔒 3Sum Smaller
260Single Number IIIJava
261🔒 Graph Valid TreeJava
263Ugly NumberJava Python
264Ugly Number IIJava
266🔒 Palindrome PermutationJava
267🔒 Palindrome Permutation II
268Missing NumberJava Python
269Alien DictionaryJava
270🔒 Closest Binary Search Tree ValueJava
271🔒 Encode and Decode Strings
274H-IndexJava
275H-Index IIJava
276🔒 Paint Fence
277🔒 Find The Celebrity
278First Bad VersionJava Python
279Perfect SquaresJava
280🔒 Wiggle Sort
281🔒 Zigzag Iterator
283Move ZeroesJava Python
284Peeking IteratorJava
285🔒 Inorder Successor in BST
286🔒 Walls and Gates
287Find the Duplicate NumberJava
288🔒 Unique Word Abbreviation
289Game of Life
290Word PatternJava Python
291🔒 Word Pattern II
292Nim GameJava Python
293🔒 Flip GameJava
294🔒 Flip Game II
298🔒 Binary Tree Longest Consecutive Sequence
299Bulls and CowsJava Python
300Longest Increasing SubsequenceJava
303Range Sum Query - ImmutableJava Python
304Range Sum Query 2D - Immutable
306Additive Number
307Range Sum Query - Mutable
309Best Time to Buy and Sell Stock with Cooldown
310Minimum Height TreesJava
311🔒 Sparse Matrix Multiplication
313Super Ugly Number
314🔒 Binary Tree Vertical Order Traversal
316Remove Duplicate Letters
318Maximum Product of Word Lengths
319Bulb Switcher
320🔒 Generalized Abbreviation
322Coin Change
323🔒 Number of Connected Components in Undirected GraphJava
324Wiggle Sort II
325🔒 Maximum Size Subarray Sum Equals K
326Power of ThreeJava Python
328Odd Even Linked List
331Verify Preorder Serialization of a Binary Tree
331🔒 Largest BST Subtree
332Reconstruct ItineraryJava
334Increasing Triplet Subsequence
337House Robber III
338Counting BitsJava Python
339🔒 Nested List Weight Sum
340🔒 Longest Substring with At Most K Distinct Characters
341Flatten Nested List Iterator
342Power of FourJava Python
343Integer Break
344Reverse A StringJava Python
345Reverse Vowels of A StringJava Python
346🔒 Moving Average From Data StreamJava
347Top K frequent Elements
348🔒 Design Tic-Tac-Toe
349Intersection of 2 ArraysJava Python
350Intersection of 2 Arrays IIJava Python
351🔒 Android Unlock Patterns
355Design Twitter
357Count Numbers with Unique Digits
359🔒 Logger Rate LimiterJava
367Valid Perfect SquareJava Python
374Guess Number Higher or LowerJava Python
380Insert Delete GetRandom O(1)Java
383Ransom NoteJava Python
387First Unique Character in StringJava Python
389Find the DifferenceJava Python
392Is SubsequenceJava Python
399Evaluate DivisionJava
401Binary WatchJava Python
404Sum of Left LeavesJava Python
405Convert a Number to HexadecimalJava Python
408🔒 Valid Word AbbreviationJava
409Longest PalindromeJava Python
412Fizz BuzzJava Python
414Third Maximum NumberJava Python
415Add StringsJava Python
422🔒 Valid Word Square
429🔒 N-ary Tree Level Order TraversalJava
430Flatten a Multilevel Doubly Linked ListJava
433Minimum Genetic MutationJava
434Number of Segments in a StringJava Python
441Arranging CoinsJava Python
443String CompressionJava Python
447Number of BoomerangsJava Python
448Find All Numbers Disappeared in an ArrayJava Python
452Minimum Number of Arrows to Burst BalloonsJava
453Minimum Moves to Equal Array ElementsJava Python
455Assign CookiesJava Python
459Repeated Substring PatternJava Python
461Hamming DistanceJava Python
463Island PerimeterJava Python
475HeatersJava Python
476Number ComplementJava Python
482License Key FormattingJava Python
485Max Consecutive OnesJava Python
492Construct the RectangleJava Python
495Teemo AttackingJava Python
496Next Greater Element IJava Python
499The Maze IIIJava
500Keyboard RowJava Python
501Find Mode in Binary Search TreeJava Python
504Base 7Java Python
505The Maze IIJava
506Relative RanksJava Python
507Perfect NumberJava Python
509Fibonacci NumberJava Python
520Detect CapitalJava Python
521Longest Uncommon Subsequence IJava Python
530Minimum Absolute Difference in BSTJava Python
532K - Diff Pairs in ArrayJava Python
538Convert BST to Greater TreeJava Python
541Reverse String IIJava Python
543Diameter of Binary TreeJava Python
547Number of ProvincesJava
551Student Attendance Record IJava Python
557Reverse Words in a String IIIJava Python
559Maximum Depth of N-Ary TreeJava Python
561Array Partition IJava Python
563Binary Tree TiltJava Python
566Reshape The MatrixJava Python
572Subtree of Another TreeJava Python
575Distribute CandiesJava Python
581Shortest Unsorted Continuous SubarrayJava Python
589N-Ary Tree Preorder TraversalJava Python
590N-Ary Tree Postorder TraversalJava Python
594Longest Harmonious SubsequenceJava Python
598Range Addition IIJava Python
599Minimum Index Sum of 2 ListsJava Python
604🔒 Design Compressed String Iterator
605Can Place FlowersJava Python
606Construct String from Binary TreeJava Python
617Merge Two Binary TreesJava Python
624🔒 Maximum Distance in Arrays
628Maximum Product of Three NumbersJava Python
633Sum Square NumbersJava Python
637Average of Levels in Binary TreeJava Python
643Maximum Average SubArray IJava Python
645Set MismatchJava Python
653Two Sum IV - Input is a BSTJava Python
657Robot Return to OriginJava Python
658Find K Closest ElementsJava
661Image SmootherJava Python
665Non Deceasing ArrayJava Python
669Trim a Binary Search TreeJava Python
671Second Minimum Node in Binary TreeJava Python
674Longest Continuous Increasing SubsequenceJava Python
680Valid Palindrome IIJava Python
682Baseball GameJava Python
684Redundant ConnectionJava
686Repeated String Match
687Longest Univalue Path
688Knight Probability in ChessboardJava
690Employee Importance
693Binary Number with Alternating BitsJava Python
696Count Binary SubstringsJava Python
697Degree of an ArrayJava Python
700Search in a Binary Search TreeJava Python
702Search In A Sorted Array of Unknown SizeJava
703Kth Largest Element in a StreamJava Python
704Binary SearchJava Python
705Design HashSetJava Python
706Design HashMapJava Python
709To Lower CaseJava Python
716🔒 Max Stack
7171-bit and 2-bit CharactersJava Python
718Maximum Length of Repeated SubarrayJava
720Longest Word in Dictionary
724Find Pivot IndexJava Python
728Self Dividing NumbersJava Python
733Flood FillJava Python
734🔒 Sentence Similarity
743Network Delay TimeJava
734Sentence Similarity
744Find Smallest Letter Greater Than TargetJava Python
746Min Cost Climbing StairsJava Python
747Largest Number at least Twice of OthersJava Python
748Shortest Completing WordJava Python
758Bold Words in String
760🔒 Find Anagram Mappings
762Prime Number of Set Bits in Primary RepresentationJava Python
766Toeplitz MatrixJava Python
771Jewels and StonesJava Python
783Minimum Distance Between BST NodesJava Python
787Cheapest Flights Within K StopsJava
788Rotated Digits
796Rotate StringJava
797All Paths From Source to TargetJava
800🔒 Similar RGB Color
804Unique Morse Code WordsJava
806Number of Lines to Write StringJava
811Subdomain Visit Count
812Largest Triangle AreaJava
819Most Common WordJava
821Shortest Distance to CharacterJava
824Goat LatinJava
830Positions of Large GroupsJava
832Flipping an ImageJava
836Rectangle OverlapJava
840Magic Squares in Grid
844Backspace String CompareJava
849Maximize Distance to Closest Person
852Peak Index in Mountain ArrayJava
859Buddy StringsJava
860Lemonade ChangeJava
867Transpose MatrixJava
868Binary GapJava
872Leaf-Similar TreesJava
874Walking Robot Simulation
876Middle of the Linked ListJava
881Boats to Save PeoplePython
883Projection Area of 3D ShapesJava
884Uncommon Words from 2 SentencesJava
888Fair Candy SwapJava
892Surface Area of 3D ShapesJava
893Groups of Special Equivalent Strings
896Monotonic ArrayJava
897Increasing Order Search TreeJava
905Sort Array by Parity
908Smallest Range IJava
909Snakes and LaddersJava
914X of a kind in a Deck of CardsJava
917Reverse Only LettersJava
922Sort Array by Parity IIJava
925Long Pressed NameJava
929Unique Email AddressesJava
933Number of Recent CallsJava
937Reorder Data In Log FilesJava
938Range Sum of BSTJava
941Valid Mountain ArrayJava Python
942DI String MatchJava
944Delete Columns to Make SortedJava
949Largest Time for Given Digits
952Largest Component Size by Common FactorJava
953Verifying an Alien DictionaryJava
961N-Repeated Elements in Size 2N ArrayJava
965Univalued Binary TreeJava
970Powerful Integers
976Largest Perimeter TriangleJava
977Squares of a Sorted Array
983Minimum Cost For TicketsPython
985Sum of Even Numbers after Queries
989Add to Array Form of IntegerJava
993Cousins in Binary TreeJava
994Rotting OrangesJava
997Find the Town JudgeJava
999Available Captures for RookJava
1002Find Common CharactersJava
1005Maximize Sum of Array After K NegationsJava
1009Complement of Base 10 IntegerJava
1010Pairs of Songs With Total Durations Divisible by 60Java
1013Partition Array into Three Parts with equal Sum
1018Binary Prefix Divisible by 5Java
1020Number of EnclavesPython
1021Remove Outermost ParenthesisJava
1022Sum of Root to Leaf Binary NumbersJava
1025Divisor GameJava
1029Two City Scheduling
1030Matrix Cells in Distance OrderJava
1033Moving Stones Until Consecutive
1037Valid BoomerangJava
1042Flower Planting with no Adjacent
1046Last Stone WeightJava
1047Remove All adjacent Duplicates in StringJava
1051Height Checker
1056🔒 Confusing Number
1059🔒 All Paths From Source Lead To DestinationJava
1064🔒 Fixed Point
1065🔒 Index Pairs of a String
1071Greatest Common Divisors of StringsJava
1078Occurrence After BigramJava
1085🔒 Sum of Digits in Minimum Number
1086🔒 High Five
1089Duplicate ZeroesJava
1091Shortest Path in Binary MatrixJava
1099🔒 Two Sum Less Than K
1101The Earliest Moment When Everyone Become FriendJava
1103Distribute Candies to PeopleJava
1108Defanging an IP AddressJava
1118🔒 Number of Days in a Month
1119🔒 Remove Vowels From String
1122Relative Sort ArrayJava
1128Number of Equivalent Domino PairsJava
1133🔒 Largest Unique Number
1134🔒 Armstrong Number
1136🔒 Parallel CoursesJava
1137Nth Tribonacci NumberJava
1143Longest Common SubsequenceJava
1150Check if Number is Majority Element in Sorted Array
1154Day of The YearJava
1160Find Words That Can Be Formed By Characters
1165Single Row KeyboardJava
1168Optimize Water Distribution in a VillageJava
1170Compare Strings By Frequency of the Smallest Character
1175Prime ArrangementsJava
1176🔒 Diet Plan Performance
1180🔒 Count Substrings with only one Distinct Letter
1184Distance Between Bus StopsJava
1185Day of the WeekJava
1189Maximum Number of BalloonsJava
1196🔒 How Many Apples Can You Put into the Basket
1200Minimum Absolute DifferenceJava
1201Ugly Number IIIJava
1202Smallest String With SwapsJava
1207Unique Number of OccurrencesJava
1213🔒 Intersection of Three Sorted Arrays
1217Minimum Cost to Move Chips to The Same PositionJava
1221Split A String In Balanced StringsJava
1228🔒 Missing A Number In Arithmetic Progression
1232Check If It Is A Straight LineJava
1237Find Positive Integer Solutions for a Given Equation
1243🔒 Array Transformation
1249Minimum Remove to Make Valid ParenthesesJava
1252Cells With Odd Values In MatrixJava
1254Number of Closed IslandsPython
1260Shift 2D GridJava
1266Minimum Time Visiting All PointsJava
1271🔒 Hexspeak
1275Find Winner On a Tic Tac Toe GameJava
1281Subtract the Product and Sum of Digits of a IntegerJava
1287Element Appearing More Than 25% in Sorted ArrayJava
1290Convert Binary Number In A Linked List to IntegerJava
1295Find Numbers With Even Numbers of DigitsJava Python
1299Replace Elements With Greatest Element on Right SideJava Python
1304Find N Unique Integers Sum Up To ZeroJava
1309Decrypt String From Alphabet To Integer MappingJava
1313Decompress Run-Length Encoded StringsJava
1317Convert Integer to Sum Of Two Non-Zero IntegersJava
1319Number of Operations to Make Network ConnectedPython
1323Maximum 69 NumberJava
1331Rank Transform of An ArrayJava
1332Remove Palindromic SubsequencesJava
1337The K Weakest Rows In A MatrixJava
1342Number of Steps to Reduce a Number to ZeroJava
1346Check if N and It's Double ExistJava Python
1351Count Negative Numbers In A Sorted MatrixJava
1356Sort Integers by Number of 1 BitsJava
1360Number of Days Between Two DatesJava
1365How Many Numbers Are Smaller Than Current NumberJava
1370Increasing Decreasing StringJava
1374Generate A String With Characters That Have Odd CountJava
1376Time Needed to Inform All EmployeesJava
1379Find a Corresponding Node of a Binary Tree in a Clone of That TreeJava
1380Lucky Numbers In A MatrixJava
1385Find The Distance Value Between 2 ArraysJava
1389Create Target Array in Given OrderJava
1394Find Lucky Integer In An ArrayJava
1399Count Largest GroupJava
1402Reducing DishesPython
1403Minimum Subsequence in Non-Increasing OrderJava
1408String Matching In An ArrayJava
1413Minimum Value To Get Positive Step By Step SumJava
1417Reformat The StringJava
1422Maximum Score After Splitting A StringJava
1426🔒 Counting Elements
1427🔒 Performing String Shifts
1431Kids With The Greatest Number Of CandiesJava
1436Destination CityJava
1437Check If All 1's Are at Least Length K Places AwayJava
1441Build An Array With Stack OperationJava
1444Number of Ways of Cutting a PizzaPython
1446Consecutive CharactersJava
1450Number of Students Doing Homework at Given TimeJava
1455Check If Word Occurs as Prefix of any Word in SentenceJava
1460Make 2 Arrays Equal by Reversing Sub ArraysJava
1464Maximum Product of 2 Elements in ArrayJava
1466Reorder Routes to Make All Paths Lead to the City ZeroJava
1469🔒 Find All Lonely NodesPython
1470Shuffle The ArrayJava
1472Design Browser HistoryJava Python
1474🔒 Delete N Nodes After M Nodes In A Linked List
1475Final Prices With Special Discount in a ShopJava
1480Running Sum of 1D ArrayJava
1486XOR Operations in An ArrayJava
1491Average Salary Excluding the Minimum and Maximum SalaryJava
1496Path CrossingJava
1502Can Make Arithmetic Progression From SequenceJava
1507Reformat DateJava
1512Number of Good PairsJava
1514Path with Maximum ProbabilityJava
1518Water BottlesJava
1523Count Odd Numbers In Interval RangeJava
1528Shuffle StringsJava
1534Count Good TripletsJava
1539Kth Missing Positive NumberJava
1544Make The String GreatJava
1550Three Consecutive OddsJava
1556Thousand SeparatorJava
1560Most Visited Sector in a Circular TrackJava
1566Detect Pattern of Length M Repeated K or More TimesJava
1572Matrix Diagonal SumJava
1576Replace All ?'s to Avoid Consecutive Repeating CharactersJava
1582Special Positions in a Binary MatrixJava
1584Min Cost to Connect All PointsJava
1588Sum of All Odd Length SubarraysJava
1592Rearrange Spaces Between WordsJava
1598Crawler Log FolderJava
1600Throne InheritanceJava
1603Design Parking SystemJava
1608Special Array With X Elements Greater Than or Equal XJava
1614Maximum Nesting Depth of the ParenthesesJava
1619Mean of Array After Removing Some ElementsJava
1624Largest Substring Between Two Equal CharactersJava
1629Slowest KeyJava
1631Path With Minimum EffortJava
1636Sort Array by Increasing FrequencyJava
1637Widest Vertical Area Between Two Points Containing No PointsJava
1640Check Array Formation Through ConcatenationJava
1646Get Maximum in Generated ArrayJava
1652Defuse the BombJava
1656Design an Ordered StreamJava
1662Check If Two String Arrays are EquivalentJava
1668Maximum Repeating SubstringJava
1672Richest Customer WealthJava
1678Goal Parser InterpretationJava
1684Count the Number of Consistent StringsJava
1688Count of Matches in TournamentJava
1694Reformat Phone NumberJava
1700Number of Students Unable to Eat LunchJava
1704Determine if String Halves Are AlikeJava
1708🔒 Largest Subarray Length K
1710Maximum Units on a TruckJava
1716Calculate Money in Leetcode BankJava
1720Decode XORed ArrayJava
1725Number Of Rectangles That Can Form The Largest SquareJava
1732Find the Highest AltitudeJava
1736Latest Time by Replacing Hidden DigitsJava
1742Maximum Number of Balls in a BoxJava
1748Sum of Unique ElementsJava
1752Check if Array Is Sorted and RotatedJava
1758Minimum Changes To Make Alternating Binary StringJava
1763Longest Nice SubstringJava
1768Merge Strings AlternatelyJava
1773Count Items Matching a RuleJava
1779Find Nearest Point That Has the Same X or Y CoordinateJava
1784Check if Binary String Has at Most One Segment of OnesJava
1790Check if One String Swap Can Make Strings EqualJava
1791Find Center of Star GraphJava
1796Second Largest Digit in a StringJava
1800Maximum Ascending Subarray SumJava
1805Number of Different Integers in a StringJava
1812Determine Color of a Chessboard SquareJava
1816Truncate SentenceJava
1822Sign of the Product of an ArrayJava
1826🔒 Faulty Sensor
1827Minimum Operations to Make the Array IncreasingJava
1832Check if the Sentence Is PangramJava
1837Sum of Digits in Base KJava
1844Replace All Digits with CharactersJava
1848Minimum Distance to the Target ElementJava
1854Maximum Population YearJava
1859Sorting the SentenceJava
1863Sum of All Subset XOR TotalsJava
1869Longer Contiguous Segments of Ones than ZerosJava
1876Substrings of Size Three with Distinct CharactersJava
1880Check if Word Equals Summation of Two WordsJava
1886Determine Whether Matrix Can Be Obtained By RotationJava
1893Check if All the Integers in a Range Are CoveredJava
1897Redistribute Characters to Make All Strings EqualJava
1903Largest Odd Number in StringJava
1909Remove One Element to Make the Array Strictly IncreasingJava
1913Maximum Product Difference Between Two PairsJava
1920Build Array from PermutationJava
1925Count Square Sum TriplesJava
1929Concatenation of ArrayJava
1933🔒 Check If String Is Decomposable Into Value EqualSubstrings
1935Maximum Number of Words You Can TypeJava
1941Check if All Characters Have Equal Number of OccurrencesJava
1945Sum of Digits of String After ConvertJava
1952Three DivisorsJava
1957Delete Characters to Make Fancy StringJava
1961Check If String Is a Prefix of ArrayJava
1967Number of Strings That Appear as Substrings in WordJava
1971Find if Path Exists in GraphJava
1974Minimum Time to Type Word Using Special TypewriterJava
1979Find Greatest Common Divisor of ArrayJava
1984Minimum Difference Between Highest and Lowest of K ScoresJava
1991Find the Middle Index in ArrayJava
1995Count Special QuadrupletsJava
2000Reverse Prefix of WordJava
2006Count Number of Pairs With Absolute Difference KJava
2011Final Value of Variable After Performing OperationsJava
2016Maximum Difference Between Increasing ElementsJava
2022Convert 1D Array Into 2D ArrayJava
2027Minimum Moves to Convert StringJava
2032Two Out of ThreeJava
2037Minimum Number of Moves to Seat EveryoneJava
2042Check if Numbers Are Ascending in a SentenceJava
2047Number of Valid Words in a SentenceJava
2053Kth Distinct String in an ArrayJava
2057Smallest Index With Equal ValueJava
2062Count Vowel Substrings of a StringJava
2068Check Whether Two Strings are Almost EquivalentJava
2073Time Needed to Buy TicketsJava
2078Two Furthest Houses With Different ColorsJava
2085Count Common Words With One OccurrenceJava
2089Find Target Indices After Sorting ArrayJava
2093Minimum Cost To Reach City With DiscountsJava
2094Finding 3-Digit Even NumbersJava
2099Find Subsequence of Length K With the Largest SumJava
2103Rings and RodsJava
2108Find First Palindromic String in the ArrayJava
2114Maximum Number of Words Found in SentencesJava
2119A Number After a Double ReversalJava
2124Check if All A's Appears Before All B'sJava
2129Capitalize the TitleJava
2133Check if Every Row and Column Contains All NumbersJava
2138Divide a String Into Groups of Size kJava
2144Minimum Cost of Buying Candies With DiscountJava
2148Count Elements With Strictly Smaller and Greater ElementsJava
2154Keep Multiplying Found Values by TwoJava
2160Minimum Sum of Four Digit Number After Splitting DigitsJava
2164Sort Even and Odd Indices IndependentlyJava
2169Count Operations to Obtain ZeroJava
2176Count Equal and Divisible Pairs in an ArrayJava
2180Count Integers With Even Digit SumJava
2185Counting Words With a Given PrefixJava
2190Most Frequent Number Following Key In an ArrayJava
2194Cells in a Range on an Excel SheetJava
2200Find All K-Distant Indices in an ArrayJava
2206Divide Array Into Equal PairsJava
2210Count Hills and Valleys in an ArrayJava
2215Find the Difference of Two ArraysJava
2220Minimum Bit Flips to Convert NumberJava
2224Minimum Number of Operations to Convert TimeJava
2229🔒 Check if an array is consecutive
2231Largest Number After Digit Swaps by ParityJava
2235Add Two IntegersJava
2236Root Equals Sum of ChildrenJava
2239Find Closest Number to ZeroJava
2243Calculate Digit Sum of a StringJava
2248Intersection of Multiple ArraysJava
2255Count Prefixes of a Given StringJava
2259Remove Digit From Number to Maximize ResultJava
2264Largest 3-Same-Digit Number in StringJava
2269Find the K-Beauty of a NumberJava
2273Find Resultant Array After Removing AnagramsJava
2278Percentage of Letter in StringJava
2283Check if Number Has Equal Digit Count and Digit ValueJava
2287Rearrange Characters to Make Target StringJava
2293Min Max GameJava
2299Strong Password Checker IIJava
2300Successful Pairs of Spells and PotionsPython
2303Calculate Amount Paid in TaxesJava
2309Greatest English Letter in Upper and Lower CaseJava
2315Count AsterisksJava Python
2316Count Unreachable Pairs of Nodes in an Undirected GraphPython
2319Check if Matrix Is X-MatrixJava
2325Decode the MessageJava
2331Evaluate Boolean Binary TreeJava
2335Minimum Amount of Time to Fill CupsJava
2439Minimize Maximum of ArrayPython
2341Maximum Number of Pairs in ArrayJava
2347Best Poker HandJava
2348Number of Zero-Filled SubarraysPython
2351First Letter to Appear TwiceJava
2357Make Array Zero by Subtracting Equal AmountsJava
2360Longest Cycle in a GraphPython
2363Merge Similar ItemsJava
2367Number of Arithmetic TripletsJava
2373Largest Local Values in a MatrixJava
2379Minimum Recolors to Get K Consecutive Black BlocksJava
2383Minimum Hours of Training to Win a CompetitionJava
2389Longest Subsequence With Limited SumJava
2395Find Subarrays With Equal SumJava
2399Check Distances Between Same LettersJava
2404Most Frequent Even ElementJava
2409Count Days Spent TogetherJava
2413Smallest Even MultipleJava
2418Sort the PeopleJava
2423Remove Letter To Equalize FrequencyJava
2427Number of Common FactorsJava
2432The Employee That Worked on the Longest TaskJava
2437Number of Valid Clock TimesJava
2441Largest Positive Integer That Exists With Its NegativeJava
2446Determine if Two Events Have ConflictJava
2451Odd String DifferenceJava
2455Average Value of Even Numbers That Are Divisible by ThreeJava
2460Apply Operations to an ArrayJava
2465Number of Distinct AveragesJava
2466Count Ways To Build Good Strings
2469Convert the TemperatureJava
2475Number of Unequal Triplets in ArrayJava
2481Minimum Cuts to Divide a CircleJava
2485Find the Pivot IntegerJava
2490Circular SentenceJava
2492Minimum Score of a Path Between Two CitiesPython
2496Maximum Value of a String in an ArrayJava
2500Delete Greatest Value in Each RowJava
2506Count Pairs Of Similar StringsJava
2511Maximum Enemy Forts That Can Be CapturedJava
2515Shortest Distance to Target String in a Circular ArrayJava
2520Count the Digits That Divide a NumberJava
2525Categorize Box According to CriteriaJava
2529Maximum Count of Positive Integer and Negative IntegerJava
2535Difference Between Element Sum and Digit Sum of an ArrayJava
2540Minimum Common ValueJava
2544Alternating Digit SumJava
2549Count Distinct Numbers on BoardJava
2553Separate the Digits in an ArrayJava
2558Take Gifts From the Richest PileJava
2562Find the Array Concatenation ValueJava
2566Maximum Difference by Remapping a DigitJava
2570Merge Two 2D Arrays by Summing ValuesJava
2574Left and Right Sum DifferencesJava
2578Split With Minimum SumJava
2582Pass the PillowJava
2586Count the Number of Vowel Strings in RangeJava
2591Distribute Money to Maximum ChildrenJava
2595Number of Even and Odd BitsJava
2600K Items With the Maximum SumJava
2605Form Smallest Number From Two Digit ArraysJava
2609Find the Longest Balanced Substring of a Binary StringJava
2614Prime In DiagonalJava
2639Find the Width of Columns of a GridJava
2643Row With Maximum OnesJava
2644Find the Maximum Divisibility ScoreJava
2651Calculate Delayed Arrival TimeJava
2652Sum MultiplesJava
2656Maximum Sum With Exactly K ElementsJava
2660Determine the Winner of a Bowling GameJava
2670Find the Distinct Difference ArrayJava
2678Number of Senior CitizensJava
2682Find the Losers of the Circular GameJava
2689🔒 Extract Kth Character From The Rope Tree
2696Minimum String Length After Removing SubstringsJava
2697Lexicographically Smallest PalindromeJava
2706Buy Two ChocolatesJava
2710Remove Trailing Zeros From a StringJava
2716Minimize String LengthJava
2717Semi-Ordered PermutationJava
2728🔒 Count Houses in a Circular Street
2729Check if The Number is FascinatingJava
2733Neither Minimum nor MaximumJava
2739Total Distance TraveledJava
2744Find Maximum Number of String PairsJava
2748Number of Beautiful PairsJava
2760Longest Even Odd Subarray With ThresholdJava
2765Longest Alternating SubarrayJava
2769Find the Maximum Achievable NumberJava
2778Sum of Squares of Special ElementsJava
2784Check if Array is GoodJava
2788Split Strings by SeparatorJava
2798Number of Employees Who Met the TargetJava
2806Account Balance After Rounded PurchaseJava
2810Faulty KeyboardJava
2815Max Pair Sum in an ArrayJava
2824Count Pairs Whose Sum is Less than TargetJava
2828Check if a String Is an Acronym of WordsJava
2833Furthest Point From OriginJava
2839Check if Strings Can be Made Equal With Operations IJava
2843Count Symmetric IntegersJava
2848Points That Intersect With CarsJava
2855Minimum Right Shifts to Sort the ArrayJava
2859Sum of Values at Indices With K Set BitsJava
2864Maximum Odd Binary NumberJava
2869Minimum Operations to Collect ElementsJava
2873Maximum Value of an Ordered Triplet IJava
2894Divisible and Non-divisible Sums DifferenceJava
2899Last Visited IntegersJava
2900Longest Unequal Adjacent Groups Subsequence IJava
2903Find Indices With Index and Value Difference IJava
2908Minimum Sum of Mountain Triplets IJava
2913Subarrays Distinct Element Sum of Squares IJava
2917Find the K-or of an ArrayJava
2923Find Champion IJava
2928Distribute Candies Among Children IJava
2932Maximum Strong Pair XOR IJava
2937Make Three Strings EqualJava
2942Find Words Containing CharacterJava
2946Matrix Similarity After Cyclic ShiftsJava
2951Find the PeaksJava
2956Find Common Elements Between Two ArraysJava
2960Count Tested Devices After Test OperationsJava
2965Find Missing and Repeated ValuesJava
2970Count the Number of Irremovable Subarrays IJava
2974Minimum Number GameJava
2980Check if Bitwise OR Has Trailing ZerosJava
2996Smallest Missing Integer Greater Than Sequential Prefix SumJava
3000Maximum Area of Longest Diagonal RectangleJava
3005Count Elements With Maximum FrequencyJava
3010Divide an Array Into Subarrays With Minimum Cost IJava
3014Minimum Number of Pushes to Type Word IJava
3019Number of Changing KeysJava
3024Type of TriangleJava
3028Ant on the BoundaryJava
3032🔒 Count Numbers With Unique Digits II
3033Modify the MatrixJava
3038Maximum Number of Operations With the Same Score IJava
3042Count Prefix and Suffix Pairs IJava
3046Split the ArrayJava
3062🔒 Winner of the Linked List Game
3063🔒 Linked List Frequency
3065Minimum Operations to Exceed Threshold Value IJava
3069Distribute Elements Into Two Arrays IJava
3074Apple Redistribution into BoxesJava
3079Find the Sum of Encrypted IntegersJava
3083Existence of a Substring in a String and Its ReverseJava
3090Maximum Length Substring With Two OccurrencesJava
3095Shortest Subarray With OR at Least K IJava
3099Harshad NumberJava
3105Longest Strictly Increasing or Strictly Decreasing SubarrayJava
3110Score of a StringJava
3114Latest Time You Can Obtain After Replacing CharactersJava
3120Count the Number of Special Characters IJava
3127Make a Square with the Same ColorJava
3131Find the Integer Added to Array IJava
3136Valid WordJava
3142Check if Grid Satisfies ConditionsJava
3146Permutation Difference between Two StringsJava
3151Special Array IJava
3158Find the XOR of Numbers Which Appear TwiceJava
3162Find the Number of Good Pairs IJava
3168Minimum Number of Chairs in a Waiting RoomJava
3173🔒 Bitwise OR of Adjacent Elements
3174Clear DigitsJava
3178Find the Child Who Has the Ball After K SecondsJava
3184Count Pairs That Form a Complete Day IJava
3190Find Minimum Operations to Make All Elements Divisible by ThreeJava
3194Minimum Average of Smallest and Largest ElementsJava
3199🔒 Count Triplets With Even XOR Set Bits I
3200Maximum Height of a TriangleJava
3206Alternating Groups IJava
3210Find the Encrypted StringJava
3216Lexicographically Smallest String After a SwapJava
3222Find the Winning Player in Coin GameJava
3226Number of Bit Changes to Make Two Integers EqualJava
3232Find if Digit Game Can Be Won
3238Find the Number of Winning Players
3242Design Neighbor Sum Service
3248Snake in Matrix
3258Count Substrings That Satisfy K-Constraint I
3263🔒 Convert Doubly Linked List To Array I
3270Find the Key of the Numbers
3274Check if Two Chessboard Squares Have the Same Color
3280Convert Date to Binary
3285Find Indices of Stable Mountains
3289The Two Sneaky Numbers of Digitville
3300Minimum Element After Replacement With Digit Sum
3304Find the K-th Character in String Game I
3314Construct the Minimum Bitwise Array I
3318Find X-Sum of All K-Long Subarrays I
3330Find the Original Typed String I
3340Check Balanced String