Skip to content

Latest commit

 

History

History

2nd_thousand

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
#TitleSolutionsVideoDifficultyTag
1996The Number of Weak Characters in the GameSolutionMedium
1995Count Special QuadrupletsSolutionEasy
1993Operations on TreeSolutionMediumHashTable, DFS, Design, Tree
1992Find All Groups of FarmlandSolutionMedium
1991Find the Middle Index in ArraySolutionEasy
1985Find the Kth Largest Integer in the ArraySolutionMedium
1984Minimum Difference Between Highest and Lowest of K ScoresSolutionEasy
1981Minimize the Difference Between Target and Chosen ElementsSolutionMediumDP
1980Find Unique Binary StringSolutionMedium
1979Find Greatest Common Divisor of ArraySolutionEasy
1974Minimum Time to Type Word Using Special TypewriterSolutionEasy
1973Count Nodes Equal to Sum of DescendantsSolutionMediumTree, DFS
1971Find if Path Exists in GraphSolutionEasyBFS, DFS, Graph
1968Array With Elements Not Equal to Average of NeighborsSolutionMedium
1967Number of Strings That Appear as Substrings in WordSolutionEasy
1966Binary Searchable Numbers in an Unsorted ArraySolutionMediumArray, Binary Search
1961Check If String Is a Prefix of ArraySolutionEasy
1957Delete Characters to Make Fancy StringSolutionEasyString
1952Three DivisorsSolutionEasy
1945Sum of Digits of String After ConvertSolutionEasy
1941Check if All Characters Have Equal Number of OccurrencesSolutionEasy
1936Add Minimum Number of RungsSolutionMedium
1935Maximum Number of Words You Can TypeSolutionEasyString
1933Check if String Is Decomposable Into Value-Equal SubstringsSolutionEasyString
1929Concatenation of ArraySolutionEasy
1926Nearest Exit from Entrance in MazeSolutionMediumDP, DFS, BFS
1925Count Square Sum TriplesSolutionEasyArray, Greedy
1920Build Array from PermutationSolutionEasy
1913Maximum Product Difference Between Two PairsSolutionEasySort
1910Remove All Occurrences of a SubstringSolution📺MediumString
1909Remove One Element to Make the Array Strictly IncreasingSolutionEasyArray
1904The Number of Full Rounds You Have PlayedSolutionMediumString, Greedy
1903Largest Odd Number in StringSolution📺EasyGreedy
1899Merge Triplets to Form Target TripletSolutionMediumArray, Greedy
1897Redistribute Characters to Make All Strings EqualSolutionEasyString, Greedy
1894Find the Student that Will Replace the ChalkSolutionMedium
1893Check if All the Integers in a Range Are CoveredSolutionEasyArray, HashTable, Prefix Sum
1891Cutting RibbonsSolutionMediumArray, Binary Search
1886Determine Whether Matrix Can Be Obtained By RotationSolutionEasyArray
1880Check if Word Equals Summation of Two WordsSolutionEasyString
1877Minimize Maximum Pair Sum in ArraySolutionMediumGreedy, Sort
1876Substrings of Size Three with Distinct CharactersSolutionEasyString
1874Minimize Product Sum of Two ArraysSolutionMediumArray, Greedy, Sorting
1869Longer Contiguous Segments of Ones than ZerosSolutionEasyArray, Two Pointers
1868Product of Two Run-Length Encoded ArraysSolutionMediumTwo Pointers
1863Sum of All Subset XOR TotalsSolutionEasyBacktracking, Recursion
1862Sum of Floored PairsSolutionHardMath
1861Rotating the BoxSolution📺MediumArray, Two Pointers
1860Incremental Memory LeakSolutionMediumMath
1859Sorting the SentenceSolutionEasyString, Sort
1854Maximum Population YearSolutionEasyArray
1848Minimum Distance to the Target ElementSolutionEasyArray
1845Seat Reservation ManagerSolutionMediumHeap, Design
1844Replace All Digits with CharactersSolutionEasyString
1837Sum of Digits in Base KSolutionEasyMath, Bit Manipulation
1836Remove Duplicates From an Unsorted Linked ListSolutionMediumHashTable, LinkedList
1833Maximum Ice Cream BarsSolutionMediumArray, Sort
1832Check if the Sentence Is PangramSolutionEasyString
1829Maximum XOR for Each QuerySolutionMediumBit Manipulation
1828Queries on Number of Points Inside a CircleSolution📺MediumMath
1827Minimum Operations to Make the Array IncreasingSolutionEasyArray, Greedy
1826Faulty SensorSolutionEasyArray, Two Pointers
1823Find the Winner of the Circular GameSolutionMediumArray
1822Sign of the Product of an ArraySolutionEasyMath
1817Finding the Users Active MinutesSolutionMediumHashTable
1816Truncate SentenceSolutionEasyString
1814Count Nice Pairs in an ArraySolutionMediumArray, HashTable
1813Sentence Similarity IIISolution📺MediumString
1812Determine Color of a Chessboard SquareSolutionEasyString
1807Evaluate the Bracket Pairs of a StringSolutionMediumHashTable, String
1806Minimum Number of Operations to Reinitialize a PermutationSolutionMediumArray, Greedy
1805Number of Different Integers in a StringSolutionMediumString
1804Implement Trie II (Prefix Tree)SolutionMediumTrie, Design
1800Maximum Ascending Subarray SumSolutionEasyTwo Pointers
1797Design Authentication ManagerSolutionMediumHashTable, Design
1796Second Largest Digit in a StringSolutionEasyString
1792Maximum Average Pass RatioSolutionMediumHeap
1791Find Center of Star GraphSolutionMediumGraph
1790Check if One String Swap Can Make Strings EqualSolutionEasyString
1785Minimum Elements to Add to Form a Given SumSolutionMediumGreedy
1784Check if Binary String Has at Most One Segment of OnesSolutionEasyGreedy
1781Sum of Beauty of All SubstringsSolutionMediumHashTable, String
1780Check if Number is a Sum of Powers of ThreeSolutionMediumMath, Backtracking, Recursion
1779Find Nearest Point That Has the Same X or Y CoordinateSolutionEasyArray
1775Equal Sum Arrays With Minimum Number of OperationsSolutionMediumGreedy
1774Closest Dessert CostSolutionMediumGreedy
1773Count Items Matching a RuleSolution📺EasyArray, String
1772Sort Features by PopularitySolution📺MediumHashTable, Sort
1769Minimum Number of Operations to Move All Balls to Each BoxSolutionMediumArray, Greedy
1768Merge Strings AlternatelySolutionEasyString
1765Map of Highest PeakSolutionMediumBFS, Graph
1764Form Array by Concatenating Subarrays of Another ArraySolutionMediumArray, Greedy
1763Longest Nice SubstringSolutionEasyString
1762Buildings With an Ocean ViewSolutionMedium
1759Count Number of Homogenous SubstringsSolutionMediumString ,Greedy
1758Minimum Changes To Make Alternating Binary StringSolutionEasyGreedy, Array
1756Design Most Recently Used QueueSolutionMediumArray, Design, Dequeue
1754Largest Merge Of Two StringsSolutionMediumGreedy, Suffix Array
1753Maximum Score From Removing StonesSolutionMediumMath, Heap
1752Check if Array Is Sorted and RotatedSolutionEasyArray
1750Minimum Length of String After Deleting Similar EndsSolutionMediumTwo Pointers
1749Maximum Absolute Sum of Any SubarraySolutionMediumGreedy
1748Sum of Unique ElementsSolutionEasyArray, HashTable
1746Maximum Subarray Sum After One OperationSolutionMediumDP
1745Palindrome Partitioning IVSolutionHardString, DP
1743Restore the Array From Adjacent PairsSolutionMediumGreedy
1742Maximum Number of Balls in a BoxSolutionEasyArray
1740Find Distance in a Binary TreeSolutionMediumDFS, BFS
1736Latest Time by Replacing Hidden DigitsSolutionEasyString, Greedy
1733Minimum Number of People to TeachSolutionMediumArray, Greedy
1732Find the Highest AltitudeSolutionEasyArray
1730Shortest Path to Get FoodSolutionMediumBFS
1727Largest Submatrix With RearrangementsSolutionMediumGreedy, Sort
1726Tuple with Same ProductSolution📺MediumArray
1725Number Of Rectangles That Can Form The Largest SquareSolutionEasyGreedy
1721Swapping Nodes in a Linked ListSolutionMediumLinkedList
1720Decode XORed ArraySolutionEasyBit Manipulation
1718Construct the Lexicographically Largest Valid SequenceSolutionMediumBacktracking, Recursion
1717Maximum Score From Removing SubstringsSolution📺MediumGreedy
1716Calculate Money in Leetcode BankSolutionEasyMath, Greedy
1711Count Good MealsSolutionMediumArray, HashTable, Two Pointers
1710Maximum Units on a TruckSolutionEasyGreedy, Sort
1708Largest Subarray Length KSolutionEasyArray, Greedy
1705Maximum Number of Eaten ApplesSolutionMediumHeap, Greedy
1704Determine if String Halves Are AlikeSolutionEasyString
1701Average Waiting TimeSolutionMediumArray
1700Number of Students Unable to Eat LunchSolutionEasyArray
1695Maximum Erasure ValueSolutionMediumTwo Pointers
1694Reformat Phone NumberSolutionEasyString
1690Stone Game VIISolutionMediumDP
1689Partitioning Into Minimum Number Of Deci-Binary NumbersSolutionMediumGreedy
1688Count of Matches in TournamentSolutionEasyBacktracking
1686Stone Game VISolutionMediumGreedy
1685Sum of Absolute Differences in a Sorted ArraySolution📺MediumMath, Greedy
1684Count the Number of Consistent StringsSolutionEasyString
1680Concatenation of Consecutive Binary NumbersSolutionMediumMath
1679Max Number of K-Sum PairsSolutionMediumHashTable
1678Goal Parser InterpretationSolutionEasyString
1676Lowest Common Ancestor of a Binary Tree IVSolutionMediumTree, DFS, Binary Tree
1675Minimize Deviation in ArraySolutionHardHeap, Ordered Map
1673Find the Most Competitive SubsequenceSolution📺MediumStack, Greedy
1672Richest Customer WealthSolutionEasyArray
1670Design Front Middle Back QueueSolutionMediumLinked List, Design, Dequeu
1669Merge In Between Linked ListsSolutionMediumLinedList
1668Maximum Repeating SubstringSolutionEasyString
1664Ways to Make a Fair ArrayJavascriptMediumGreedy
1663Smallest String With A Given Numeric ValueSolution📺MediumGreedy
1662Check If Two String Arrays are EquivalentSolutionEasyString
1660Correct a Binary TreeJavascript, JavaMediumBFS, Tree
1658Minimum Operations to Reduce X to ZeroJavascript, JavaMediumGreedy
1657Determine if Two Strings Are CloseSolution📺MediumGreedy
1656Design an Ordered StreamSolutionEasyArray, Design
1653Minimum Deletions to Make String BalancedSolutionMediumArray, DP, Stack
1652Defuse the BombSolutionEasyArray
1650Lowest Common Ancestor of a Binary Tree IIISolutionMediumHashTable, Binary Tree, Tree
1646Get Maximum in Generated ArraySolutionEasyArray
1644Lowest Common Ancestor of a Binary Tree IISolutionMediumBinary Tree, DFS
1642Furthest Building You Can ReachSolutionMediumBinary Search, Heap
1641Count Sorted Vowel StringsSolution📺MediumMath, DP, Backtracking
1640Check Array Formation Through ConcatenationSolutionEasyArray, Sort
1637Widest Vertical Area Between Two Points Containing No PointsJavascript, JavaMediumSort
1636Sort Array by Increasing FrequencySolutionEasyArray, Sort
1630Arithmetic SubarraysSolutionMediumSort
1629Slowest KeySolutionEasyArray
1628Design an Expression Tree With Evaluate FunctionSolutionMediumStack, Binary Tree, Design, Math
1626Best Team With No ConflictsSolutionMediumDP
1625Lexicographically Smallest String After Applying OperationsSolutionMediumBFS, DFS
1624Largest Substring Between Two Equal CharactersSolution📺EasyString
1620Coordinate With Maximum Network QualitySolution📺MediumGreedy
1619Mean of Array After Removing Some ElementsSolution📺EasyArray
1614Maximum Nesting Depth of the ParenthesesSolutionEasyString
1609Even Odd TreeSolutionMediumTree
1608Special Array With X Elements Greater Than or Equal XSolutionEasyArray
1605Find Valid Matrix Given Row and Column SumsSolutionMediumGreedy, Array, Matrix
1604Alert Using Same Key-Card Three or More Times in a One Hour PeriodSolutionMediumString, Ordered Map
1603Design Parking SystemSolutionEasyDesign
1602Find Nearest Right Node in Binary TreeSolutionMediumTree, BFS
1601Maximum Number of Achievable Transfer RequestsSolutionHardBacktracking
1600Throne InheritanceSolutionMediumTree, Design, DFS, HashMap
1598Crawler Log FolderSolutionEasyStack
1592Rearrange Spaces Between WordsSolutionEasyString
1588Sum of All Odd Length SubarraysSolutionEasyArray
1583Count Unhappy FriendsSolutionMediumArray
1582Special Positions in a Binary MatrixSolutionEasyArray
1577Number of Ways Where Square of Number Is Equal to Product of Two NumbersSolutionMediumHashTable, Math
1576Replace All ?'s to Avoid Consecutive Repeating CharactersSolution📺EasyString
1574Shortest Subarray to be Removed to Make Array SortedSolutionMediumArray, Binary Search
1572Matrix Diagonal SumSolutionEasyArray
1570Dot Product of Two Sparse VectorsSolutionEasyArray, HashTable, Two Pointers
1567Maximum Length of Subarray With Positive ProductSolution📺MediumGreedy
1566Detect Pattern of Length M Repeated K or More TimesSolution📺EasyArray
1561Maximum Number of Coins You Can GetSolution📺MediumSort
1560Most Visited Sector in a Circular TrackSolutionEasyArray
1558Minimum Numbers of Function Calls to Make Target ArraySolutionMediumGreedy
1557Minimum Number of Vertices to Reach All NodesSolution📺MediumGraph
1556Thousand SeparatorSolution📺EasyString
1551Minimum Operations to Make Array EqualSolution📺MediumMath
1550Three Consecutive OddsSolutionEasyArray
1545Find Kth Bit in Nth Binary StringSolution📺MediumString
1544Make The String GreatSolution📺EasyString, Stack
1541Minimum Insertions to Balance a Parentheses StringSolution📺MediumString, Stack
1539Kth Missing Positive NumberSolution📺EasyArray, HashTable
1535Find the Winner of an Array GameSolution📺MediumArray
1534Count Good TripletsSolutionEasyArray
1530Number of Good Leaf Nodes PairsSolutionMediumTree, DFS
1528Shuffle StringSolutionEasySort
1526Minimum Number of Increments on Subarrays to Form a Target ArraySolutionHardSegment Tree
1525Number of Good Ways to Split a StringSolution📺MediumString, Bit Manipulation
1524Number of Sub-arrays With Odd SumSolutionMediumArray, Math
1523Count Odd Numbers in an Interval RangeSolution📺EasyMath
1518Water BottlesSolutionEasyGreedy
1514Path with Maximum ProbabilitySolutionMediumGraph
1512Number of Good PairsSolutionEasyArray, HashTable, Math
1509Minimum Difference Between Largest and Smallest Value in Three MovesSolutionMediumArray, Sort, Greedy
1508Range Sum of Sorted Subarray SumsSolutionMediumArray, Sort
1507Reformat DateSolutionEasyString
1502Can Make Arithmetic Progression From SequenceSolutionEasyArray, Sort
1496Path CrossingSolutionEasyString
1493Longest Subarray of 1's After Deleting One ElementSolution📺MediumArray
1492The kth Factor of nSolutionMediumMath
1491Average Salary Excluding the Minimum and Maximum SalarySolutionEasyArray, Sort
1490Clone N-ary TreeSolution📺MediumHashTable, Tree, DFS, BFS
1487Making File Names UniqueSolutionMediumHashTable, String
1486XOR Operation in an ArraySolutionMediumArray, Bit Manipulation
1485Clone Binary Tree With Random PointerSolutionMediumHashTable, Tree, DFS, BFS
1482Minimum Number of Days to Make m BouquetsSolutionMediumArray, Binary Search
1481Least Number of Unique Integers after K RemovalsSolutionMediumArray, Sort
1480Running Sum of 1d ArraySolution, C++EasyArray
1476Subrectangle QueriesSolutionMediumArray
1475Final Prices With a Special Discount in a ShopSolutionEasyArray
1474Delete N Nodes After M Nodes of a Linked ListSolutionEasyLinkedList
1472Design Browser HistorySolutionMediumArray, Design
1471The k Strongest Values in an ArraySolutionMediumArray, Sort
1470Shuffle the ArraySolution, C++EasyArray
1469Find All The Lonely NodesSolutionEasyTree, DFS
1466Reorder Routes to Make All Paths Lead to the City ZeroSolutionMediumTree, DFS, BFS
1464Maximum Product of Two Elements in an ArraySolutionEasyArray
1462Course Schedule IVSolutionMediumTopological Sort, DFS, BFS
1461Check If a String Contains All Binary Codes of Size KSolutionMediumString, Bit Manipulation
1460Make Two Arrays Equal by Reversing Sub-arraysSolutionEasyArray
1457Pseudo-Palindromic Paths in a Binary TreeSolutionMediumBit Manipulation, Tree, DFS
1456Maximum Number of Vowels in a Substring of Given LengthSolutionMediumString, Sliding Window
1455Check If a Word Occurs As a Prefix of Any Word in a SentenceSolutionEasyString
1452People Whose List of Favorite Companies Is Not a Subset of Another ListSolutionMediumString, Sort
1451Rearrange Words in a SentenceSolutionMediumString, Sort
1450Number of Students Doing Homework at a Given TimeSolutionEasyArray
1448Count Good Nodes in Binary TreeSolutionMediumTree, DFS
1447Simplified FractionsSolutionMediumMath
1446Consecutive CharactersSolutionEasyString
1441Build an Array With Stack OperationsSolutionEasyStack
1439Find the Kth Smallest Sum of a Matrix With Sorted RowsSolutionHardArray, Binary Search, PriorityQueue, Matrix
1438Longest Continuous Subarray With Absolute Diff Less Than or Equal to LimitSolutionMediumArray, Queue, Sliding Window, PriorityQueue, Monotonic Queue
1437Check If All 1's Are at Least Length K Places AwaySolutionMediumArray
1436Destination CitySolutionEasyString
1432Max Difference You Can Get From Changing an IntegerSolutionMediumString
1431Kids With the Greatest Number of CandiesSolution, C++EasyArray
1429First Unique NumberSolutionMediumArray, HashTable, Design, Data Streams
1428Leftmost Column with at Least a OneSolutionMediumArray
1427Perform String ShiftsSolutionEasyArray, Math
1426Counting ElementsSolutionEasyArray
1424Diagonal Traverse IISolutionMediumMatrix
1423Maximum Points You Can Obtain from CardsSolutionMediumArray, DP, Sliding Window
1422Maximum Score After Splitting a StringSolutionEasyString
1418Display Table of Food Orders in a RestaurantSolutionMediumHashTable
1417Reformat The StringSolutionEasyString
1415The k-th Lexicographical String of All Happy Strings of Length nSolutionMediumBacktracking
1414Find the Minimum Number of Fibonacci Numbers Whose Sum Is KSolutionMediumArray, Greedy
1413Minimum Value to Get Positive Step by Step SumSolutionEasyArray
1410HTML Entity ParserSolutionMediumString, Stack
1409Queries on a Permutation With KeySolutionMediumArray
1408String Matching in an ArraySolutionEasyString
1405Longest Happy StringSolutionMediumPriorityQueue, Greedy
1403Minimum Subsequence in Non-Increasing OrderSolutionEasyGreedy, Sort
1402Reducing DishesSolutionHardDynamic Programming
1401Circle and Rectangle OverlappingSolutionMediumGeometry
1400Construct K Palindrome StringsSolutionMediumGreedy
1399Count Largest GroupSolutionEasyArray
1396Design Underground SystemSolutionMediumDesign
1395Count Number of TeamsSolutionMediumArray
1394Find Lucky Integer in an ArraySolutionEasyArray
1392Longest Happy PrefixSolutionHardString, Rolling Hash
1390Four DivisorsSolutionMediumMath
1389Create Target Array in the Given OrderSolutionEasyArray
1388Pizza With 3n SlicesSolutionHardDP
1387Sort Integers by The Power ValueSolutionMediumSort, Graph
1386Cinema Seat AllocationSolutionMediumArray, Greedy
1385Find the Distance Value Between Two ArraysSolutionEasyArray
1382Balance a Binary Search TreeSolutionMediumBinary Search Tree
1381Design a Stack With Increment OperationSolutionMediumStack, Design
1380Lucky Numbers in a MatrixSolutionEasyArray
1379Find a Corresponding Node of a Binary Tree in a Clone of That TreeSolutionMediumTree
1377Frog Position After T SecondsSolutionHardDFS, BFS
1376Time Needed to Inform All EmployeesSolutionMediumDFS
1375Bulb Switcher IIISolutionMediumArray
1374Generate a String With Characters That Have Odd CountsSolutionEasyString
1373Maximum Sum BST in Binary TreeSolutionHardDP, BST
1372Longest ZigZag Path in a Binary TreeSolutionHardDP, Tree
1371Find the Longest Substring Containing Vowels in Even CountsSolutionMediumString
1370Increasing Decreasing StringSolutionEasyString, Sort
1367Linked List in Binary TreeSolutionMediumDP, Linked List, Tree
1366Rank Teams by VotesSolutionMediumArray, Sort
1365How Many Numbers Are Smaller Than the Current NumberSolutionEasyArray, HashTable
1362Closest DivisorsSolutionMediumMath
1361Validate Binary Tree NodesSolutionMediumGraph
1360Number of Days Between Two DatesSolutionEasy
1358Number of Substrings Containing All Three CharactersSolutionMediumString
1357Apply Discount Every n OrdersSolutionMediumDesign
1356Sort Integers by The Number of 1 BitsSolutionEasySort, Bit Manipulation
1354Construct Target Array With Multiple SumsSolutionHardGreedy
1353Maximum Number of Events That Can Be AttendedSolutionMediumGreedy, Sort, Segment Tree
1352Product of the Last K NumbersSolutionMediumArray, Design
1351Count Negative Numbers in a Sorted MatrixSolutionEasyArray, Binary Search
1349Maximum Students Taking ExamSolutionHardDynamic Programming
1348Tweet Counts Per FrequencySolutionMediumDesign
1347Minimum Number of Steps to Make Two Strings AnagramSolutionEasyString
1346Check If N and Its Double ExistSolutionEasyArray
1345Jump Game IVSolutionHardBFS
1344Angle Between Hands of a ClockSolutionMediumMath
1343Number of Sub-arrays of Size K and Average Greater than or Equal to ThresholdSolutionMediumArray
1342Number of Steps to Reduce a Number to ZeroSolutionEasyBit Manipulation
1341The K Weakest Rows in a MatrixSolutionEasy
1339Maximum Product of Splitted Binary TreeSolutionMediumDFS, Tree
1338Reduce Array Size to The HalfSolutionMedium
1337Remove Palindromic SubsequencesSolutionEasyString
1334Find the City With the Smallest Number of Neighbors at a Threshold DistanceSolutionMediumDijkstra's algorithm, Graph
1333Filter Restaurants by Vegan-Friendly, Price and DistanceSolutionMedium
1332Remove Palindromic SubsequencesSolutionEasyString
1331Rank Transform of an ArraySolutionEasy
1329Sort the Matrix DiagonallySolutionMedium
1325Delete Leaves With a Given ValueSolutionMediumTree
1324Print Words VerticallySolutionMediumString
1323Maximum 69 NumberSolutionEasyMath
1317Convert Integer to the Sum of Two No-Zero IntegersSolutionEasy
1315Sum of Nodes with Even-Valued GrandparentSolutionMediumTree, DFS
1314Matrix Block SumSolutionMediumPrefix Sum
1313Decompress Run-Length Encoded ListSolutionEasyArray
1305All Elements in Two Binary Search TreesSolutionMedium
1304Find N Unique Integers Sum up to ZeroSolutionEasy
1302Deepest Leaves SumSolutionMedium
1300Sum of Mutated Array Closest to TargetSolutionMediumBinary Search, Sorting
1299Replace Elements with Greatest Element on Right SideSolutionEasy
1297Maximum Number of Occurrences of a SubstringSolutionMedium
1296Divide Array in Sets of K Consecutive NumbersSolutionMedium
1295Find Numbers with Even Number of DigitsJavaJavascript📺Easy
1291Sequential DigitsSolutionMedium
1290Convert Binary Number in a Linked List to IntegerSolutionEasy
1289Minimum Falling Path Sum IISolutionHardDynamic Programming
1287Element Appearing More Than 25% In Sorted ArraySolution📺Easy
1286Iterator for CombinationSolutionMediumBacktracking, Design
1283Find the Smallest Divisor Given a ThresholdSolutionMedium
1282Group the People Given the Group Size They Belong ToSolution📺Medium
1281Subtract the Product and Sum of Digits of an IntegerSolutionEasy
1277Count Square Submatrices with All OnesSolutionMedium
1275Find Winner on a Tic Tac Toe GameSolutionEasyArray
1273Delete Tree NodesSolutionMediumDynamic Programming, DFS
1271HexspeakSolutionEasy
1268Search Suggestions SystemSolution📺MediumString
1267Count Servers that CommunicateSolutionMedium
1266Minimum Time Visiting All PointsSolutionEasy
1265Print Immutable Linked List in ReverseSolutionMedium
1261Find Elements in a Contaminated Binary TreeSolutionMediumTree, HashTable
1260Shift 2D GridSolution📺Easy
1258Synonymous SentencesSolutionMediumBacktracking
1257Smallest Common RegionSolutionMediumTree, HashTable, DFS, BFS
1254Number of Closed IslandsSolutionMediumBFS
1252Cells with Odd Values in a MatrixSolutionEasy
1249Minimum Remove to Make Valid ParenthesesSolutionMediumString, Stack
1243Array TransformationSolution📺Easy
1242Web Crawler MultithreadedSolutionMediumConcurrency
1237Find Positive Integer Solution for a Given EquationSolutionEasy
1233Remove Sub-Folders from the FilesystemSolutionEasy
1232Check If It Is a Straight LineSolution📺Easy
1230Toss Strange CoinsSolutionMediumDP
1228Missing Number In Arithmetic ProgressionSolutionEasy
1221Split a String in Balanced StringsSolutionEasyGreedy
1219Path with Maximum GoldSolutionMediumBacktracking
1217Play with ChipsSolutionEasyArray, Math, Greedy
1214Two Sum BSTsSolutionMediumBinary Search Tree
1213Intersection of Three Sorted ArraysSolution📺Easy
1209Remove All Adjacent Duplicates in String IISolutionMediumStack
1207Unique Number of OccurrencesSolution📺Easy
1200Minimum Absolute DifferenceSolution📺Easy
1198Find Smallest Common Element in All RowsSolution📺Easy
1197Minimum Knight MovesSolutionMediumBFS
1196How Many Apples Can You Put into the BasketSolution📺Easy
1190Reverse Substrings Between Each Pair of ParenthesesSolutionMediumStack
1189Maximum Number of BalloonsSolution📺Easy
1185Day of the WeekSolutionEasy
1184Distance Between Bus StopsSolution📺Easy
1182Shortest Distance to Target ColorSolutionMediumBinary Search
1180Count Substrings with Only One Distinct LetterSolutionEasyMath, String
1176Diet Plan PerformanceSolutionEasyArray, Sliding Window
1175Prime ArrangementsSolutionEasyMath
1171Remove Zero Sum Consecutive Nodes from Linked ListSolutionMediumLinkedList
1165Single-Row KeyboardSolutionEasy
1161Maximum Level Sum of a Binary TreeSolutionMediumGraph
1160Find Words That Can Be Formed by CharactersSolutionEasy
1154Day of the YearSolutionEasy
1152Analyze User Website Visit PatternSolution📺MediumHashTable, Sort, Array
1151Minimum Swaps to Group All 1's TogetherSolutionMediumArray, Sliding Window
1150Check If a Number Is Majority Element in a Sorted ArraySolution📺Easy
1146Snapshot ArrayJavascriptJavaMedium
1143Longest Common SubsequenceSolutionMediumString, DP
1138Alphabet Board PathSolution📺MediumHashTable, String
1137N-th Tribonacci NumberSolutionEasy
1136Parallel CoursesSolutionMediumTopological Sort
1134Armstrong NumberSolution📺Easy
1133Largest Unique NumberSolution📺Easy
1128Number of Equivalent Domino PairsSolution📺Easy
1122Relative Sort ArraySolutionEasy
1170Compare Strings by Frequency of the Smallest CharacterSolutionEasy
1120Maximum Average SubtreeSolutionMediumTree, DFS
1119Remove Vowels from a StringSolution📺Easy
1118Number of Days in a MonthSolutionEasy
1114Print in OrderSolutionEasy
1110Delete Nodes And Return ForestSolutionMediumTree, DFS, BFS
1108Defanging an IP AddressSolution📺Easy
1105Filling Bookcase ShelvesSolutionMediumDP
1104Path In Zigzag Labelled Binary TreeSolutionMediumMath, Tree
1103Distribute Candies to PeopleSolutionEasyMath
1100Find K-Length Substrings With No Repeated CharactersSolutionMediumString, Sliding Window
1099Two Sum Less Than KSolution📺Easy
1094Car PoolingSolutionMediumArray, Sorting, Heap, Simulation, Prefix Sum
1090Largest Values From LabelsSolution📺MediumHashTable, Greedy
1091Shortest Path in Binary MatrixSolutionMediumBFS
1089Duplicate ZerosSolutionEasy
1087Brace ExpansionSolutionMediumBacktracking
1086High FiveSolution📺Easy
1085Sum of Digits in the Minimum NumberSolution📺Easy
1080Insufficient Nodes in Root to Leaf PathsSolutionMediumTree, DFS
1079Letter Tile PossibilitiesSolutionMedium
1078Occurrences After BigramSolutionEasy
1071Greatest Common Divisor of StringsSolutionEasy
1066Campus Bikes IISolutionMediumBacktracking, DP
1065Index Pairs of a StringSolutionMedium
1062Longest Repeating SubstringSolutionMediumString, Binary Search, DP, Rolling Hash, Suffix Array, Hash Function
1061Lexicographically Smallest Equivalent StringSolution📺MediumUnion Find
1060Missing Element in Sorted ArraySolutionMedium
1059All Paths from Source Lead to DestinationSolutionMediumDFS
1057Campus BikesSolutionMedium
1056Confusing NumberSolutionEasy
1055Fixed PointSolutionEasy
1051Height CheckerSolutionEasy
1047Remove All Adjacent Duplicates In StringSolutionEasy
1046Last Stone WeightSolution📺Easy
1043Partition Array for Maximum SumSolutionMediumDP
1038Binary Search Tree to Greater Sum TreeSolutionMediumDFS, tree
1037Valid BoomerangSolutionEasyMath
1034Coloring A BorderSolutionMediumDFS
1033Moving Stones Until ConsecutiveSolutionEasyMath
1030Matrix Cells in Distance OrderSolutionEasy
1029Two City SchedulingSolutionEasy
1026Maximum Difference Between Node and AncestorSolutionMediumTree, DFS, Binary Tree
1025Divisor GameSolutionEasyMath, DP, Brainteaser, Game Theory
1024Video StitchingSolutionMediumArray, DP, Greedy
1022Sum of Root To Leaf Binary NumbersSolutionEasy
1021Remove Outermost ParenthesesSolutionEasy
1020Number of EnclavesSolutionMediumGraph, DFS, BFS, recursion
1019Next Greater Node In Linked ListSolutionMediumLinked List, Stack
1018Binary Prefix Divisible By 5SolutionEasy
1014Best Sightseeing PairSolutionMedium
1013Partition Array Into Three Parts With Equal SumSolutionEasy
1011Capacity To Ship Packages Within D DaysSolutionMediumBinary Search
1010Pairs of Songs With Total Durations Divisible by 60SolutionEasy
1009Complement of Base 10 IntegerSolutionEasy
1008Construct Binary Search Tree from Preorder TraversalSolutionMediumRecursion
1005Maximize Sum Of Array After K NegationsSolution📺Easy
1004Max Consecutive Ones IIISolution📺MediumTwo Pointers, Sliding Window
1003Check If Word Is Valid After SubstitutionsSolutionMedium
1002Find Common CharactersSolutionEasy
close