Skip to content

shahzodshafizod/leetcode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LeetCode Badge

#### Title Difficulty Tags Date Solutions
3375 Minimum Operations to Make Array Values Equal to K Easy Array, Hash Table 2025-04-09 Go Python
3396 Minimum Number of Operations to Make Elements in Array Distinct Easy Array, Hash Table 2025-04-08 Go Python
0416 Partition Equal Subset Sum Medium Array, Dynamic Programming 2025-04-07 Go Python
0368 Largest Divisible Subset Medium Array, Math, Dynamic Programming, Sorting 2025-04-06 Go Python
0383 Ransom Note Easy Hash Table, String, Counting 2025-04-05 Go Python
1123 Lowest Common Ancestor of Deepest Leaves Medium Hash Table, Tree, Depth-First Search, Breadth-First Search, Binary Tree 2025-04-04 Go Python
2874 Maximum Value of an Ordered Triplet II Medium Array 2025-04-03 Go Python
2873 Maximum Value of an Ordered Triplet I Easy Array 2025-04-02 Go Python
2140 Solving Questions With Brainpower Medium Array, Dynamic Programming 2025-04-01 Go Python
0290 Word Pattern Easy Hash Table, String 2025-03-31 Go Python
0763 Partition Labels Medium Hash Table, Two Pointers, String, Greedy 2025-03-30 Go Python
2818 Apply Operations to Maximize Score Hard Array, Math, Stack, Greedy, Sorting, Monotonic Stack, Number Theory 2025-03-29 Go Python
2503 Maximum Number of Points From Grid Queries Hard Array, Two Pointers, Breadth-First Search, Union Find, Sorting, Heap (Priority Queue), Matrix 2025-03-28 Go Python
2780 Minimum Index of a Valid Split Medium Array, Hash Table, Sorting 2025-03-27 Go Python
2033 Minimum Operations to Make a Uni-Value Grid Medium Array, Math, Sorting, Matrix 2025-03-26 Go Python
3394 Check if Grid can be Cut into Sections Medium Array, Sorting 2025-03-25 Go Python
3169 Count Days Without Meetings Medium Array, Sorting 2025-03-24 Go Python
1976 Number of Ways to Arrive at Destination Medium Dynamic Programming, Graph, Topological Sort, Shortest Path 2025-03-23 Go Python
2685 Count the Number of Complete Components Medium Depth-First Search, Breadth-First Search, Union Find, Graph 2025-03-22 Go Python
2115 Find All Possible Recipes from Given Supplies Medium Array, Hash Table, String, Graph, Topological Sort 2025-03-21 Go Python
3108 Minimum Cost Walk in Weighted Graph Hard Array, Bit Manipulation, Union Find, Graph 2025-03-20 Go Python
3191 Minimum Operations to Make Binary Array Elements Equal to One I Medium Array, Bit Manipulation, Queue, Sliding Window, Prefix Sum 2025-03-19 Go Python
2401 Longest Nice Subarray Medium Array, Bit Manipulation, Sliding Window 2025-03-18 Go Python
2206 Divide Array Into Equal Pairs Easy Array, Hash Table, Bit Manipulation, Counting 2025-03-17 Go Python
2594 Minimum Time to Repair Cars Medium Array, Binary Search 2025-03-16 Go Python
2560 House Robber IV Medium Array, Binary Search 2025-03-15 Go Python
2226 Maximum Candies Allocated to K Children Medium Array, Binary Search 2025-03-14 Go Python
3356 Zero Array Transformation II Medium Array, Binary Search, Prefix Sum 2025-03-13 Go Python
3355 Zero Array Transformation I Medium Array, Prefix Sum 2025-03-13 Go Python
2529 Maximum Count of Positive Integer and Negative Integer Easy Array, Binary Search, Counting 2025-03-12 Go Python
1358 Number of Substrings Containing All Three Characters Medium Hash Table, String, Sliding Window 2025-03-11 Go Python
3306 Count of Substrings Containing Every Vowel and K Consonants II Medium Hash Table, String, Sliding Window 2025-03-10 Go Python
3208 Alternating Groups II Medium Array, Sliding Window 2025-03-09 Go Python
2379 Minimum Recolors to Get K Consecutive Black Blocks Easy String, Sliding Window 2025-03-08 Go Python
2523 Closest Prime Numbers in Range Medium Math, Number Theory 2025-03-07 Go Python
2965 Find Missing and Repeated Values Easy Array, Hash Table, Math, Matrix 2025-03-06 Go Python
2579 Count Total Number of Colored Cells Medium Math 2025-03-05 Go Python
1780 Check if Number is a Sum of Powers of Three Medium Math 2025-03-04 Go Python
2161 Partition Array According to Given Pivot Medium Array, Two Pointers, Simulation 2025-03-03 Go Python
2570 Merge Two 2D Arrays by Summing Values Easy Array, Hash Table, Two Pointers 2025-03-02 Go Python
2460 Apply Operations to an Array Easy Array, Two Pointers, Simulation 2025-03-01 Go Python
1092 Shortest Common Supersequence Hard String, Dynamic Programming 2025-02-28 Go Python
0873 Length of Longest Fibonacci Subsequence Medium Array, Hash Table, Dynamic Programming 2025-02-27 Go Python
1749 Maximum Absolute Sum of Any Subarray Medium Array, Dynamic Programming 2025-02-26 Go Python
1524 Number of Sub-arrays With Odd Sum Medium Array, Math, Dynamic Programming, Prefix Sum 2025-02-25 Go Python
2467 Most Profitable Path in a Tree Medium Array, Tree, Depth-First Search, Breadth-First Search, Graph 2025-02-24 Go Python
0889 Construct Binary Tree from Preorder and Postorder Traversal Medium Array, Hash Table, Divide and Conquer, Tree, Binary Tree 2025-02-23 Go Python
0832 Flipping an Image Easy Array, Two Pointers, Bit Manipulation, Matrix, Simulation 2025-02-22 Go Python
1261 Find Elements in a Contaminated Binary Tree Medium Hash Table, Tree, Depth-First Search, Breadth-First Search, Design, Binary Tree 2025-02-21 Go Python
1980 Find Unique Binary String Medium Array, Hash Table, String, Backtracking 2025-02-20 Go Python
1415 The k-th Lexicographical String of All Happy Strings of Length n Medium String, Backtracking 2025-02-19 Go Python
2375 Construct Smallest Number From DI String Medium String, Backtracking, Stack, Greedy 2025-02-18 Go Python
1079 Letter Tile Possibilities Medium Hash Table, String, Backtracking, Counting 2025-02-17 Go Python
1718 Construct the Lexicographically Largest Valid Sequence Medium Array, Backtracking 2025-02-16 Go Python
2698 Find the Punishment Number of an Integer Medium Math, Backtracking 2025-02-15 Go Python
1352 Product of the Last K Numbers Medium Array, Math, Design, Data Stream, Prefix Sum 2025-02-14 Go Python
3066 Minimum Operations to Exceed Threshold Value II Medium Array, Heap (Priority Queue), Simulation 2025-02-13 Go Python
2342 Max Sum of a Pair With Equal Sum of Digits Medium Array, Hash Table, Sorting, Heap (Priority Queue) 2025-02-12 Go Python
1910 Remove All Occurrences of a Substring Medium String, Stack, Simulation 2025-02-11 Go Python
3174 Clear Digits Easy String, Stack, Simulation 2025-02-10 Go Python
2364 Count Number of Bad Pairs Medium Array, Hash Table, Math, Counting 2025-02-09 Go Python
2349 Design a Number Container System Medium Hash Table, Design, Heap (Priority Queue), Ordered Set 2025-02-08 Go Python
3160 Find the Number of Distinct Colors Among the Balls Medium Array, Hash Table, Simulation 2025-02-07 Go Python
1726 Tuple with Same Product Medium Array, Hash Table, Counting 2025-02-06 Go Python
1790 Check if One String Swap Can Make Strings Equal Easy Hash Table, String, Counting 2025-02-05 Go Python
1800 Maximum Ascending Subarray Sum Easy Array 2025-02-04 Go Python
3105 Longest Strictly Increasing or Strictly Decreasing Subarray Easy Array 2025-02-03 Go Python
1752 Check if Array Is Sorted and Rotated Easy Array 2025-02-02 Go Python
3151 Special Array I Easy Array 2025-02-01 Go Python
0827 Making A Large Island Hard Array, Depth-First Search, Breadth-First Search, Union Find, Matrix 2025-01-31 Go Python
0785 Is Graph Bipartite? Medium Depth-First Search, Breadth-First Search, Union Find, Graph 2025-01-31 Go Python
2493 Divide Nodes Into the Maximum Number of Groups Hard Breadth-First Search, Union Find, Graph 2025-01-30 Go Python
0684 Redundant Connection Medium Depth-First Search, Breadth-First Search, Union Find, Graph 2025-01-29 Go Python
2658 Maximum Number of Fish in a Grid Medium Array, Depth-First Search, Breadth-First Search, Union Find, Matrix 2025-01-28 Go Python
1462 Course Schedule IV Medium Depth-First Search, Breadth-First Search, Graph, Topological Sort 2025-01-27 Go Python
2127 Maximum Employees to Be Invited to a Meeting Hard Depth-First Search, Graph, Topological Sort 2025-01-26 Go Python
2948 Make Lexicographically Smallest Array by Swapping Elements Medium Array, Union Find, Sorting 2025-01-25 Go Python
0802 Find Eventual Safe States Medium Depth-First Search, Breadth-First Search, Graph, Topological Sort 2025-01-24 Go Python
1267 Count Servers that Communicate Medium Array, Depth-First Search, Breadth-First Search, Union Find, Matrix, Counting 2025-01-23 Go Python
1765 Map of Highest Peak Medium Array, Breadth-First Search, Matrix 2025-01-22 Go Python
2017 Grid Game Medium Array, Matrix, Prefix Sum 2025-01-21 Go Python
2661 First Completely Painted Row or Column Medium Array, Hash Table, Matrix 2025-01-20 Go Python
0407 Trapping Rain Water II Hard Array, Breadth-First Search, Heap (Priority Queue), Matrix 2025-01-19 Go Python
1368 Minimum Cost to Make at Least One Valid Path in a Grid Hard Array, Breadth-First Search, Graph, Heap (Priority Queue), Matrix, Shortest Path 2025-01-18 Go Python
2683 Neighboring Bitwise XOR Medium Array, Bit Manipulation 2025-01-17 Go Python
2425 Bitwise XOR of All Pairings Medium Array, Bit Manipulation, Brainteaser 2025-01-16 Go Python
2429 Minimize XOR Medium Greedy, Bit Manipulation 2025-01-15 Go Python
2657 Find the Prefix Common Array of Two Arrays Medium Array, Hash Table, Bit Manipulation 2025-01-14 Go Python
3223 Minimum Length of String After Operations Medium Hash Table, String, Counting 2025-01-13 Go Python
2116 Check if a Parentheses String Can Be Valid Medium String, Stack, Greedy 2025-01-12 Go Python
1400 Construct K Palindrome Strings Medium Hash Table, String, Greedy, Counting 2025-01-11 Go Python
0916 Word Subsets Medium Array, Hash Table, String 2025-01-10 Go Python
2185 Counting Words With a Given Prefix Easy Array, String, String Matching 2025-01-09 Go Python
3045 Count Prefix and Suffix Pairs II Hard Array, String, Trie, Rolling Hash, String Matching, Hash Function 2025-01-08 Go Python
3042 Count Prefix and Suffix Pairs I Easy Array, String, Trie, Rolling Hash, String Matching, Hash Function 2025-01-08 Go Python
1408 String Matching in an Array Easy Array, String, String Matching 2025-01-07 Go Python
1769 Minimum Number of Operations to Move All Balls to Each Box Medium Array, String, Prefix Sum 2025-01-06 Go Python
2381 Shifting Letters II Medium Array, String, Prefix Sum 2025-01-05 Go Python
1930 Unique Length-3 Palindromic Subsequences Medium Hash Table, String, Bit Manipulation, Prefix Sum 2025-01-04 Go Python
2270 Number of Ways to Split Array Medium Array, Prefix Sum 2025-01-03 Go Python
2559 Count Vowel Strings in Ranges Medium Array, String, Prefix Sum 2025-01-02 Go Python
1422 Maximum Score After Splitting a String Easy String, Prefix Sum 2025-01-01 Go Python
0983 Minimum Cost For Tickets Medium Array, Dynamic Programming 2024-12-31 Go Python
0067 Add Binary Easy Math, String, Bit Manipulation, Simulation 2024-12-31 Go Python
2009 Minimum Number of Operations to Make Array Continuous Hard Array, Hash Table, Binary Search, Sliding Window 2024-12-31 Go Python
0560 Subarray Sum Equals K Medium Array, Hash Table, Prefix Sum 2024-12-30 Go Python
2466 Count Ways To Build Good Strings Medium Dynamic Programming 2024-12-30 Go Python
0941 Valid Mountain Array Easy Array 2024-12-29 Go Python
0953 Verifying an Alien Dictionary Easy Array, Hash Table, String 2024-12-29 Go Python
0689 Maximum Sum of 3 Non-Overlapping Subarrays Hard Array, Dynamic Programming 2024-12-28 Go Python
1014 Best Sightseeing Pair Medium Array, Dynamic Programming 2024-12-27 Go Python
0494 Target Sum Medium Array, Dynamic Programming, Backtracking 2024-12-26 Go Python
0617 Merge Two Binary Trees Easy Tree, Depth-First Search, Breadth-First Search, Binary Tree 2024-12-26 Go Python
0515 Find Largest Value in Each Tree Row Medium Tree, Depth-First Search, Breadth-First Search, Binary Tree 2024-12-25 Go Python
3203 Find Minimum Diameter After Merging Two Trees Hard Tree, Depth-First Search, Breadth-First Search, Graph 2024-12-24 Go Python
0108 Convert Sorted Array to Binary Search Tree Easy Array, Divide and Conquer, Tree, Binary Search Tree, Binary Tree 2024-12-24 Go Python
0257 Binary Tree Paths Easy String, Backtracking, Tree, Depth-First Search, Binary Tree 2024-12-23 Go Python
2940 Find Building Where Alice and Bob Can Meet Hard Array, Binary Search, Stack, Binary Indexed Tree, Segment Tree, Heap (Priority Queue), Monotonic Stack 2024-12-23 Go Python
0461 Hamming Distance Easy Bit Manipulation 2024-12-22 Go Python
0231 Power of Two Easy Math, Bit Manipulation, Recursion 2024-12-21 Go Python
2872 Maximum Number of K-Divisible Components Hard Tree, Depth-First Search 2024-12-21 Go Python
1074 Number of Submatrices That Sum to Target Hard Array, Hash Table, Matrix, Prefix Sum 2024-12-20 Go Python
0111 Minimum Depth of Binary Tree Easy Tree, Depth-First Search, Breadth-First Search, Binary Tree 2024-12-20 Go Python
0605 Can Place Flowers Easy Array, Greedy 2024-12-19 Go Python
1591 Strange Printer II Hard Array, Graph, Topological Sort, Matrix 2024-12-19 Go Python
1475 Final Prices With a Special Discount in a Shop Easy Array, Stack, Monotonic Stack 2024-12-18 Go Python
2448 Minimum Cost to Make Array Equal Hard Array, Binary Search, Greedy, Sorting, Prefix Sum 2024-12-17 Go Python
0242 Valid Anagram Easy Hash Table, String, Sorting 2024-12-17 Go Python
0895 Maximum Frequency Stack Hard Hash Table, Stack, Design, Ordered Set 2024-12-16 Go Python
3264 Final Array State After K Multiplication Operations I Easy Array, Math, Heap (Priority Queue), Simulation 2024-12-16 Go Python
1782 Count Pairs Of Nodes Hard Array, Two Pointers, Binary Search, Graph, Sorting 2024-12-15 Go Python
0342 Power of Four Easy Math, Bit Manipulation, Recursion 2024-12-15 Go Python
1095 Find in Mountain Array Hard Binary Search, Recursion, Two Pointers, Dynamic Programming, Greedy, Memoization, Backtracking 2024-12-14 Go Python
0035 Search Insert Position Easy Binary Search 2024-12-14 Go Python
0374 Guess Number Higher or Lower Easy Binary Search 2024-12-13 Go Python
0460 LFU Cache Hard Hash Table, Linked List, Design, Doubly-Linked List 2024-12-13 Go Python
2558 Take Gifts From the Richest Pile Easy Array, Heap (Priority Queue), Simulation 2024-12-12 Go Python
1675 Minimize Deviation in Array Hard Array, Greedy, Heap (Priority Queue), Ordered Set 2024-12-11 Go Python
0278 First Bad Version Easy Binary Search, Interactive 2024-12-11 Go Python
2251 Number of Flowers in Full Bloom Hard Array, Hash Table, Binary Search, Sorting, Prefix Sum, Ordered Set 2024-12-10 Go Python
0541 Reverse String II Easy Two Pointers, String 2024-12-10 Go Python
1857 Largest Color Value in a Directed Graph Hard Hash Table, Dynamic Programming, Graph, Topological Sort, Memoization, Counting 2024-12-09 Go Python
0557 Reverse Words in a String III Easy Two Pointers, String 2024-12-09 Go Python
1553 Minimum Number of Days to Eat N Oranges Hard Dynamic Programming, Memoization 2024-12-08 Go Python
1047 Remove All Adjacent Duplicates In String Easy String, Stack 2024-12-08 Go Python
2421 Number of Good Paths Hard Array, Hash Table, Tree, Union Find, Graph, Sorting 2024-12-07 Go Python
0389 Find the Difference Easy Hash Table, String, Bit Manipulation, Sorting 2024-12-07 Go Python
1489 Find Critical and Pseudo-Critical Edges in Minimum Spanning Tree Hard Union Find, Graph, Sorting, Minimum Spanning Tree, Strongly Connected Component 2024-12-06 Go Python
1295 Find Numbers with Even Number of Digits Easy Array, Math 2024-12-06 Go Python
0472 Concatenated Words Hard Array, String, Dynamic Programming, Depth-First Search, Trie 2024-12-05 Go Python
0069 Sqrt(x) Easy Math, Binary Search 2024-12-05 Go Python
0118 Pascal's Triangle Easy Array, Dynamic Programming 2024-12-04 Go Python
1799 Maximize Score After N Operations Hard Array, Math, Dynamic Programming, Backtracking, Bit Manipulation, Number Theory, Bitmask 2024-12-04 Go Python
1964 Find the Longest Valid Obstacle Course at Each Position Hard Array, Binary Search, Binary Indexed Tree 2024-12-03 Go Python
1455 Check If a Word Occurs As a Prefix of Any Word in a Sentence Easy Two Pointers, String, String Matching 2024-12-02 Go Python
3244 Shortest Distance After Road Addition Queries II Hard Array, Greedy, Graph, Ordered Set 2024-12-01 Go Python
2097 Valid Arrangement of Pairs Hard Depth-First Search, Graph, Eulerian Circuit 2024-11-30 Go Python
2577 Minimum Time to Visit a Cell In a Grid Hard Array, Breadth-First Search, Graph, Heap (Priority Queue), Matrix, Shortest Path 2024-11-29 Go Python
2290 Minimum Obstacle Removal to Reach Corner Hard Array, Breadth-First Search, Graph, Heap (Priority Queue), Matrix, Shortest Path 2024-11-28 Go Python
1346 Check If N and Its Double Exist Easy Array, Hash Table, Two Pointers, Binary Search, Sorting 2024-11-27 Go Python
0066 Plus One Easy Array, Math 2024-11-26 Go Python
0773 Sliding Puzzle Hard Array, Breadth-First Search, Matrix 2024-11-25 Go Python
0101 Symmetric Tree Easy Tree, Depth-First Search, Breadth-First Search, Binary Tree 2024-11-24 Go Python
1235 Maximum Profit in Job Scheduling Hard Array, Binary Search, Dynamic Programming, Sorting 2024-11-23 Go Python
1751 Maximum Number of Events That Can Be Attended II Hard Array, Binary Search, Dynamic Programming, Sorting 2024-11-22 Go Python
0940 Distinct Subsequences II Hard String, Dynamic Programming 2024-11-21 Go Python
2218 Maximum Value of K Coins From Piles Hard Array, Dynamic Programming, Prefix Sum 2024-11-20 Go Python
0920 Number of Music Playlists Hard Math, Dynamic Programming, Combinatorics 2024-11-19 Go Python
1652 Defuse the Bomb Easy Array, Sliding Window 2024-11-18 Go Python
0258 Add Digits Easy Math, Simulation, Number Theory 2024-11-17 Go Python
0283 Move Zeroes Easy Array, Two Pointers 2024-11-16 Go Python
1639 Number of Ways to Form a Target String Given a Dictionary Hard Array, String, Dynamic Programming 2024-11-15 Go Python
1547 Minimum Cost to Cut a Stick Hard Array, Dynamic Programming, Sorting 2024-11-14 Go Python
2742 Painting the Walls Hard Array, Dynamic Programming 2024-11-13 Go Python
1494 Parallel Courses II Hard Dynamic Programming, Bit Manipulation, Graph, Bitmask 2024-11-12 Go Python
0862 Shortest Subarray with Sum at Least K Hard Array, Binary Search, Queue, Sliding Window, Heap (Priority Queue), Prefix Sum, Monotonic Queue 2024-11-11 Go Python
0643 Maximum Average Subarray I Easy Array, Sliding Window 2024-11-10 Go Python
0929 Unique Email Addresses Easy Array, Hash Table, String 2024-11-09 Go Python
2050 Parallel Courses III Hard Array, Dynamic Programming, Graph, Topological Sort 2024-11-08 Go Python
1269 Number of Ways to Stay in the Same Place After Some Steps Hard Dynamic Programming 2024-11-07 Go Python
1531 String Compression II Hard String, Dynamic Programming 2024-11-06 Go Python
0203 Remove Linked List Elements Easy Linked List, Recursion 2024-11-05 Go Python
1872 Stone Game VIII Hard Array, Math, Dynamic Programming, Prefix Sum, Game Theory 2024-11-04 Go Python
0796 Rotate String Easy String, String Matching 2024-11-03 Go Python
2490 Circular Sentence Easy String 2024-11-02 Go Python
1957 Delete Characters to Make Fancy String Easy String 2024-11-01 Go Python
2463 Minimum Total Distance Traveled Hard Array, Dynamic Programming, Sorting 2024-10-31 Go Python
1671 Minimum Number of Removals to Make Mountain Array Hard Array, Binary Search, Dynamic Programming, Greedy 2024-10-30 Go Python
1563 Stone Game V Hard Array, Math, Dynamic Programming, Game Theory 2024-10-29 Go Python
1510 Stone Game IV Hard Math, Dynamic Programming, Game Theory 2024-10-28 Go Python
1406 Stone Game III Hard Array, Math, Dynamic Programming, Game Theory 2024-10-27 Go Python
2458 Height of Binary Tree After Subtree Removal Queries Hard Array, Tree, Depth-First Search, Breadth-First Search, Binary Tree 2024-10-26 Go Python
1359 Count All Valid Pickup and Delivery Options Hard Math, Dynamic Programming, Combinatorics 2024-10-25 Go Python
0446 Arithmetic Slices II - Subsequence Hard Array, Dynamic Programming 2024-10-24 Go Python
1335 Minimum Difficulty of a Job Schedule Hard Array, Dynamic Programming 2024-10-23 Go Python
0629 K Inverse Pairs Array Hard Dynamic Programming 2024-10-22 Go Python
3235 Check if the Rectangle Corner Is Reachable Hard Array, Math, Depth-First Search, Breadth-First Search, Union Find, Geometry 2024-10-21 Go Python
1106 Parsing A Boolean Expression Hard String, Stack, Recursion 2024-10-20 Go Python
2147 Number of Ways to Divide a Long Corridor Hard Math, String, Dynamic Programming 2024-10-19 Go Python
0174 Dungeon Game Hard Array, Dynamic Programming, Matrix 2024-10-18 Go Python
0412 Fizz Buzz Easy Math, String, Simulation 2024-10-17 Go Python
1463 Cherry Pickup II Hard Array, Dynamic Programming, Matrix 2024-10-16 Go Python
0741 Cherry Pickup Hard Array, Dynamic Programming, Matrix 2024-10-15 Go Python
1793 Maximum Score of a Good Subarray Hard Array, Two Pointers, Binary Search, Stack, Monotonic Stack 2024-10-14 Go Python
0632 Smallest Range Covering Elements from K Lists Hard Array, Hash Table, Greedy, Sliding Window, Sorting, Heap (Priority Queue) 2024-10-13 Go Python
0352 Data Stream as Disjoint Intervals Hard Binary Search, Design, Ordered Set 2024-10-12 Go Python
2306 Naming a Company Hard Array, Hash Table, String, Bit Manipulation, Enumeration 2024-10-11 Go Python
2402 Meeting Rooms III Hard Array, Hash Table, Sorting, Heap (Priority Queue), Simulation 2024-10-10 Go Python
1611 Minimum One Bit Operations to Make Integers Zero Hard Dynamic Programming, Bit Manipulation, Memoization 2024-10-09 Go Python
0805 Split Array With Same Average Hard Array, Math, Dynamic Programming, Bit Manipulation, Bitmask 2024-10-08 Go Python
2696 Minimum String Length After Removing Substrings Easy String, Stack, Simulation 2024-10-07 Go Python
0115 Distinct Subsequences Hard String, Dynamic Programming 2024-10-06 Go Python
0068 Text Justification Hard Array, String, Simulation 2024-10-05 Go Python
0410 Split Array Largest Sum Hard Array, Binary Search, Dynamic Programming, Greedy, Prefix Sum 2024-10-04 Go Python
2183 Count Array Pairs Divisible by K Hard Array, Math, Number Theory 2024-10-03 Go Python
1331 Rank Transform of an Array Easy Array, Hash Table, Sorting 2024-10-02 Go Python
0312 Burst Balloons Hard Array, Dynamic Programming 2024-10-01 Go Python
1851 Minimum Interval to Include Each Query Hard Array, Binary Search, Line Sweep, Sorting, Heap (Priority Queue) 2024-09-30 Go Python
0879 Profitable Schemes Hard Array, Dynamic Programming 2024-09-29 Go Python
1220 Count Vowels Permutation Hard Dynamic Programming 2024-09-28 Go Python
0732 My Calendar III Hard Binary Search, Design, Segment Tree, Prefix Sum, Ordered Set 2024-09-27 Go Python
0691 Stickers to Spell Word Hard Array, String, Dynamic Programming, Backtracking, Bit Manipulation, Bitmask 2024-09-26 Go Python
2416 Sum of Prefix Scores of Strings Hard Array, String, Trie, Counting 2024-09-25 Go Python
3093 Longest Common Suffix Queries Hard Array, String, Trie 2024-09-24 Go Python
1643 Kth Smallest Instructions Hard Array, Math, Dynamic Programming, Combinatorics 2024-09-23 Go Python
0440 K-th Smallest in Lexicographical Order Hard Trie 2024-09-22 Go Python
0028 Find the Index of the First Occurrence in a String Easy Two Pointers, String, String Matching 2024-09-21 Go Python
0214 Shortest Palindrome Hard String, Rolling Hash, String Matching, Hash Function 2024-09-20 Go Python
1866 Number of Ways to Rearrange Sticks With K Sticks Visible Hard Math, Dynamic Programming, Combinatorics 2024-09-19 Go Python
2328 Number of Increasing Paths in a Grid Hard Array, Dynamic Programming, Depth-First Search, Breadth-First Search, Graph, Topological Sort, Memoization, Matrix 2024-09-18 Go Python
0884 Uncommon Words from Two Sentences Easy Hash Table, String, Counting 2024-09-17 Go Python
0329 Longest Increasing Path in a Matrix Hard Array, Dynamic Programming, Depth-First Search, Breadth-First Search, Graph, Topological Sort, Memoization, Matrix 2024-09-16 Go Python
0126 Word Ladder II Hard Hash Table, String, Backtracking, Breadth-First Search 2024-09-15 Go Python
0127 Word Ladder Hard Hash Table, String, Breadth-First Search 2024-09-14 Go Python
0297 Serialize and Deserialize Binary Tree Hard String, Tree, Depth-First Search, Breadth-First Search, Design, Binary Tree 2024-09-13 Go Python
1684 Count the Number of Consistent Strings Easy Array, Hash Table, String, Bit Manipulation, Counting 2024-09-12 Go Python
2220 Minimum Bit Flips to Convert Number Easy Bit Manipulation 2024-09-11 Go Python
0124 Binary Tree Maximum Path Sum Hard Dynamic Programming, Tree, Depth-First Search, Binary Tree 2024-09-10 Go Python
0480 Sliding Window Median Hard Array, Hash Table, Sliding Window, Heap (Priority Queue) 2024-09-09 Go Python
0572 Subtree of Another Tree Easy Tree, Depth-First Search, String Matching, Binary Tree, Hash Function 2024-09-08 Go Python
1425 Constrained Subsequence Sum Hard Array, Dynamic Programming, Queue, Sliding Window, Heap (Priority Queue), Monotonic Queue 2024-09-07 Go Python
1340 Jump Game V Hard Array, Dynamic Programming, Sorting 2024-09-06 Go Python
1345 Jump Game IV Hard Array, Hash Table, Breadth-First Search 2024-09-05 Go Python
2106 Maximum Fruits Harvested After at Most K Steps Hard Array, Binary Search, Sliding Window, Prefix Sum 2024-09-04 Go Python
1945 Sum of Digits of String After Convert Easy String, Simulation 2024-09-03 Go Python
1383 Maximum Performance of a Team Hard Array, Greedy, Sorting, Heap (Priority Queue) 2024-09-02 Go Python
2022 Convert 1D Array Into 2D Array Easy Array, Matrix, Simulation 2024-09-01 Go Python
0149 Max Points on a Line Hard Array, Hash Table, Math, Geometry 2024-08-31 Go Python
2699 Modify Graph Edge Weights Hard Graph, Heap (Priority Queue), Shortest Path 2024-08-30 Go Python
0014 Longest Common Prefix Easy String, Trie 2024-08-29 Go Python
0052 N-Queens II Hard Backtracking 2024-08-28 Go Python
0030 Substring with Concatenation of All Words Hard Hash Table, String, Sliding Window 2024-08-27 Go Python
0590 N-ary Tree Postorder Traversal Easy Stack, Tree, Depth-First Search 2024-08-26 Go Python
0145 Binary Tree Postorder Traversal Easy Stack, Tree, Depth-First Search, Binary Tree 2024-08-25 Go Python
0564 Find the Closest Palindrome Hard Math, String 2024-08-24 Go Python
0060 Permutation Sequence Hard Math, Recursion 2024-08-23 Go Python
0476 Number Complement Easy Bit Manipulation 2024-08-22 Go Python
0664 Strange Printer Hard String, Dynamic Programming 2024-08-21 Go Python
0051 N-Queens Hard Array, Backtracking 2024-08-20 Go Python
0013 Roman to Integer Easy Hash Table, Math, String 2024-08-19 Go Python
0136 Single Number Easy Array, Bit Manipulation 2024-08-18 Go Python
0367 Valid Perfect Square Easy Math, Binary Search 2024-08-17 Go Python
0745 Prefix and Suffix Search Hard Array, Hash Table, String, Design, Trie 2024-08-16 Go Python
0860 Lemonade Change Easy Array, Greedy 2024-08-15 Go Python
0719 Find K-th Smallest Pair Distance Hard Array, Two Pointers, Binary Search, Sorting 2024-08-14 Go Python
0733 Flood Fill Easy Array, Depth-First Search, Breadth-First Search, Matrix 2024-08-13 Go Python
0778 Swim in Rising Water Hard Array, Binary Search, Depth-First Search, Breadth-First Search, Union Find, Heap (Priority Queue), Matrix 2024-08-12 Go Python
1568 Minimum Number of Days to Disconnect Island Hard Array, Depth-First Search, Breadth-First Search, Matrix, Strongly Connected Component 2024-08-11 Go
0009 Palindrome Number Easy Math 2024-08-10 Go Python
2129 Capitalize the Title Easy String 2024-08-09 Go
0724 Find Pivot Index Easy Array, Prefix Sum 2024-08-08 Go Python
0303 Range Sum Query - Immutable Easy Array, Design, Prefix Sum 2024-08-07 Go
0084 Largest Rectangle in Histogram Hard Array, Stack, Monotonic Stack 2024-08-06 Go
2053 Kth Distinct String in an Array Easy Array, Hash Table, String, Counting 2024-08-05 Go
1827 Minimum Operations to Make the Array Increasing Easy Array, Greedy 2024-08-04 Go
1460 Make Two Arrays Equal by Reversing Subarrays Easy Array, Hash Table, Sorting 2024-08-03 Go
0315 Count of Smaller Numbers After Self Hard Array, Binary Search, Divide and Conquer, Binary Indexed Tree, Segment Tree, Merge Sort, Ordered Set 2024-08-02 Go
3232 Find if Digit Game Can Be Won Easy Array, Math 2024-08-01 Go
2678 Number of Senior Citizens Easy Array, String 2024-08-01 Go
1105 Filling Bookcase Shelves Medium Array, Dynamic Programming 2024-07-31 Go
1653 Minimum Deletions to Make String Balanced Medium String, Dynamic Programming, Stack 2024-07-30 Go
1395 Count Number of Teams Medium Array, Dynamic Programming, Binary Indexed Tree 2024-07-29 Go
2045 Second Minimum Time to Reach Destination Hard Breadth-First Search, Graph, Shortest Path 2024-07-28 Go
2976 Minimum Cost to Convert String I Medium Array, String, Graph, Shortest Path 2024-07-27 Go
1334 Find the City With the Smallest Number of Neighbors at a Threshold Distance Medium Dynamic Programming, Graph, Shortest Path 2024-07-26 Go
0123 Best Time to Buy and Sell Stock III Hard Array, Dynamic Programming 2024-07-25 Go
2191 Sort the Jumbled Numbers Medium Array, Sorting 2024-07-24 Go
1636 Sort Array by Increasing Frequency Easy Array, Hash Table, Sorting 2024-07-23 Go
2418 Sort the People Easy Array, Hash Table, String, Sorting 2024-07-22 Go
2392 Build a Matrix With Conditions Hard Array, Graph, Topological Sort, Matrix 2024-07-21 Go
1605 Find Valid Matrix Given Row and Column Sums Medium Array, Greedy, Matrix 2024-07-20 Go
1380 Lucky Numbers in a Matrix Easy Array, Matrix 2024-07-19 Go
1530 Number of Good Leaf Nodes Pairs Medium Tree, Depth-First Search, Binary Tree 2024-07-18 Go
1110 Delete Nodes And Return Forest Medium Array, Hash Table, Tree, Depth-First Search, Binary Tree 2024-07-17 Go
2096 Step-By-Step Directions From a Binary Tree Node to Another Medium String, Tree, Depth-First Search, Binary Tree 2024-07-16 Go
2196 Create Binary Tree From Descriptions Medium Array, Hash Table, Tree, Binary Tree 2024-07-15 Go
0726 Number of Atoms Hard Hash Table, String, Stack, Sorting 2024-07-14 Go
2751 Robot Collisions Hard Array, Stack, Sorting, Simulation 2024-07-13 Go
1717 Maximum Score From Removing Substrings Medium String, Stack, Greedy 2024-07-12 Go
1190 Reverse Substrings Between Each Pair of Parentheses Medium String, Stack 2024-07-11 Go
1598 Crawler Log Folder Easy Array, String, Stack 2024-07-10 Go
1701 Average Waiting Time Medium Array, Simulation 2024-07-09 Go
1823 Find the Winner of the Circular Game Medium Array, Math, Recursion, Queue, Simulation 2024-07-08 Go
1518 Water Bottles Easy Math, Simulation 2024-07-07 Go
2582 Pass the Pillow Easy Math, Simulation 2024-07-06 Go
2058 Find the Minimum and Maximum Number of Nodes Between Critical Points Medium Linked List 2024-07-05 Go
2181 Merge Nodes in Between Zeros Medium Linked List, Simulation 2024-07-04 Go
1509 Minimum Difference Between Largest and Smallest Value in Three Moves Medium Array, Greedy, Sorting 2024-07-03 Go
2215 Find the Difference of Two Arrays Easy Array, Hash Table 2024-07-02 Go
1550 Three Consecutive Odds Easy Array 2024-07-01 Go
1579 Remove Max Number of Edges to Keep Graph Fully Traversable Hard Union Find, Graph 2024-06-30 Go
2192 All Ancestors of a Node in a Directed Acyclic Graph Medium Depth-First Search, Breadth-First Search, Graph, Topological Sort 2024-06-29 Go
2285 Maximum Total Importance of Roads Medium Greedy, Graph, Sorting, Heap (Priority Queue) 2024-06-28 Go
1791 Find Center of Star Graph Easy Graph 2024-06-27 Go
1382 Balance a Binary Search Tree Medium Divide and Conquer, Greedy, Tree, Depth-First Search, Binary Search Tree, Binary Tree 2024-06-26 Go
1038 Binary Search Tree to Greater Sum Tree Medium Tree, Depth-First Search, Binary Search Tree, Binary Tree 2024-06-25 Go
0995 Minimum Number of K Consecutive Bit Flips Hard Array, Bit Manipulation, Queue, Sliding Window, Prefix Sum 2024-06-24 Go
1438 Longest Continuous Subarray With Absolute Diff Less Than or Equal to Limit Medium Array, Queue, Sliding Window, Heap (Priority Queue), Ordered Set, Monotonic Queue 2024-06-23 Go
1248 Count Number of Nice Subarrays Medium Array, Hash Table, Math, Sliding Window 2024-06-22 Go
1052 Grumpy Bookstore Owner Medium Array, Sliding Window 2024-06-21 Go
1552 Magnetic Force Between Two Balls Medium Array, Binary Search, Sorting 2024-06-20 Go
1482 Minimum Number of Days to Make m Bouquets Medium Array, Binary Search 2024-06-19 Go
0826 Most Profit Assigning Work Medium Array, Two Pointers, Binary Search, Greedy, Sorting 2024-06-18 Go
0633 Sum of Square Numbers Medium Math, Two Pointers, Binary Search 2024-06-17 Go
0330 Patching Array Hard Array, Greedy 2024-06-16 Go
0502 IPO Hard Array, Greedy, Sorting, Heap (Priority Queue) 2024-06-15 Go
0945 Minimum Increment to Make Array Unique Medium Array, Greedy, Sorting, Counting 2024-06-14 Go
2037 Minimum Number of Moves to Seat Everyone Easy Array, Greedy, Sorting 2024-06-13 Go
0148 Sort List Medium Linked List, Two Pointers, Divide and Conquer, Sorting, Merge Sort 2024-06-12 Go
1122 Relative Sort Array Easy Array, Hash Table, Sorting, Counting Sort 2024-06-11 Go
1051 Height Checker Easy Array, Sorting, Counting Sort 2024-06-10 Go
0974 Subarray Sums Divisible by K Medium Array, Hash Table, Prefix Sum 2024-06-09 Go Python
0523 Continuous Subarray Sum Medium Array, Hash Table, Math, Prefix Sum 2024-06-08 Go
0648 Replace Words Medium Array, Hash Table, String, Trie 2024-06-07 Go
0846 Hand of Straights Medium Array, Hash Table, Greedy, Sorting 2024-06-06 Go
0350 Intersection of Two Arrays II Easy Array, Hash Table, Two Pointers, Binary Search, Sorting 2024-06-05 Go
1002 Find Common Characters Easy Array, Hash Table, String 2024-06-05 Go
0409 Longest Palindrome Easy Hash Table, String, Greedy 2024-06-04 Go
0392 Is Subsequence Easy Two Pointers, String, Dynamic Programming 2024-06-03 Go
2486 Append Characters to String to Make Subsequence Medium Two Pointers, String, Greedy 2024-06-03 Go
0344 Reverse String Easy Two Pointers, String 2024-06-02 Go
3110 Score of a String Easy String 2024-06-01 Go
0260 Single Number III Medium Array, Bit Manipulation 2024-05-31 Go
1442 Count Triplets That Can Form Two Arrays of Equal XOR Medium Array, Hash Table, Math, Bit Manipulation, Prefix Sum 2024-05-30 Go
1404 Number of Steps to Reduce a Number in Binary Representation to One Medium String, Bit Manipulation 2024-05-29 Go
1208 Get Equal Substrings Within Budget Medium String, Binary Search, Sliding Window, Prefix Sum 2024-05-28 Go
1608 Special Array With X Elements Greater Than or Equal X Easy Array, Binary Search, Sorting 2024-05-27 Go
0552 Student Attendance Record II Hard Dynamic Programming 2024-05-26 Go
0551 Student Attendance Record I Easy String 2024-05-26 Go
0140 Word Break II Hard Array, Hash Table, String, Dynamic Programming, Backtracking, Trie, Memoization 2024-05-25 Go
0139 Word Break Medium Array, Hash Table, String, Dynamic Programming, Trie, Memoization 2024-05-25 Go
1255 Maximum Score Words Formed by Letters Hard Array, String, Dynamic Programming, Backtracking, Bit Manipulation, Bitmask 2024-05-24 Go
2597 The Number of Beautiful Subsets Medium Array, Dynamic Programming, Backtracking, Sorting 2024-05-23 Go
0131 Palindrome Partitioning Medium String, Dynamic Programming, Backtracking 2024-05-22 Go
1982 Find Array Given Subset Sums Hard Array, Divide and Conquer 2024-05-21 Go
1863 Sum of All Subset XOR Totals Easy Array, Math, Backtracking, Bit Manipulation, Combinatorics, Enumeration 2024-05-20 Go Python
3068 Find the Maximum Sum of Node Values Hard Array, Dynamic Programming, Greedy, Bit Manipulation, Tree, Sorting 2024-05-19 Go
0979 Distribute Coins in Binary Tree Medium Tree, Depth-First Search, Binary Tree 2024-05-18 Go
1325 Delete Leaves With a Given Value Medium Tree, Depth-First Search, Binary Tree 2024-05-17 Go
2331 Evaluate Boolean Binary Tree Easy Tree, Depth-First Search, Binary Tree 2024-05-16 Go
2812 Find the Safest Path in a Grid Medium Array, Binary Search, Breadth-First Search, Union Find, Matrix 2024-05-15 Go
1219 Path with Maximum Gold Medium Array, Backtracking, Matrix 2024-05-14 Go
0861 Score After Flipping Matrix Medium Array, Greedy, Bit Manipulation, Matrix 2024-05-13 Go
2373 Largest Local Values in a Matrix Easy Array, Matrix 2024-05-12 Go
0857 Minimum Cost to Hire K Workers Hard Array, Greedy, Sorting, Heap (Priority Queue) 2024-05-11 Go
0786 K-th Smallest Prime Fraction Medium Array, Two Pointers, Binary Search, Sorting, Heap (Priority Queue) 2024-05-10 Go
3075 Maximize Happiness of Selected Children Medium Array, Greedy, Sorting 2024-05-09 Go
0506 Relative Ranks Easy Array, Sorting, Heap (Priority Queue) 2024-05-08 Go
2816 Double a Number Represented as a Linked List Medium Linked List, Math, Stack 2024-05-07 Go
2487 Remove Nodes From Linked List Medium Linked List, Stack, Recursion, Monotonic Stack 2024-05-06 Go
0237 Delete Node in a Linked List Medium Linked List 2024-05-05 Go
0881 Boats to Save People Medium Array, Two Pointers, Greedy, Sorting 2024-05-04 Go
0165 Compare Version Numbers Medium Two Pointers, String 2024-05-03 Go
2441 Largest Positive Integer That Exists With Its Negative Easy Array, Hash Table, Two Pointers, Sorting 2024-05-02 Go
2000 Reverse Prefix of Word Easy Two Pointers, String 2024-05-01 Go
1915 Number of Wonderful Substrings Medium Hash Table, String, Bit Manipulation, Prefix Sum 2024-04-30 Go
2997 Minimum Number of Operations to Make Array XOR Equal to K Medium Array, Bit Manipulation 2024-04-29 Go
0834 Sum of Distances in Tree Hard Dynamic Programming, Tree, Depth-First Search, Graph 2024-04-28 Go
0514 Freedom Trail Hard String, Dynamic Programming, Depth-First Search, Breadth-First Search 2024-04-27 Go
1289 Minimum Falling Path Sum II Hard Array, Dynamic Programming, Matrix 2024-04-26 Go
2370 Longest Ideal Subsequence Medium Hash Table, String, Dynamic Programming 2024-04-25 Go
1137 N-th Tribonacci Number Easy Math, Dynamic Programming, Memoization 2024-04-24 Go
0310 Minimum Height Trees Medium Depth-First Search, Breadth-First Search, Graph, Topological Sort 2024-04-23 Go
0752 Open the Lock Medium Array, Hash Table, String, Breadth-First Search 2024-04-22 Go
1971 Find if Path Exists in Graph Easy Depth-First Search, Breadth-First Search, Union Find, Graph 2024-04-21 Go
1992 Find All Groups of Farmland Medium Array, Depth-First Search, Breadth-First Search, Matrix 2024-04-20 Go
0220 Contains Duplicate III Hard Array, Sliding Window, Sorting, Bucket Sort, Ordered Set 2024-04-19 Go
0463 Island Perimeter Easy Array, Depth-First Search, Breadth-First Search, Matrix 2024-04-18 Go
0988 Smallest String Starting From Leaf Medium String, Tree, Depth-First Search, Binary Tree 2024-04-17 Go
0623 Add One Row to Tree Medium Tree, Depth-First Search, Breadth-First Search, Binary Tree 2024-04-16 Go
0129 Sum Root to Leaf Numbers Medium Tree, Depth-First Search, Binary Tree 2024-04-15 Go
0404 Sum of Left Leaves Easy Tree, Depth-First Search, Breadth-First Search, Binary Tree 2024-04-14 Go
0085 Maximal Rectangle Hard Array, Dynamic Programming, Stack, Matrix, Monotonic Stack 2024-04-13 Go
0221 Maximal Square Medium Array, Dynamic Programming, Matrix 2024-04-13 Go
0219 Contains Duplicate II Easy Array, Hash Table, Sliding Window 2024-04-12 Go
0402 Remove K Digits Medium String, Stack, Greedy, Monotonic Stack 2024-04-11 Go
0496 Next Greater Element I Easy Array, Hash Table, Stack, Monotonic Stack 2024-04-11 Go
0950 Reveal Cards In Increasing Order Medium Array, Queue, Sorting, Simulation 2024-04-10 Go
2073 Time Needed to Buy Tickets Easy Array, Queue, Simulation 2024-04-09 Go
0978 Longest Turbulent Subarray Medium Array, Dynamic Programming, Sliding Window 2024-04-08 Go
0678 Valid Parenthesis String Medium String, Dynamic Programming, Stack, Greedy 2024-04-07 Go
0032 Longest Valid Parentheses Hard String, Dynamic Programming, Stack 2024-04-06 Go
1544 Make The String Great Easy String, Stack 2024-04-05 Go
0212 Word Search II Hard Array, String, Backtracking, Trie, Matrix 2024-04-05 Go
1614 Maximum Nesting Depth of the Parentheses Easy String, Stack 2024-04-04 Go
0079 Word Search Medium Array, String, Backtracking, Matrix 2024-04-03 Go
0205 Isomorphic Strings Easy Hash Table, String 2024-04-02 Go
0058 Length of Last Word Easy String 2024-04-01 Go
0765 Couples Holding Hands Hard Greedy, Depth-First Search, Breadth-First Search, Union Find, Graph 2024-03-31 Go
0268 Missing Number Easy Array, Hash Table, Math, Binary Search, Bit Manipulation, Sorting 2024-03-31 Go
2444 Count Subarrays With Fixed Bounds Hard Array, Queue, Sliding Window, Monotonic Queue 2024-03-31 Go
0004 Median of Two Sorted Arrays Hard Array, Binary Search, Divide and Conquer 2024-03-30 Go
0992 Subarrays with K Different Integers Hard Array, Hash Table, Sliding Window, Counting 2024-03-29 Go
2962 Count Subarrays Where Max Element Appears at Least K Times Medium Array, Sliding Window 2024-03-29 Go
2958 Length of Longest Subarray With at Most K Frequency Medium Array, Hash Table, Sliding Window 2024-03-28 Go
2302 Count Subarrays With Score Less Than K Hard Array, Binary Search, Sliding Window, Prefix Sum 2024-03-27 Go
0713 Subarray Product Less Than K Medium Array, Sliding Window 2024-03-27 Go
0041 First Missing Positive Hard Array, Hash Table 2024-03-26 Go
0442 Find All Duplicates in an Array Medium Array, Hash Table 2024-03-25 Go
0287 Find the Duplicate Number Medium Array, Two Pointers, Binary Search, Bit Manipulation 2024-03-24 Go
0143 Reorder List Medium Linked List, Two Pointers, Stack, Recursion 2024-03-23 Go
0234 Palindrome Linked List Easy Linked List, Two Pointers, Stack, Recursion 2024-03-22 Go
0010 Regular Expression Matching Hard String, Dynamic Programming, Recursion 2024-03-21 Go
1669 Merge In Between Linked Lists Medium Linked List 2024-03-20 Go
0621 Task Scheduler Medium Array, Hash Table, Greedy, Sorting, Heap (Priority Queue), Counting 2024-03-19 Go
2365 Task Scheduler II Medium Array, Hash Table, Simulation 2024-03-19 Go
0452 Minimum Number of Arrows to Burst Balloons Medium Array, Greedy, Sorting 2024-03-18 Go
0057 Insert Interval Medium Array 2024-03-17 Go
0056 Merge Intervals Medium Array, Sorting 2024-03-17 Go
0525 Contiguous Array Medium Array, Hash Table, Prefix Sum 2024-03-16 Go
0238 Product of Array Except Self Medium Array, Prefix Sum 2024-03-15 Go
0930 Binary Subarrays With Sum Medium Array, Hash Table, Sliding Window, Prefix Sum 2024-03-14 Go
2485 Find the Pivot Integer Easy Math, Prefix Sum 2024-03-13 Go
1171 Remove Zero Sum Consecutive Nodes from Linked List Medium Hash Table, Linked List 2024-03-12 Go
0791 Custom Sort String Medium Hash Table, String, Sorting 2024-03-11 Go
0349 Intersection of Two Arrays Easy Array, Hash Table, Two Pointers, Binary Search, Sorting 2024-03-10 Go
2540 Minimum Common Value Easy Array, Hash Table, Two Pointers, Binary Search 2024-03-09 Go
3005 Count Elements With Maximum Frequency Easy Array, Hash Table, Counting 2024-03-08 Go
0876 Middle of the Linked List Easy Linked List, Two Pointers 2024-03-07 Go
0141 Linked List Cycle Easy Hash Table, Linked List, Two Pointers 2024-03-06 Go
1750 Minimum Length of String After Deleting Similar Ends Medium Two Pointers, String 2024-03-05 Go
0948 Bag of Tokens Medium Array, Two Pointers, Greedy, Sorting 2024-03-04 Go
0019 Remove Nth Node From End of List Medium Linked List, Two Pointers 2024-03-03 Go
0977 Squares of a Sorted Array Easy Array, Two Pointers, Sorting 2024-03-02 Go
2864 Maximum Odd Binary Number Easy Math, String, Greedy 2024-03-01 Go
1609 Even Odd Tree Medium Tree, Breadth-First Search, Binary Tree 2024-02-29 Go
0513 Find Bottom Left Tree Value Medium Tree, Depth-First Search, Breadth-First Search, Binary Tree 2024-02-28 Go
0647 Palindromic Substrings Medium String, Dynamic Programming 2024-02-28 Go
0543 Diameter of Binary Tree Easy Tree Depth-First Search Binary Tree 2024-02-27 Go
0121 Best Time to Buy and Sell Stock Easy Array, Dynamic Programming 2024-02-27 Go
0053 Maximum Subarray Medium Array, Divide and Conquer, Dynamic Programming 2024-02-27 Go
0516 Longest Palindromic Subsequence Medium String, Dynamic Programming 2024-02-26 Go
0100 Same Tree Easy Tree, Depth-First Search, Breadth-First Search, Binary Tree 2024-02-26 Go Python
2709 Greatest Common Divisor Traversal Hard Array, Math, Union Find, Number Theory 2024-02-25 Go
0322 Coin Change Medium Array, Dynamic Programming, Breadth-First Search 2024-02-25 Go
0064 Minimum Path Sum Medium Array, Dynamic Programming, Matrix 2024-02-25 Go
0005 Longest Palindromic Substring Medium String, Dynamic Programming 2024-02-24 Go
2092 Find All People With Secret Hard Depth-First Search, Breadth-First Search, Union Find, Graph, Sorting 2024-02-24 Go
0787 Cheapest Flights Within K Stops Medium Dynamic Programming, Depth-First Search, Breadth-First Search, Graph, Heap (Priority Queue), Shortest Path 2024-02-23 Go
1143 Longest Common Subsequence Medium String, Dynamic Programming 2024-02-22 Go
0338 Counting Bits Easy Dynamic Programming, Bit Manipulation 2024-02-22 Go Python
0191 Number of 1 Bits Easy Divide and Conquer, Bit Manipulation 2024-02-22 Go
0190 Reverse Bits Easy Divide and Conquer, Bit Manipulation 2024-02-22 Go
0300 Longest Increasing Subsequence Medium Array, Binary Search, Dynamic Programming 2024-02-21 Go Python
0198 House Robber Medium Array, Dynamic Programming 2024-02-21 Go Python
0063 Unique Paths II Medium Array, Dynamic Programming, Matrix 2024-02-21 Go
0062 Unique Paths Medium Math, Dynamic Programming, Combinatorics 2024-02-21 Go
1091 Shortest Path in Binary Matrix Medium Array, Breadth-First Search, Matrix 2024-02-20 Go
0695 Max Area of Island Medium Array, Depth-First Search, Breadth-First Search, Union Find, Matrix 2024-02-20 Go
0133 Clone Graph Medium Hash Table, Depth-First Search, Breadth-First Search, Graph 2024-02-20 Go
1046 Last Stone Weight Easy Array, Heap (Priority Queue) 2024-02-19 Go
0973 K Closest Points to Origin Medium Array, Math, Divide and Conquer, Geometry, Sorting, Heap (Priority Queue), Quickselect 2024-02-19 Go
0146 LRU Cache Medium Hash Table, Linked List, Design, Doubly-Linked List 2024-02-19 Go Python
0703 Kth Largest Element in a Stream Easy Tree, Design, Binary Search Tree, Heap (Priority Queue), Binary Tree, Data Stream 2024-02-19 Go Python
0705 Design HashSet Easy Array, Hash Table, Linked List, Design, Hash Function 2024-02-19 Go
0706 Design HashMap Easy Array, Hash Table, Linked List, Design, Hash Function 2024-02-19 Go
0217 Contains Duplicate Easy Array, Hash Table, Sorting 2024-02-19 Go Python
0112 Path Sum Easy Tree, Depth-First Search, Breadth-First Search, Binary Tree 2024-02-18 Go Python
0078 Subsets Medium Array, Backtracking, Bit Manipulation 2024-02-18 Go
0039 Combination Sum Medium Array, Backtracking 2024-02-18 Go
0701 Insert into a Binary Search Tree Medium Tree, Binary Search Tree, Binary Tree 2024-02-18 Go
0700 Search in a Binary Search Tree Easy Tree, Binary Search Tree, Binary Tree 2024-02-18 Go
0450 Delete Node in a BST Medium Tree, Binary Search Tree, Binary Tree 2024-02-18 Go
0235 Lowest Common Ancestor of a Binary Search Tree Medium Tree, Depth-First Search, Binary Search Tree, Binary Tree 2024-02-18 Go
0230 Kth Smallest Element in a BST Medium Tree, Depth-First Search, Binary Search Tree, Binary Tree 2024-02-17 Go
0105 Construct Binary Tree from Preorder and Inorder Traversal Medium Array, Hash Table, Divide and Conquer, Tree, Binary Tree 2024-02-17 Go
0094 Binary Tree Inorder Traversal Easy Stack, Tree, Depth-First Search, Binary Tree 2024-02-17 Go
0704 Binary Search Easy Array, Binary Search 2024-02-17 Go
0023 Merge k Sorted Lists Hard Linked List, Divide and Conquer, Heap (Priority Queue), Merge Sort 2024-02-16 Go
0912 Sort an Array Medium Array, Divide and Conquer, Sorting, Heap (Priority Queue), Merge Sort, Bucket Sort, Radix Sort, Counting Sort 2024-02-16 Go
0075 Sort Colors Medium Array, Two Pointers, Sorting 2024-02-16 Go
0070 Climbing Stairs Easy Math, Dynamic Programming, Memoization 2024-02-15 Go
0509 Fibonacci Number Easy Math, Dynamic Programming, Recursion, Memoization 2024-02-15 Go
1700 Number of Students Unable to Eat Lunch Easy Array, Stack, Queue, Simulation 2024-02-14 Go
0021 Merge Two Sorted Lists Easy Linked List, Recursion 2024-02-14 Go
1472 Design Browser History Medium Array, Linked List, Stack, Design, Doubly-Linked List, Data Stream 2024-02-14 Go
0707 Design Linked List Medium Linked List, Design 2024-02-14 Go Python
1470 Shuffle the Array Easy Array 2024-02-13 Go
0027 Remove Element Easy Array, Two Pointers 2024-02-13 Go
0026 Remove Duplicates from Sorted Array Easy Array, Two Pointers 2024-02-13 Go
1632 Rank Transform of a Matrix Hard Array, Union Find, Graph, Topological Sort, Sorting, Matrix 2024-02-12 Go
0273 Integer to English Words Hard Math, String, Recursion 2024-02-11 Go
0332 Reconstruct Itinerary Hard Depth-First Search, Graph, Eulerian Circuit 2024-02-10 Go
1028 Recover a Tree From Preorder Traversal Hard String, Tree, Depth-First Search, Binary Tree 2024-02-10 Go Python
0649 Dota2 Senate Medium String, Greedy, Queue 2024-02-09 Go
0224 Basic Calculator Hard Math, String, Stack, Recursion 2024-02-09 Go
2551 Put Marbles in Bags Hard Array, Greedy, Sorting, Heap (Priority Queue) 2024-02-09 Go Python
0432 All O`one Data Structure Hard Hash Table, Linked List, Design, Doubly-Linked List 2024-02-08 Go Python
0025 Reverse Nodes in k-Group Hard Linked List, Recursion 2024-02-08 Go
0076 Minimum Window Substring Hard Hash Table, String, Sliding Window 2024-02-08 Go
1093 Statistics from a Large Sample Medium Array, Math, Probability and Statistics 2024-02-07 Go
0295 Find Median from Data Stream Hard Two Pointers, Design, Sorting, Heap (Priority Queue), Data Stream 2024-02-07 Go Python
0239 Sliding Window Maximum Hard Array, Queue, Sliding Window, Heap (Priority Queue), Monotonic Queue 2024-02-06 Go Python
0355 Design Twitter Medium Hash Table, Linked List, Design, Heap (Priority Queue) 2024-02-05 Go
0208 Implement Trie (Prefix Tree) Medium Hash Table, String, Design, Trie 2024-02-04 Go
0225 Implement Stack using Queues Easy Stack, Design, Queue 2024-02-04 Go
0589 N-ary Tree Preorder Traversal Easy Stack, Tree, Depth-First Search 2024-02-03 Go
0429 N-ary Tree Level Order Traversal Medium Tree, Breadth-First Search 2024-02-03 Go
0387 First Unique Character in a String Easy Hash Table, String, Queue, Counting 2024-02-03 Go
0037 Sudoku Solver Hard Array, Hash Table, Backtracking, Matrix 2024-02-02 Go
0688 Knight Probability in Chessboard Medium Dynamic Programming 2024-02-01 Go
0746 Min Cost Climbing Stairs Easy Array, Dynamic Programming 2024-01-31 Go
0743 Network Delay Time Medium Depth-First Search, Breadth-First Search, Graph, Heap (Priority Queue), Shortest Path 2024-01-30 Go
0997 Find the Town Judge Easy Array, Hash Table, Graph 2024-01-29 Go
0207 Course Schedule Medium Depth-First Search, Breadth-First Search, Graph, Topological Sort 2024-01-28 Go
1376 Time Needed to Inform All Employees Medium Tree, Depth-First Search, Breadth-First Search 2024-01-27 Go
0074 Search a 2D Matrix Medium Array, Binary Search, Matrix 2024-01-26 Go
0073 Set Matrix Zeroes Medium Array, Hash Table, Matrix 2024-01-26 Go
0867 Transpose Matrix Easy Array, Matrix, Simulation 2024-01-25 Go
0994 Rotting Oranges Medium Array, Breadth-First Search, Matrix 2024-01-25 Go
0200 Number of Islands Medium Array, Depth-First Search, Breadth-First Search, Union Find, Matrix 2024-01-24 Go
0098 Validate Binary Search Tree Medium Tree, Depth-First Search, Binary Search Tree, Binary Tree 2024-01-23 Go Python
0222 Count Complete Tree Nodes Easy Binary Search, Bit Manipulation, Tree, Binary Tree 2024-01-22 Go
0199 Binary Tree Right Side View Medium Tree, Depth-First Search, Breadth-First Search, Binary Tree 2024-01-21 Go
0102 Binary Tree Level Order Traversal Medium Tree, Breadth-First Search, Binary Tree 2024-01-20 Go
0104 Maximum Depth of Binary Tree Easy Tree, Depth-First Search, Breadth-First Search, Binary Tree 2024-01-19 Go Python
0034 Find First and Last Position of Element in Sorted Array Medium Array, Binary Search 2024-01-18 Go
0215 Kth Largest Element in an Array Medium Array, Divide and Conquer, Sorting, Heap (Priority Queue), Quickselect 2024-01-17 Go
0232 Implement Queue using Stacks Easy Stack, Design, Queue 2024-01-16 Go
1249 Minimum Remove to Make Valid Parentheses Medium String, Stack 2024-01-15 Go
0020 Valid Parentheses Easy String, Stack 2024-01-14 Go
0142 Linked List Cycle II Medium Hash Table, Linked List, Two Pointers 2024-01-13 Go
0430 Flatten a Multilevel Doubly Linked List Medium Linked List, Depth-First Search, Doubly-Linked List 2024-01-12 Go
0092 Reverse Linked List II Medium Linked List 2024-01-11 Go
0206 Reverse Linked List Easy Linked List, Recursion 2024-01-10 Go
0680 Valid Palindrome II Easy Two Pointers, String, Greedy 2024-01-09 Go
0125 Valid Palindrome Easy Two Pointers, String 2024-01-09 Go
0003 Longest Substring Without Repeating Characters Medium Hash Table, String, Sliding Window 2024-01-08 Go
0844 Backspace String Compare Easy Two Pointers, String, Stack, Simulation 2024-01-07 Go
0042 Trapping Rain Water Hard Array, Two Pointers, Dynamic Programming, Stack 2024-01-06 Go
0011 Container With Most Water Medium Array, Two Pointers, Greedy 2024-01-05 Go
0001 Two Sum Easy Array, Hash Table 2024-01-04 Go

About

Data Structures and Algorithms

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published