Skip to content

mrbelka12000/leetcode_training

Repository files navigation

leetcode_training

LeetCode Stats

Collection of leetcode problems solved and noted by me (list of problems not full)

Statistics by months and years:

plot

List of problems(554):

N Title Difficulty Link Code
2 Add Two Numbers Medium Link Code
5 Longest Palindromic Substring Medium Link Code
12 Integer to Roman Medium Link Code
16 3Sum Closest Medium Link Code
17 Letter Combinations of a Phone Number Medium Link Code
18 4Sum Medium Link Code
22 Generate Parentheses Medium Link Code
23 Merge k Sorted Lists Hard Link Code
24 Swap Nodes in Pairs Medium Link Code
25 Reverse Nodes in k-Group Hard Link Code
30 Substring with Concatenation of All Words Hard Link Code
31 Next Permutation Medium Link Code
32 Longest Valid Parentheses Hard Link Code
37 Sudoku Solver Hard Link Code
39 Combination Sum Medium Link Code
40 Combination Sum II Medium Link Code
42 Trapping Rain Water Hard Link Code
45 Jump Game II Medium Link Code
46 Permutations Medium Link Code
47 Permutations II Medium Link Code
48 Rotate Image Medium Link Code
51 N-Queens Hard Link Code
52 N-Queens II Hard Link Code
54 Spiral Matrix Medium Link Code
59 Spiral Matrix II Medium Link Code
61 Rotate List Medium Link Code
62 Unique Paths Medium Link Code
63 Unique Paths II Medium Link Code
64 Minimum Path Sum Medium Link Code
68 Text Justification Hard Link Code
71 Simplify Path Medium Link Code
72 Edit Distance Medium Link Code
76 Minimum Window Substring Hard Link Code
77 Combinations Medium Link Code
79 Word Search Medium Link Code
81 Search in Rotated Sorted Array II Medium Link Code
82 Remove Duplicates from Sorted List II Medium Link Code
84 Largest Rectangle in Histogram Hard Link Code
92 Reverse Linked List II Medium Link Code
93 Restore IP Addresses Medium Link Code
97 Interleaving String Medium Link Code
98 Validate Binary Search Tree Medium Link Code
102 Binary Tree Level Order Traversal Medium Link Code
103 Binary Tree Zigzag Level Order Traversal Medium Link Code
105 Construct Binary Tree from Preorder and Inorder Traversal Medium Link Code
106 Construct Binary Tree from Inorder and Postorder Traversal Medium Link Code
107 Binary Tree Level Order Traversal II Medium Link Code
108 Convert Sorted Array to Binary Search Tree Easy Link Code
109 Convert Sorted List to Binary Search Tree Medium Link Code
110 Balanced Binary Tree Easy Link Code
112 Path Sum Easy Link Code
113 Path Sum II Medium Link Code
114 Flatten Binary Tree to Linked List Medium Link Code
116 Populating Next Right Pointers in Each Node Medium Link Code
117 Populating Next Right Pointers in Each Node II Medium Link Code
124 Binary Tree Maximum Path Sum Hard Link Code
127 Word Ladder Hard Link Code
129 Sum Root to Leaf Numbers Medium Link Code
130 Surrounded Regions Medium Link Code
131 Palindrome Partitioning Medium Link Code
133 Clone Graph Medium Link Code
134 Gas Station Medium Link Code
135 Candy Hard Link Code
138 Copy List with Random Pointer Medium Link Code
139 Word Break Medium Link Code
140 Word Break II Hard Link Code
141 Linked List Cycle Easy Link Code
142 Linked List Cycle II Medium Link Code
143 Reorder List Medium Link Code
146 LRU Cache Medium Link Code
148 Sort List Medium Link Code
150 Evaluate Reverse Polish Notation Medium Link Code
154 Find Minimum in Rotated Sorted Array II Hard Link Code
159 Longest Substring with At Most Two Distinct Characters Medium Link Code
160 Intersection of Two Linked Lists Easy Link Code
161 One Edit Distance Medium Link Code
164 Maximum Gap Medium Link Code
170 Two Sum III - Data structure design Easy Link Code
172 Factorial Trailing Zeroes Medium Link Code
173 Binary Search Tree Iterator Medium Link Code
175 Combine Two Tables Easy Link Code
176 Second Highest Salary Medium Link Code
178 Rank Scores Medium Link Code
179 Largest Number Medium Link Code
186 Reverse Words in a String II Medium Link Code
187 Repeated DNA Sequences Medium Link Code
188 Best Time to Buy and Sell Stock IV Hard Link Code
204 Count Primes Medium Link Code
207 Course Schedule Medium Link Code
208 Implement Trie (Prefix Tree) Medium Link Code
210 Course Schedule II Medium Link Code
211 Design Add and Search Words Data Structure Medium Link Code
212 Word Search II Hard Link Code
216 Combination Sum III Medium Link Code
224 Basic Calculator Hard Link Code
227 Basic Calculator II Medium Link Code
228 Summary Ranges Easy Link Code
229 Majority Element II Medium Link Code
230 Kth Smallest Element in a BST Medium Link Code
235 Lowest Common Ancestor of a Binary Search Tree Medium Link Code
236 Lowest Common Ancestor of a Binary Tree Medium Link Code
237 Delete Node in a Linked List Medium Link Code
239 Sliding Window Maximum Hard Link Code
240 Search a 2D Matrix II Medium Link Code
246 Strobogrammatic Number Easy Link Code
247 Strobogrammatic Number II Medium Link Code
250 Count Univalue Subtrees Medium Link Code
252 Meeting Rooms Easy Link Code
253 Meeting Rooms II Medium Link Code
254 Factor Combinations Medium Link Code
256 Paint House Medium Link Code
257 Binary Tree Paths Easy Link Code
259 3Sum Smaller Medium Link Code
261 Graph Valid Tree Medium Link Code
267 Palindrome Permutation II Medium Link Code
270 Closest Binary Search Tree Value Easy Link Code
271 Encode and Decode Strings Medium Link Code
272 Closest Binary Search Tree Value II Hard Link Code
274 H-Index Medium Link Code
282 Expression Add Operators Hard Link Code
284 Peeking Iterator Medium Link Code
286 Walls and Gates Medium Link Code
289 Game of Life Medium Link Code
290 Word Pattern Easy Link Code
295 Find Median from Data Stream Hard Link Code
297 Serialize and Deserialize Binary Tree Hard Link Code
300 Longest Increasing Subsequence Medium Link Code
302 Smallest Rectangle Enclosing Black Pixels Hard Link Code
307 Range Sum Query - Mutable Medium Link Code
308 Range Sum Query 2D - Mutable Hard Link Code
314 Binary Tree Vertical Order Traversal Medium Link Code
316 Remove Duplicate Letters Medium Link Code
322 Coin Change Medium Link Code
323 Number of Connected Components in an Undirected Graph Medium Link Code
329 Longest Increasing Path in a Matrix Hard Link Code
340 Longest Substring with At Most K Distinct Characters Medium Link Code
346 Moving Average from Data Stream Easy Link Code
355 Design Twitter Medium Link Code
359 Logger Rate Limiter Easy Link Code
366 Find Leaves of Binary Tree Medium Link Code
368 Largest Divisible Subset Medium Link Code
369 Plus One Linked List Medium Link Code
373 Find K Pairs with Smallest Sums Medium Link Code
377 Combination Sum IV Medium Link Code
378 Kth Smallest Element in a Sorted Matrix Medium Link Code
380 Insert Delete GetRandom O(1) Medium Link Code
384 Shuffle an Array Medium Link Code
386 Lexicographical Numbers Medium Link Code
390 Elimination Game Medium Link Code
397 Integer Replacement Medium Link Code
398 Random Pick Index Medium Link Code
399 Evaluate Division Medium Link Code
404 Sum of Left Leaves Easy Link Code
409 Longest Palindrome Easy Link Code
413 Arithmetic Slices Medium Link Code
416 Partition Equal Subset Sum Medium Link Code
422 Valid Word Square Easy Link Code
424 Longest Repeating Character Replacement Medium Link Code
431 Encode N-ary Tree to Binary Tree Hard Link Code
433 Minimum Genetic Mutation Medium Link Code
436 Find Right Interval Medium Link Code
437 Path Sum III Medium Link Code
441 Arranging Coins Easy Link Code
445 Add Two Numbers II Medium Link Code
446 Arithmetic Slices II - Subsequence Hard Link Code
452 Minimum Number of Arrows to Burst Balloons Medium Link Code
455 Assign Cookies Easy Link Code
460 LFU Cache Hard Link Code
487 Max Consecutive Ones II Medium Link Code
491 Non-decreasing Subsequences Medium Link Code
494 Target Sum Medium Link Code
496 Next Greater Element I Easy Link Code
502 IPO Hard Link Code
503 Next Greater Element II Medium Link Code
506 Relative Ranks Easy Link Code
513 Find Bottom Left Tree Value Medium Link Code
518 Coin Change II Medium Link Code
520 Detect Capital Easy Link Code
525 Contiguous Array Medium Link Code
526 Beautiful Arrangement Medium Link Code
532 K-diff Pairs in an Array Medium Link Code
538 Convert BST to Greater Tree Medium Link Code
539 Minimum Time Difference Medium Link Code
543 Diameter of Binary Tree Easy Link Code
547 Number of Provinces Medium Link Code
551 Student Attendance Record I Easy Link Code
559 Maximum Depth of N-ary Tree Easy Link Code
560 Subarray Sum Equals K Medium Link Code
563 Binary Tree Tilt Easy Link Code
572 Subtree of Another Tree Easy Link Code
575 Distribute Candies Easy Link Code
576 Out of Boundary Paths Medium Link Code
582 Kill Process Medium Link Code
588 Design In-Memory File System Hard Link Code
589 N-ary Tree Preorder Traversal Easy Link Code
590 N-ary Tree Postorder Traversal Easy Link Code
606 Construct String from Binary Tree Medium Link Code
621 Task Scheduler Medium Link Code
622 Design Circular Queue Medium Link Code
623 Add One Row to Tree Medium Link Code
630 Course Schedule III Hard Link Code
636 Exclusive Time of Functions Medium Link Code
641 Design Circular Deque Medium Link Code
646 Maximum Length of Pair Chain Medium Link Code
648 Replace Words Medium Link Code
650 2 Keys Keyboard Medium Link Code
654 Maximum Binary Tree Medium Link Code
655 Print Binary Tree Medium Link Code
658 Find K Closest Elements Medium Link Code
665 Non-decreasing Array Medium Link Code
671 Second Minimum Node In a Binary Tree Easy Link Code
676 Implement Magic Dictionary Medium Link Code
677 Map Sum Pairs Medium Link Code
678 Valid Parenthesis String Medium Link Code
680 Valid Palindrome II Easy Link Code
684 Redundant Connection Medium Link Code
687 Longest Univalue Path Medium Link Code
690 Employee Importance Medium Link Code
692 Top K Frequent Words Medium Link Code
701 Insert into a Binary Search Tree Medium Link Code
702 Search in a Sorted Array of Unknown Size Medium Link Code
703 Kth Largest Element in a Stream Easy Link Code
707 Design Linked List Medium Link Code
708 Insert into a Sorted Circular Linked List Medium Link Code
713 Subarray Product Less Than K Medium Link Code
721 Accounts Merge Medium Link Code
725 Split Linked List in Parts Medium Link Code
728 Self Dividing Numbers Easy Link Code
729 My Calendar I Medium Link Code
739 Daily Temperatures Medium Link Code
740 Delete and Earn Medium Link Code
741 Cherry Pickup Hard Link Code
742 Closest Leaf in a Binary Tree Medium Link Code
743 Network Delay Time Medium Link Code
745 Prefix and Suffix Search Hard Link Code
749 Contain Virus Hard Link Code
759 Employee Free Time Hard Link Code
763 Partition Labels Medium Link Code
767 Reorganize String Medium Link Code
773 Sliding Puzzle Hard Link Code
784 Letter Case Permutation Medium Link Code
785 Is Graph Bipartite? Medium Link Code
786 K-th Smallest Prime Fraction Medium Link Code
787 Cheapest Flights Within K Stops Medium Link Code
790 Domino and Tromino Tiling Medium Link Code
792 Number of Matching Subsequences Medium Link Code
797 All Paths From Source to Target Medium Link Code
802 Find Eventual Safe States Medium Link Code
814 Binary Tree Pruning Medium Link Code
815 Bus Routes Hard Link Code
817 Linked List Components Medium Link Code
818 Race Car Hard Link Code
819 Most Common Word Easy Link Code
821 Shortest Distance to a Character Easy Link Code
826 Most Profit Assigning Work Medium Link Code
834 Sum of Distances in Tree Hard Link Code
840 Magic Squares In Grid Medium Link Code
846 Hand of Straights Medium Link Code
847 Shortest Path Visiting All Nodes Hard Link Code
848 Shifting Letters Medium Link Code
849 Maximize Distance to Closest Person Medium Link Code
853 Car Fleet Medium Link Code
860 Lemonade Change Easy Link Code
863 All Nodes Distance K in Binary Tree Medium Link Code
865 Smallest Subtree with all the Deepest Nodes Medium Link Code
867 Transpose Matrix Easy Link Code
874 Walking Robot Simulation Medium Link Code
875 Koko Eating Bananas Medium Link Code
881 Boats to Save People Medium Link Code
884 Uncommon Words from Two Sentences Easy Link Code
897 Increasing Order Search Tree Easy Link Code
900 RLE Iterator Medium Link Code
905 Sort Array By Parity Easy Link Code
909 Snakes and Ladders Medium Link Code
921 Minimum Add to Make Parentheses Valid Medium Link Code
930 Binary Subarrays With Sum Medium Link Code
931 Minimum Falling Path Sum Medium Link Code
935 Knight Dialer Medium Link Code
938 Range Sum of BST Easy Link Code
941 Valid Mountain Array Easy Link Code
945 Minimum Increment to Make Array Unique Medium Link Code
946 Validate Stack Sequences Medium Link Code
948 Bag of Tokens Medium Link Code
958 Check Completeness of a Binary Tree Medium Link Code
965 Univalued Binary Tree Easy Link Code
967 Numbers With Same Consecutive Differences Medium Link Code
973 K Closest Points to Origin Medium Link Code
974 Subarray Sums Divisible by K Medium Link Code
980 Unique Paths III Hard Link Code
981 Time Based Key-Value Store Medium Link Code
983 Minimum Cost For Tickets Medium Link Code
987 Vertical Order Traversal of a Binary Tree Hard Link Code
988 Smallest String Starting From Leaf Medium Link Code
993 Cousins in Binary Tree Easy Link Code
1002 Find Common Characters Easy Link Code
1008 Construct Binary Search Tree from Preorder Traversal Medium Link Code
1010 Pairs of Songs With Total Durations Divisible by 60 Medium Link Code
1011 Capacity To Ship Packages Within D Days Medium Link Code
1020 Number of Enclaves Medium Link Code
1038 Binary Search Tree to Greater Sum Tree Medium Link Code
1042 Flower Planting With No Adjacent Medium Link Code
1046 Last Stone Weight Easy Link Code
1054 Distant Barcodes Medium Link Code
1062 Longest Repeating Substring Medium Link Code
1079 Letter Tile Possibilities Medium Link Code
1080 Insufficient Nodes in Root to Leaf Paths Medium Link Code
1081 Smallest Subsequence of Distinct Characters Medium Link Code
1091 Shortest Path in Binary Matrix Medium Link Code
1095 Find in Mountain Array Hard Link Code
1100 Find K-Length Substrings With No Repeated Characters Medium Link Code
1101 The Earliest Moment When Everyone Become Friends Medium Link Code
1110 Delete Nodes And Return Forest Medium Link Code
1123 Lowest Common Ancestor of Deepest Leaves Medium Link Code
1128 Number of Equivalent Domino Pairs Easy Link Code
1135 Connecting Cities With Minimum Cost Medium Link Code
1136 Parallel Courses Medium Link Code
1146 Snapshot Array Medium Link Code
1155 Number of Dice Rolls With Target Sum Medium Link Code
1162 As Far from Land as Possible Medium Link Code
1167 Minimum Cost to Connect Sticks Medium Link Code
1171 Remove Zero Sum Consecutive Nodes from Linked List Medium Link Code
1190 Reverse Substrings Between Each Pair of Parentheses Medium Link Code
1197 Minimum Knight Moves Medium Link Code
1198 Find Smallest Common Element in All Rows Medium Link Code
1200 Minimum Absolute Difference Easy Link Code
1213 Intersection of Three Sorted Arrays Easy Link Code
1214 Two Sum BSTs Medium Link Code
1219 Path with Maximum Gold Medium Link Code
1221 Split a String in Balanced Strings Easy Link Code
1222 Queens That Can Attack the King Medium Link Code
1233 Remove Sub-Folders from the Filesystem Medium Link Code
1235 Maximum Profit in Job Scheduling Hard Link Code
1239 Maximum Length of a Concatenated String with Unique Characters Medium Link Code
1248 Count Number of Nice Subarrays Medium Link Code
1254 Number of Closed Islands Medium Link Code
1255 Maximum Score Words Formed by Letters Hard Link Code
1258 Synonymous Sentences Medium Link Code
1265 Print Immutable Linked List in Reverse Medium Link Code
1267 Count Servers that Communicate Medium Link Code
1277 Count Square Submatrices with All Ones Medium Link Code
1281 Subtract the Product and Sum of Digits of an Integer Easy Link Code
1283 Find the Smallest Divisor Given a Threshold Medium Link Code
1284 Minimum Number of Flips to Convert Binary Matrix to Zero Matrix Hard Link Code
1286 Iterator for Combination Medium Link Code
1289 Minimum Falling Path Sum II Hard Link Code
1290 Convert Binary Number in a Linked List to Integer Easy Link Code
1291 Sequential Digits Medium Link Code
1293 Shortest Path in a Grid with Obstacles Elimination Hard Link Code
1296 Divide Array in Sets of K Consecutive Numbers Medium Link Code
1302 Deepest Leaves Sum Medium Link Code
1305 All Elements in Two Binary Search Trees Medium Link Code
1306 Jump Game III Medium Link Code
1314 Matrix Block Sum Medium Link Code
1315 Sum of Nodes with Even-Valued Grandparent Medium Link Code
1324 Print Words Vertically Medium Link Code
1325 Delete Leaves With a Given Value Medium Link Code
1333 Filter Restaurants by Vegan-Friendly, Price and Distance Medium Link Code
1337 The K Weakest Rows in a Matrix Easy Link Code
1338 Reduce Array Size to The Half Medium Link Code
1343 Number of Sub-arrays of Size K and Average Greater than or Equal to Threshold Medium Link Code
1345 Jump Game IV Hard Link Code
1361 Validate Binary Tree Nodes Medium Link Code
1367 Linked List in Binary Tree Medium Link Code
1372 Longest ZigZag Path in a Binary Tree Medium Link Code
1380 Lucky Numbers in a Matrix Easy Link Code
1387 Sort Integers by The Power Value Medium Link Code
1395 Count Number of Teams Medium Link Code
1402 Reducing Dishes Hard Link Code
1405 Longest Happy String Medium Link Code
1414 Find the Minimum Number of Fibonacci Numbers Whose Sum Is K Medium Link Code
1415 The k-th Lexicographical String of All Happy Strings of Length n Medium Link Code
1419 Minimum Number of Frogs Croaking Medium Link Code
1448 Count Good Nodes in Binary Tree Medium Link Code
1457 Pseudo-Palindromic Paths in a Binary Tree Medium Link Code
1466 Reorder Routes to Make All Paths Lead to the City Zero Medium Link Code
1472 Design Browser History Medium Link Code
1474 Delete N Nodes After M Nodes of a Linked List Easy Link Code
1475 Final Prices With a Special Discount in a Shop Easy Link Code
1481 Least Number of Unique Integers after K Removals Medium Link Code
1487 Making File Names Unique Medium Link Code
1506 Find Root of N-Ary Tree Medium Link Code
1508 Range Sum of Sorted Subarray Sums Medium Link Code
1509 Minimum Difference Between Largest and Smallest Value in Three Moves Medium Link Code
1514 Path with Maximum Probability Medium Link Code
1518 Water Bottles Easy Link Code
1525 Number of Good Ways to Split a String Medium Link Code
1530 Number of Good Leaf Nodes Pairs Medium Link Code
1535 Find the Winner of an Array Game Medium Link Code
1544 Make The String Great Easy Link Code
1550 Three Consecutive Odds Easy Link Code
1551 Minimum Operations to Make Array Equal Medium Link Code
1557 Minimum Number of Vertices to Reach All Nodes Medium Link Code
1561 Maximum Number of Coins You Can Get Medium Link Code
1570 Dot Product of Two Sparse Vectors Medium Link Code
1575 Count All Possible Routes Hard Link Code
1578 Minimum Time to Make Rope Colorful Medium Link Code
1584 Min Cost to Connect All Points Medium Link Code
1593 Split a String Into the Max Number of Unique Substrings Medium Link Code
1598 Crawler Log Folder Easy Link Code
1608 Special Array With X Elements Greater Than or Equal X Easy Link Code
1609 Even Odd Tree Medium Link Code
1630 Arithmetic Subarrays Medium Link Code
1636 Sort Array by Increasing Frequency Easy Link Code
1637 Widest Vertical Area Between Two Points Containing No Points Easy Link Code
1641 Count Sorted Vowel Strings Medium Link Code
1647 Minimum Deletions to Make Character Frequencies Unique Medium Link Code
1650 Lowest Common Ancestor of a Binary Tree III Medium Link Code
1652 Defuse the Bomb Easy Link Code
1653 Minimum Deletions to Make String Balanced Medium Link Code
1657 Determine if Two Strings Are Close Medium Link Code
1670 Design Front Middle Back Queue Medium Link Code
1706 Where Will the Ball Fall Medium Link Code
1721 Swapping Nodes in a Linked List Medium Link Code
1740 Find Distance in a Binary Tree Medium Link Code
1756 Design Most Recently Used Queue Medium Link Code
1762 Buildings With an Ocean View Medium Link Code
1769 Minimum Number of Operations to Move All Balls to Each Box Medium Link Code
1770 Maximum Score from Performing Multiplication Operations Hard Link Code
1797 Design Authentication Manager Medium Link Code
1800 Maximum Ascending Subarray Sum Easy Link Code
1823 Find the Winner of the Circular Game Medium Link Code
1836 Remove Duplicates From an Unsorted Linked List Medium Link Code
1839 Longest Substring Of All Vowels in Order Medium Link Code
1852 Distinct Numbers in Each Subarray Medium Link Code
1863 Sum of All Subset XOR Totals Easy Link Code
1877 Minimize Maximum Pair Sum in Array Medium Link Code
1880 Check if Word Equals Summation of Two Words Easy Link Code
1894 Find the Student that Will Replace the Chalk Medium Link Code
1905 Count Sub Islands Medium Link Code
1910 Remove All Occurrences of a Substring Medium Link Code
1935 Maximum Number of Words You Can Type Easy Link Code
1940 Longest Common Subsequence Between Sorted Arrays Medium Link Code
1944 Number of Visible People in a Queue Hard Link Code
1945 Sum of Digits of String After Convert Easy Link Code
1947 Maximum Compatibility Score Sum Medium Link Code
1957 Delete Characters to Make Fancy String Easy Link Code
1962 Remove Stones to Minimize the Total Medium Link Code
1971 Find if Path Exists in Graph Easy Link Code
1973 Count Nodes Equal to Sum of Descendants Medium Link Code
1980 Find Unique Binary String Medium Link Code
2016 Maximum Difference Between Increasing Elements Easy Link Code
2024 Maximize the Confusion of an Exam Medium Link Code
2028 Find Missing Observations Medium Link Code
2037 Minimum Number of Moves to Seat Everyone Easy Link Code
2044 Count Number of Maximum Bitwise-OR Subsets Medium Link Code
2046 Sort Linked List Already Sorted Using Absolute Values Medium Link Code
2050 Parallel Courses III Hard Link Code
2058 Find the Minimum and Maximum Number of Nodes Between Critical Points Medium Link Code
2083 Substrings That Begin and End With the Same Letter Medium Link Code
2090 K Radius Subarray Averages Medium Link Code
2096 Step-By-Step Directions From a Binary Tree Node to Another Medium Link Code
2115 Find All Possible Recipes from Given Supplies Medium Link Code
2125 Number of Laser Beams in a Bank Medium Link Code
2129 Capitalize the Title Easy Link Code
2150 Find All Lonely Numbers in the Array Medium Link Code
2177 Find Three Consecutive Integers That Sum to a Given Number Medium Link Code
2181 Merge Nodes in Between Zeros Medium Link Code
2186 Minimum Number of Steps to Make Two Strings Anagram II Medium Link Code
2192 All Ancestors of a Node in a Directed Acyclic Graph Medium Link Code
2196 Create Binary Tree From Descriptions Medium Link Code
2204 Distance to a Cycle in Undirected Graph Hard Link Code
2241 Design an ATM Machine Medium Link Code
2260 Minimum Consecutive Cards to Pick Up Medium Link Code
2261 K Divisible Elements Subarrays Medium Link Code
2265 Count Nodes Equal to Average of Subtree Medium Link Code
2273 Find Resultant Array After Removing Anagrams Easy Link Code
2289 Steps to Make Array Non-decreasing Medium Link Code
2290 Minimum Obstacle Removal to Reach Corner Hard Link Code
2295 Replace Elements in an Array Medium Link Code
2300 Successful Pairs of Spells and Potions Medium Link Code
2302 Count Subarrays With Score Less Than K Hard Link Code
2304 Minimum Path Cost in a Grid Medium Link Code
2316 Count Unreachable Pairs of Nodes in an Undirected Graph Medium Link Code
2326 Spiral Matrix IV Medium Link Code
2328 Number of Increasing Paths in a Grid Hard Link Code
2340 Minimum Adjacent Swaps to Make a Valid Array Medium Link Code
2342 Max Sum of a Pair With Equal Sum of Digits Medium Link Code
2348 Number of Zero-Filled Subarrays Medium Link Code
2360 Longest Cycle in a Graph Hard Link Code
2361 Minimum Costs Using the Train Line Hard Link Code
2365 Task Scheduler II Medium Link Code
2368 Reachable Nodes With Restrictions Medium Link Code
2387 Median of a Row Wise Sorted Matrix Medium Link Code
2393 Count Strictly Increasing Subarrays Medium Link Code
2410 Maximum Matching of Players With Trainers Medium Link Code
2415 Reverse Odd Levels of Binary Tree Medium Link Code
2419 Longest Subarray With Maximum Bitwise AND Medium Link Code
2422 Merge Operations to Turn Array Into a Palindrome Medium Link Code
2435 Paths in Matrix Whose Sum Is Divisible by K Hard Link Code
2462 Total Cost to Hire K Workers Medium Link Code
2477 Minimum Fuel Cost to Report to the Capital Medium Link Code
2486 Append Characters to String to Make Subsequence Medium Link Code
2487 Remove Nodes From Linked List Medium Link Code
2491 Divide Players Into Teams of Equal Skill Medium Link Code
2506 Count Pairs Of Similar Strings Easy Link Code
2510 Check if There is a Path With Equal Number of 0's And 1's Medium Link Code
2512 Reward Top K Students Medium Link Code
2536 Increment Submatrices by One Medium Link Code
2559 Count Vowel Strings in Ranges Medium Link Code
2563 Count the Number of Fair Pairs Medium Link Code
2583 Kth Largest Sum in a Binary Tree
Unable to render expression.

$\color{orange}{\textsf{Medium}}$
Link Code
2592 Maximize Greatness of an Array
Unable to render expression.

$\color{orange}{\textsf{Medium}}$
Link Code
2593 Find Score of an Array After Marking All Elements
Unable to render expression.

$\color{orange}{\textsf{Medium}}$
Link Code
2599 Make the Prefix Sum Non-negative
Unable to render expression.

$\color{orange}{\textsf{Medium}}$
Link Code
2642 Design Graph With Shortest Path Calculator
Unable to render expression.

$\color{red}{\textsf{Hard}}$
Link Code
2670 Find the Distinct Difference Array
Unable to render expression.

$\color{green}{\textsf{Easy}}$
Link Code
2671 Frequency Tracker
Unable to render expression.

$\color{orange}{\textsf{Medium}}$
Link Code
2679 Sum in a Matrix
Unable to render expression.

$\color{orange}{\textsf{Medium}}$
Link Code
2707 Extra Characters in a String
Unable to render expression.

$\color{orange}{\textsf{Medium}}$
Link Code
2710 Remove Trailing Zeros From a String
Unable to render expression.

$\color{green}{\textsf{Easy}}$
Link Code
2743 Count Substrings Without Repeating Character
Unable to render expression.

$\color{orange}{\textsf{Medium}}$
Link Code
2788 Split Strings by Separator
Unable to render expression.

$\color{green}{\textsf{Easy}}$
Link Code
2792 Count Nodes That Are Great Enough
Unable to render expression.

$\color{red}{\textsf{Hard}}$
Link Code
2807 Insert Greatest Common Divisors in Linked List
Unable to render expression.

$\color{orange}{\textsf{Medium}}$
Link Code
2838 Maximum Coins Heroes Can Collect
Unable to render expression.

$\color{orange}{\textsf{Medium}}$
Link Code
2852 Sum of Remoteness of All Cells
Unable to render expression.

$\color{orange}{\textsf{Medium}}$
Link Code
2924 Find Champion II
Unable to render expression.

$\color{orange}{\textsf{Medium}}$
Link Code
2938 Separate Black and White Balls
Unable to render expression.

$\color{orange}{\textsf{Medium}}$
Link Code
2950 Number of Divisible Substrings
Unable to render expression.

$\color{orange}{\textsf{Medium}}$
Link Code
2974 Minimum Number Game
Unable to render expression.

$\color{green}{\textsf{Easy}}$
Link Code
2992 Number of Self-Divisible Permutations
Unable to render expression.

$\color{orange}{\textsf{Medium}}$
Link Code
3004 Maximum Subtree of the Same Color
Unable to render expression.

$\color{orange}{\textsf{Medium}}$
Link Code
3016 Minimum Number of Pushes to Type Word II
Unable to render expression.

$\color{orange}{\textsf{Medium}}$
Link Code
3028 Ant on the Boundary
Unable to render expression.

$\color{green}{\textsf{Easy}}$
Link Code
3032 Count Numbers With Unique Digits II
Unable to render expression.

$\color{green}{\textsf{Easy}}$
Link Code
3037 Find Pattern in Infinite Stream II
Unable to render expression.

$\color{red}{\textsf{Hard}}$
Link Code
3043 Find the Length of the Longest Common Prefix
Unable to render expression.

$\color{orange}{\textsf{Medium}}$
Link Code
3063 Linked List Frequency
Unable to render expression.

$\color{green}{\textsf{Easy}}$
Link Code
3090 Maximum Length Substring With Two Occurrences
Unable to render expression.

$\color{green}{\textsf{Easy}}$
Link Code
3105 Longest Strictly Increasing or Strictly Decreasing Subarray
Unable to render expression.

$\color{green}{\textsf{Easy}}$
Link Code
3110 Score of a String
Unable to render expression.

$\color{green}{\textsf{Easy}}$
Link Code
3121 Count the Number of Special Characters II
Unable to render expression.

$\color{orange}{\textsf{Medium}}$
Link Code
3131 Find the Integer Added to Array I
Unable to render expression.

$\color{green}{\textsf{Easy}}$
Link Code
3146 Permutation Difference between Two Strings
Unable to render expression.

$\color{green}{\textsf{Easy}}$
Link Code
3163 String Compression III
Unable to render expression.

$\color{orange}{\textsf{Medium}}$
Link Code
3170 Lexicographically Minimum String After Removing Stars
Unable to render expression.

$\color{orange}{\textsf{Medium}}$
Link Code
3180 Maximum Total Reward Using Operations I
Unable to render expression.

$\color{orange}{\textsf{Medium}}$
Link Code
3190 Find Minimum Operations to Make All Elements Divisible by Three
Unable to render expression.

$\color{green}{\textsf{Easy}}$
Link Code
3205 Maximum Array Hopping Score I
Unable to render expression.

$\color{orange}{\textsf{Medium}}$
Link Code
3233 Find the Count of Numbers Which Are Not Special
Unable to render expression.

$\color{orange}{\textsf{Medium}}$
Link Code
3248 Snake in Matrix
Unable to render expression.

$\color{green}{\textsf{Easy}}$
Link Code
3249 Count the Number of Good Nodes
Unable to render expression.

$\color{orange}{\textsf{Medium}}$
Link Code
3250 Find the Count of Monotonic Pairs I
Unable to render expression.

$\color{red}{\textsf{Hard}}$
Link Code
3297 Count Substrings That Can Be Rearranged to Contain a String I
Unable to render expression.

$\color{orange}{\textsf{Medium}}$
Link Code
3298 Count Substrings That Can Be Rearranged to Contain a String II
Unable to render expression.

$\color{red}{\textsf{Hard}}$
Link Code
3329 Count Substrings With K-Frequency Characters II
Unable to render expression.

$\color{red}{\textsf{Hard}}$
Link Code
3341 Find Minimum Time to Reach Last Room I
Unable to render expression.

$\color{orange}{\textsf{Medium}}$
Link Code
3342 Find Minimum Time to Reach Last Room II
Unable to render expression.

$\color{orange}{\textsf{Medium}}$
Link Code
3498 Reverse Degree of a String
Unable to render expression.

$\color{green}{\textsf{Easy}}$
Link Code
3512 Minimum Operations to Make Array Sum Divisible by K
Unable to render expression.

$\color{green}{\textsf{Easy}}$
Link Code
3516 Find Closest Person
Unable to render expression.

$\color{green}{\textsf{Easy}}$
Link Code
3541 Find Most Frequent Vowel and Consonant
Unable to render expression.

$\color{green}{\textsf{Easy}}$
Link Code
3668 Restore Finishing Order
Unable to render expression.

$\color{green}{\textsf{Easy}}$
Link Code
3701 Compute Alternating Sum
Unable to render expression.

$\color{green}{\textsf{Easy}}$
Link Code

About

Collection of LeetCode problems solved with Go/Golang

Topics

Resources

Stars

Watchers

Forks