Skip to content

My 500+ LeetCode solutions in Python, Java, C, and others from my journey -- grouped by topics, lists, dailies, recent, etc.

Notifications You must be signed in to change notification settings

Zanger67/leetcode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LeetCode Records (552 solved)

My LeetCode Profile: Zanger

About this Repo

This repo is a collection of my LeetCode solutions, primarily written in Python, Java, and C. On any page, click the main title to be redirected to the official LeetCode page for the question, topic, list, etc. See the Additional Categories section for pages that group questions by different criteria -- e.g. by their related topics.


Category Notes

  1. Daily - Daily challenge questions that were done on the day of
  2. Weekly Premium - Weekly premium questions that were done on week of
  3. Contest - Questions that I completed during a live contest

Additional Categories Stats


Array, String, Hash Table, Depth-First Search, Tree, Binary Tree, Sorting, Math, Breadth-First Search, Two Pointers, Stack, Dynamic Programming, Matrix, Linked List, Greedy, Simulation, Design, Bit Manipulation, Counting, Binary Search, Backtracking, Heap (Priority Queue), Trie, Database, Recursion, Prefix Sum, Binary Search Tree, Sliding Window, Queue, Graph, Monotonic Stack, Union Find, Divide and Conquer, String Matching, Counting Sort, Hash Function, Shortest Path, Data Stream, Game Theory, Combinatorics, Rolling Hash, Randomized, Ordered Set, Bucket Sort, Geometry, Brainteaser, Memoization, Monotonic Queue, Suffix Array, Doubly-Linked List, Iterator, Number Theory, Interactive, Bitmask, Merge Sort, Topological Sort, Segment Tree, Quickselect, Strongly Connected Component, Probability and Statistics, Binary Indexed Tree, Reservoir Sampling, Radix Sort


Questions

# Title Level Cats Solution Languages
1 Two Sum Easy B75, N150 solution java, py
2 Add Two Numbers Medium N150 solution java
3 Longest Substring Without Repeating Characters Medium B75, N150 solution java
5 Longest Palindromic Substring Medium B75, N150 solution py
7 Reverse Integer Medium N150 solution py
8 String to Integer (atoi) Medium solution py
9 Palindrome Number Easy solution java
13 Roman to Integer Easy solution py
14 Longest Common Prefix Easy solution java
17 Letter Combinations of a Phone Number Medium N150 solution java
19 Remove Nth Node From End of List Medium B75, N150 solution c, java, py
20 Valid Parentheses Easy B75, N150 solution java
21 Merge Two Sorted Lists Easy B75, N150 solution java
22 Generate Parentheses Medium N150 solution py
23 Merge k Sorted Lists Hard B75, N150 solution py
24 Swap Nodes in Pairs Medium solution c
25 Reverse Nodes in k-Group Hard N150 solution c
26 Remove Duplicates from Sorted Array Easy solution java
27 Remove Element Easy solution java, py
28 Find the Index of the First Occurrence in a String Easy solution py
36 Valid Sudoku Medium N150 solution py
39 Combination Sum Medium B75, N150 solution py
40 Combination Sum II Medium Daily, N150 solution py
46 Permutations Medium N150 solution py
48 Rotate Image Medium B75, N150 solution c, py
49 Group Anagrams Medium B75, N150 solution py
50 Pow(x, n) Medium N150 solution c, java, py
54 Spiral Matrix Medium B75, N150 solution py
56 Merge Intervals Medium B75, N150 solution py
57 Insert Interval Medium B75, N150 solution py
61 Rotate List Medium solution py
66 Plus One Easy N150 solution c
69 Sqrt(x) Easy solution py
70 Climbing Stairs Easy B75, N150 solution py
71 Simplify Path Medium solution py
74 Search a 2D Matrix Medium N150 solution py
75 Sort Colors Medium Daily solution c, py
77 Combinations Medium solution py
78 Subsets Medium N150 solution py
79 Word Search Medium B75, N150 solution py
82 Remove Duplicates from Sorted List II Medium solution py
83 Remove Duplicates from Sorted List Easy solution py
84 Largest Rectangle in Histogram Hard N150 solution py
90 Subsets II Medium N150 solution py
94 Binary Tree Inorder Traversal Easy solution java, py
98 Validate Binary Search Tree Medium B75, N150 solution c
100 Same Tree Easy B75, N150 solution py
102 Binary Tree Level Order Traversal Medium B75, N150 solution java
103 Binary Tree Zigzag Level Order Traversal Medium solution py
104 Maximum Depth of Binary Tree Easy B75, N150 solution py
107 Binary Tree Level Order Traversal II Medium solution java
110 Balanced Binary Tree Easy N150 solution py
111 Minimum Depth of Binary Tree Easy solution c, java
112 Path Sum Easy solution py
113 Path Sum II Medium solution py
114 Flatten Binary Tree to Linked List Medium solution c, py
118 Pascal's Triangle Easy solution py
121 Best Time to Buy and Sell Stock Easy B75, N150 solution py
124 Binary Tree Maximum Path Sum Hard B75, N150 solution py
125 Valid Palindrome Easy B75, N150 solution c, py
128 Longest Consecutive Sequence Medium B75, N150 solution java, py
129 Sum Root to Leaf Numbers Medium solution py
131 Palindrome Partitioning Medium N150 solution py
136 Single Number Easy N150 solution py
138 Copy List with Random Pointer Medium N150 solution py
141 Linked List Cycle Easy B75, N150 solution c, py
142 Linked List Cycle II Medium solution py
143 Reorder List Medium B75, N150 solution java, py
145 Binary Tree Postorder Traversal Easy Daily solution py
150 Evaluate Reverse Polish Notation Medium N150 solution py
155 Min Stack Medium N150 solution py
165 Compare Version Numbers Medium solution c, py
166 Fraction to Recurring Decimal Medium solution py
167 Two Sum II - Input Array Is Sorted Medium N150 solution py
170 Two Sum III - Data structure design Easy solution py
173 Binary Search Tree Iterator Medium solution py
175 Combine Two Tables Easy solution py, sql
176 Second Highest Salary Medium solution sql
177 Nth Highest Salary Medium solution sql
181 Employees Earning More Than Their Managers Easy solution sql
182 Duplicate Emails Easy solution sql
183 Customers Who Never Order Easy solution sql
184 Department Highest Salary Medium solution sql
189 Rotate Array Medium solution py
191 Number of 1 Bits Easy B75, N150 solution py
196 Delete Duplicate Emails Easy solution py, sql
197 Rising Temperature Easy solution sql
198 House Robber Medium B75, N150 solution py
199 Binary Tree Right Side View Medium N150 solution cpp, java
200 Number of Islands Medium B75, N150 solution py
206 Reverse Linked List Easy B75, N150 solution java
208 Implement Trie (Prefix Tree) Medium B75, N150 solution py
211 Design Add and Search Words Data Structure Medium B75, N150 solution py
212 Word Search II Hard B75, N150 solution py
213 House Robber II Medium B75, N150 solution py
217 Contains Duplicate Easy B75, N150 solution py
224 Basic Calculator Hard solution py
226 Invert Binary Tree Easy B75, N150 solution py
227 Basic Calculator II Medium solution py
230 Kth Smallest Element in a BST Medium B75, N150 solution py
235 Lowest Common Ancestor of a Binary Search Tree Medium B75, N150 solution py
236 Lowest Common Ancestor of a Binary Tree Medium B75 solution py
238 Product of Array Except Self Medium B75, N150 solution py
239 Sliding Window Maximum Hard N150 solution py
242 Valid Anagram Easy B75, N150 solution c, py
251 Flatten 2D Vector Medium solution py
260 Single Number III Medium solution py
271 Encode and Decode Strings Medium B75, N150 solution py
272 Closest Binary Search Tree Value II Hard solution py
273 Integer to English Words Hard Daily solution py
286 Walls and Gates Medium N150 solution py
287 Find the Duplicate Number Medium N150 solution c
292 Nim Game Easy solution py
314 Binary Tree Vertical Order Traversal Medium solution py
320 Generalized Abbreviation Medium Weekly Premium solution py
322 Coin Change Medium B75, N150 solution py
328 Odd Even Linked List Medium solution py
330 Patching Array Hard Daily solution py
339 Nested List Weight Sum Medium solution c, py
341 Flatten Nested List Iterator Medium solution java
344 Reverse String Easy Daily solution java, py
345 Reverse Vowels of a String Easy solution py
347 Top K Frequent Elements Medium B75, N150 solution py
348 Design Tic-Tac-Toe Medium solution py
350 Intersection of Two Arrays II Easy Daily solution java, py
351 Android Unlock Patterns Medium Weekly Premium solution py
353 Design Snake Game Medium solution py
362 Design Hit Counter Medium solution py
364 Nested List Weight Sum II Medium solution java, py
366 Find Leaves of Binary Tree Medium solution py
369 Plus One Linked List Medium solution c
374 Guess Number Higher or Lower Easy solution java, py
380 Insert Delete GetRandom O(1) Medium solution java
381 Insert Delete GetRandom O(1) - Duplicates allowed Hard solution java
382 Linked List Random Node Medium solution c, java, py
384 Shuffle an Array Medium solution py
392 Is Subsequence Easy solution java
394 Decode String Medium solution py
408 Valid Word Abbreviation Easy solution py
409 Longest Palindrome Easy Daily solution c, py
412 Fizz Buzz Easy solution java, py
414 Third Maximum Number Easy solution py
419 Battleships in a Board Medium solution c, py
424 Longest Repeating Character Replacement Medium B75, N150 solution py
426 Convert Binary Search Tree to Sorted Doubly Linked List Medium solution py
429 N-ary Tree Level Order Traversal Medium solution py
430 Flatten a Multilevel Doubly Linked List Medium solution cpp, java
431 Encode N-ary Tree to Binary Tree Hard solution java, py
437 Path Sum III Medium solution py
443 String Compression Medium solution py
450 Delete Node in a BST Medium solution py
451 Sort Characters By Frequency Medium solution py
475 Heaters Medium solution py
476 Number Complement Easy Daily solution py
480 Sliding Window Median Hard solution py
502 IPO Hard Daily solution py
503 Next Greater Element II Medium solution py
509 Fibonacci Number Easy solution c
513 Find Bottom Left Tree Value Medium solution java
523 Continuous Subarray Sum Medium Daily solution py
535 Encode and Decode TinyURL Medium solution py
540 Single Element in a Sorted Array Medium solution py
542 01 Matrix Medium solution py
543 Diameter of Binary Tree Easy N150 solution c, java, py
559 Maximum Depth of N-ary Tree Easy solution py
565 Array Nesting Medium solution py
567 Permutation in String Medium Daily, N150 solution py
572 Subtree of Another Tree Easy B75, N150 solution py
577 Employee Bonus Easy solution sql
584 Find Customer Referee Easy solution sql
586 Customer Placing the Largest Number of Orders Easy solution sql
590 N-ary Tree Postorder Traversal Easy Daily solution py
595 Big Countries Easy solution sql
596 Classes More Than 5 Students Easy solution sql
605 Can Place Flowers Easy solution c, cpp, java, js, py, rs, ts
606 Construct String from Binary Tree Medium solution java, py
607 Sales Person Easy solution sql
611 Valid Triangle Number Medium solution py
616 Add Bold Tag in String Medium solution py
619 Biggest Single Number Easy solution sql
622 Design Circular Queue Medium solution py
624 Maximum Distance in Arrays Medium Daily solution py
636 Exclusive Time of Functions Medium solution py
637 Average of Levels in Binary Tree Easy solution py
641 Design Circular Deque Medium solution py
645 Set Mismatch Easy solution java, py
647 Palindromic Substrings Medium B75, N150 solution py
648 Replace Words Medium Daily solution java, py
650 2 Keys Keyboard Medium Daily solution py
651 4 Keys Keyboard Medium solution py
653 Two Sum IV - Input is a BST Easy solution py
654 Maximum Binary Tree Medium solution py
662 Maximum Width of Binary Tree Medium solution py
663 Equal Tree Partition Medium solution py
664 Strange Printer Hard Daily solution py
665 Non-decreasing Array Medium solution java, py
666 Path Sum IV Medium Weekly Premium solution py
676 Implement Magic Dictionary Medium solution py
687 Longest Univalue Path Medium solution py
690 Employee Importance Medium solution java
692 Top K Frequent Words Medium solution py
695 Max Area of Island Medium N150 solution c
700 Search in a Binary Search Tree Easy solution c, java, py
703 Kth Largest Element in a Stream Easy Daily, N150 solution py
707 Design Linked List Medium solution java
708 Insert into a Sorted Circular Linked List Medium solution py
713 Subarray Product Less Than K Medium solution py
719 Find K-th Smallest Pair Distance Hard Daily solution py
720 Longest Word in Dictionary Medium solution py
725 Split Linked List in Parts Medium Daily solution py
726 Number of Atoms Hard Daily solution py
729 My Calendar I Medium Daily solution py
735 Asteroid Collision Medium solution py
739 Daily Temperatures Medium N150 solution c, java, py
743 Network Delay Time Medium N150 solution java, py
744 Find Smallest Letter Greater Than Target Easy solution java, py
746 Min Cost Climbing Stairs Easy N150 solution py
758 Bold Words in String Medium solution py
771 Jewels and Stones Easy solution java, py
776 Split BST Medium Weekly Premium solution py
784 Letter Case Permutation Medium solution py
791 Custom Sort String Medium solution java
794 Valid Tic-Tac-Toe State Medium solution py
796 Rotate String Easy solution py
807 Max Increase to Keep City Skyline Medium solution java
817 Linked List Components Medium solution java
819 Most Common Word Easy solution py
826 Most Profit Assigning Work Medium Daily solution py
840 Magic Squares In Grid Medium Daily solution py
846 Hand of Straights Medium Daily, N150 solution py
848 Shifting Letters Medium solution py
849 Maximize Distance to Closest Person Medium solution py
853 Car Fleet Medium N150 solution py
856 Score of Parentheses Medium solution py
860 Lemonade Change Easy Daily solution py
861 Score After Flipping Matrix Medium solution c, py
863 All Nodes Distance K in Binary Tree Medium solution py
867 Transpose Matrix Easy solution py
877 Stone Game Medium solution c, cpp, go, java, js, py
885 Spiral Matrix III Medium Daily solution py
890 Find and Replace Pattern Medium solution py
894 All Possible Full Binary Trees Medium solution py
895 Maximum Frequency Stack Hard solution java, py
909 Snakes and Ladders Medium solution py
912 Sort an Array Medium Daily solution java, py
919 Complete Binary Tree Inserter Medium solution py
921 Minimum Add to Make Parentheses Valid Medium Daily solution java, py
930 Binary Subarrays With Sum Medium solution py
938 Range Sum of BST Easy solution js, py
945 Minimum Increment to Make Array Unique Medium Daily solution py
946 Validate Stack Sequences Medium solution c, py
950 Reveal Cards In Increasing Order Medium solution py
951 Flip Equivalent Binary Trees Medium Daily solution py
959 Regions Cut By Slashes Medium Daily solution py
973 K Closest Points to Origin Medium N150 solution py
974 Subarray Sums Divisible by K Medium Daily solution java, py
977 Squares of a Sorted Array Easy solution py
979 Distribute Coins in Binary Tree Medium solution py
981 Time Based Key-Value Store Medium N150 solution py
987 Vertical Order Traversal of a Binary Tree Hard solution py
993 Cousins in Binary Tree Easy solution py
994 Rotting Oranges Medium N150 solution py
995 Minimum Number of K Consecutive Bit Flips Hard Daily solution c, py
1002 Find Common Characters Easy solution py
1006 Clumsy Factorial Medium solution c, py
1008 Construct Binary Search Tree from Preorder Traversal Medium solution c, cpp, java
1018 Binary Prefix Divisible By 5 Easy solution py
1019 Next Greater Node In Linked List Medium solution py
1020 Number of Enclaves Medium solution py
1026 Maximum Difference Between Node and Ancestor Medium solution py
1028 Recover a Tree From Preorder Traversal Hard solution py
1030 Matrix Cells in Distance Order Easy solution py
1038 Binary Search Tree to Greater Sum Tree Medium Daily solution c
1046 Last Stone Weight Easy N150 solution py
1051 Height Checker Easy Daily solution c, py
1052 Grumpy Bookstore Owner Medium solution py
1062 Longest Repeating Substring Medium Weekly Premium solution py
1068 Product Sales Analysis I Easy solution sql
1071 Greatest Common Divisor of Strings Easy solution py
1087 Brace Expansion Medium solution py
1101 The Earliest Moment When Everyone Become Friends Medium Weekly Premium solution py
1105 Filling Bookcase Shelves Medium Daily solution py
1110 Delete Nodes And Return Forest Medium Daily solution py
1122 Relative Sort Array Easy Daily solution java, py
1133 Largest Unique Number Easy Weekly Premium solution py
1140 Stone Game II Medium Daily solution py
1160 Find Words That Can Be Formed by Characters Easy solution py
1161 Maximum Level Sum of a Binary Tree Medium solution py
1166 Design File System Medium solution py
1171 Remove Zero Sum Consecutive Nodes from Linked List Medium solution py
1184 Distance Between Bus Stops Easy solution py
1190 Reverse Substrings Between Each Pair of Parentheses Medium Daily solution py
1207 Unique Number of Occurrences Easy solution py
1209 Remove All Adjacent Duplicates in String II Medium solution py
1218 Longest Arithmetic Subsequence of Given Difference Medium solution py
1229 Meeting Scheduler Medium Weekly Premium solution py
1230 Toss Strange Coins Medium Weekly Premium solution c, java, py
1232 Check If It Is a Straight Line Easy solution py
1233 Remove Sub-Folders from the Filesystem Medium Daily solution py
1239 Maximum Length of a Concatenated String with Unique Characters Medium solution py
1248 Count Number of Nice Subarrays Medium Daily solution py
1249 Minimum Remove to Make Valid Parentheses Medium solution py
1252 Cells with Odd Values in a Matrix Easy solution c
1254 Number of Closed Islands Medium solution py
1255 Maximum Score Words Formed by Letters Hard solution py
1265 Print Immutable Linked List in Reverse Medium solution c, py
1268 Search Suggestions System Medium solution py
1282 Group the People Given the Group Size They Belong To Medium solution py
1284 Minimum Number of Flips to Convert Binary Matrix to Zero Matrix Hard solution py
1302 Deepest Leaves Sum Medium solution c, js, py
1305 All Elements in Two Binary Search Trees Medium solution java
1315 Sum of Nodes with Even-Valued Grandparent Medium solution py
1317 Convert Integer to the Sum of Two No-Zero Integers Easy solution c
1325 Delete Leaves With a Given Value Medium solution py
1334 Find the City With the Smallest Number of Neighbors at a Threshold Distance Medium Daily solution py
1351 Count Negative Numbers in a Sorted Matrix Easy solution java, py
1367 Linked List in Binary Tree Medium Daily solution py
1372 Longest ZigZag Path in a Binary Tree Medium solution py
1376 Time Needed to Inform All Employees Medium solution py
1380 Lucky Numbers in a Matrix Easy Daily solution js, py
1381 Design a Stack With Increment Operation Medium Daily solution py
1382 Balance a Binary Search Tree Medium solution py
1395 Count Number of Teams Medium Daily solution py
1404 Number of Steps to Reduce a Number in Binary Representation to One Medium solution py
1426 Counting Elements Easy solution c
1429 First Unique Number Medium solution py
1436 Destination City Easy solution java
1438 Longest Continuous Subarray With Absolute Diff Less Than or Equal to Limit Medium Daily solution java
1442 Count Triplets That Can Form Two Arrays of Equal XOR Medium solution py
1448 Count Good Nodes in Binary Tree Medium N150 solution java
1452 People Whose List of Favorite Companies Is Not a Subset of Another List Medium solution py
1455 Check If a Word Occurs As a Prefix of Any Word in a Sentence Easy solution py
1457 Pseudo-Palindromic Paths in a Binary Tree Medium solution py
1460 Make Two Arrays Equal by Reversing Subarrays Easy Daily solution c, py
1461 Check If a String Contains All Binary Codes of Size K Medium solution py
1470 Shuffle the Array Easy solution c
1472 Design Browser History Medium solution py
1474 Delete N Nodes After M Nodes of a Linked List Easy solution c, java
1481 Least Number of Unique Integers after K Removals Medium solution py
1482 Minimum Number of Days to Make m Bouquets Medium Daily solution py
1490 Clone N-ary Tree Medium solution java, py
1497 Check If Array Pairs Are Divisible by k Medium Daily solution py
1502 Can Make Arithmetic Progression From Sequence Easy solution c, py
1508 Range Sum of Sorted Subarray Sums Medium Daily solution py
1509 Minimum Difference Between Largest and Smallest Value in Three Moves Medium Daily solution c, cpp, java, py
1518 Water Bottles Easy Daily solution c, cpp, cs, java, js, py, ts
1522 Diameter of N-Ary Tree Medium solution py
1525 Number of Good Ways to Split a String Medium solution py
1530 Number of Good Leaf Nodes Pairs Medium Daily solution py
1535 Find the Winner of an Array Game Medium solution py
1550 Three Consecutive Odds Easy Daily solution c, py
1551 Minimum Operations to Make Array Equal Medium solution c, java, js, kt, py, rb, rs
1552 Magnetic Force Between Two Balls Medium Daily solution py
1561 Maximum Number of Coins You Can Get Medium solution py
1564 Put Boxes Into the Warehouse I Medium solution py
1568 Minimum Number of Days to Disconnect Island Hard Daily solution py
1570 Dot Product of Two Sparse Vectors Medium solution c, java, py
1579 Remove Max Number of Edges to Keep Graph Fully Traversable Hard Daily solution py
1580 Put Boxes Into the Warehouse II Medium Weekly Premium solution py
1598 Crawler Log Folder Easy Daily solution c, js
1602 Find Nearest Right Node in Binary Tree Medium solution java, py
1605 Find Valid Matrix Given Row and Column Sums Medium Daily solution py
1609 Even Odd Tree Medium solution py
1634 Add Two Polynomials Represented as Linked Lists Medium Weekly Premium solution py
1636 Sort Array by Increasing Frequency Easy Daily solution py
1641 Count Sorted Vowel Strings Medium solution c, cpp, java
1650 Lowest Common Ancestor of a Binary Tree III Medium solution py
1653 Minimum Deletions to Make String Balanced Medium Daily solution py
1657 Determine if Two Strings Are Close Medium solution py
1660 Correct a Binary Tree Medium solution py
1669 Merge In Between Linked Lists Medium solution c
1676 Lowest Common Ancestor of a Binary Tree IV Medium solution py
1684 Count the Number of Consistent Strings Easy Daily solution c, py
1689 Partitioning Into Minimum Number Of Deci-Binary Numbers Medium solution c, java
1696 Jump Game VI Medium solution java, py
1698 Number of Distinct Substrings in a String Medium solution java, py
1700 Number of Students Unable to Eat Lunch Easy solution py
1701 Average Waiting Time Medium Daily solution js, py
1717 Maximum Score From Removing Substrings Medium Daily solution py
1721 Swapping Nodes in a Linked List Medium solution c
1730 Shortest Path to Get Food Medium solution py
1736 Latest Time by Replacing Hidden Digits Easy solution c
1740 Find Distance in a Binary Tree Medium Weekly Premium solution py
1743 Restore the Array From Adjacent Pairs Medium solution py
1748 Sum of Unique Elements Easy solution c
1759 Count Number of Homogenous Substrings Medium solution c, java
1762 Buildings With an Ocean View Medium solution py
1768 Merge Strings Alternately Easy solution java
1783 Grand Slam Titles Medium solution sql
1791 Find Center of Star Graph Easy Daily solution c, cpp, java, py
1800 Maximum Ascending Subarray Sum Easy solution py
1804 Implement Trie II (Prefix Tree) Medium Weekly Premium solution py
1822 Sign of the Product of an Array Easy solution c
1823 Find the Winner of the Circular Game Medium Daily solution c, cpp, java, js, py
1833 Maximum Ice Cream Bars Medium solution c, java, py
1836 Remove Duplicates From an Unsorted Linked List Medium Weekly Premium solution java, py
1844 Replace All Digits with Characters Easy solution py
1852 Distinct Numbers in Each Subarray Medium solution java
1858 Longest Word With All Prefixes Medium Weekly Premium solution py
1874 Minimize Product Sum of Two Arrays Medium solution c, java
1877 Minimize Maximum Pair Sum in Array Medium solution py
1884 Egg Drop With 2 Eggs and N Floors Medium solution c, java, js
1885 Count Pairs in Two Arrays Medium solution py
1905 Count Sub Islands Medium Daily solution py
1909 Remove One Element to Make the Array Strictly Increasing Easy solution c
1929 Concatenation of Array Easy solution c, java, py
1940 Longest Common Subsequence Between Sorted Arrays Medium Weekly Premium solution java, py
1945 Sum of Digits of String After Convert Easy Daily solution py
1957 Delete Characters to Make Fancy String Easy solution py
1973 Count Nodes Equal to Sum of Descendants Medium solution c
1980 Find Unique Binary String Medium solution c, py
1992 Find All Groups of Farmland Medium solution java, py
2011 Final Value of Variable After Performing Operations Easy solution c
2013 Detect Squares Medium N150 solution py
2037 Minimum Number of Moves to Seat Everyone Easy Daily solution c, py
2045 Second Minimum Time to Reach Destination Hard Daily solution py
2046 Sort Linked List Already Sorted Using Absolute Values Medium solution py
2053 Kth Distinct String in an Array Easy Daily solution py
2058 Find the Minimum and Maximum Number of Nodes Between Critical Points Medium Daily solution cpp, java, py
2083 Substrings That Begin and End With the Same Letter Medium Weekly Premium solution c, py
2086 Minimum Number of Food Buckets to Feed the Hamsters Medium solution java
2093 Minimum Cost to Reach City With Discounts Medium Weekly Premium solution py
2095 Delete the Middle Node of a Linked List Medium solution c, java
2096 Step-By-Step Directions From a Binary Tree Node to Another Medium Daily solution py
2130 Maximum Twin Sum of a Linked List Medium solution py
2134 Minimum Swaps to Group All 1's Together II Medium Daily solution py
2149 Rearrange Array Elements by Sign Medium solution c, py
2165 Smallest Value of the Rearranged Number Medium solution py
2181 Merge Nodes in Between Zeros Medium Daily solution c, cpp, java, py
2191 Sort the Jumbled Numbers Medium Daily solution py
2192 All Ancestors of a Node in a Directed Acyclic Graph Medium Daily solution java, py
2196 Create Binary Tree From Descriptions Medium Daily solution py
2206 Divide Array Into Equal Pairs Easy solution c, py
2211 Count Collisions on a Road Medium solution py
2221 Find Triangular Sum of an Array Medium solution c, java
2225 Find Players With Zero or One Losses Medium solution java
2248 Intersection of Multiple Arrays Easy solution py
2258 Escape the Spreading Fire Hard solution py
2265 Count Nodes Equal to Average of Subtree Medium solution js, py
2268 Minimum Number of Keypresses Medium solution py
2285 Maximum Total Importance of Roads Medium Daily solution c, cpp, java, py
2304 Minimum Path Cost in a Grid Medium solution py
2317 Maximum XOR After Operations Medium solution c, cpp, java, py
2349 Design a Number Container System Medium solution py
2352 Equal Row and Column Pairs Medium solution py
2365 Task Scheduler II Medium solution py
2374 Node With Highest Edge Score Medium solution py
2385 Amount of Time for Binary Tree to Be Infected Medium solution py
2389 Longest Subsequence With Limited Sum Easy solution py
2390 Removing Stars From a String Medium solution java, py
2392 Build a Matrix With Conditions Hard Daily solution py
2393 Count Strictly Increasing Subarrays Medium solution py
2395 Find Subarrays With Equal Sum Easy solution py
2396 Strictly Palindromic Number Medium solution c, cpp, java, js, kt, py, rb, rs
2405 Optimal Partition of String Medium solution py
2415 Reverse Odd Levels of Binary Tree Medium solution py
2416 Sum of Prefix Scores of Strings Hard Daily solution py
2418 Sort the People Easy Daily solution py
2423 Remove Letter To Equalize Frequency Easy solution py
2433 Find The Original Array of Prefix Xor Medium solution py
2451 Odd String Difference Easy solution py
2455 Average Value of Even Numbers That Are Divisible by Three Easy solution java
2458 Height of Binary Tree After Subtree Removal Queries Hard Daily solution py
2473 Minimum Cost to Buy Apples Medium solution py
2482 Difference Between Ones and Zeros in Row and Column Medium solution py
2486 Append Characters to String to Make Subsequence Medium Daily solution c, java, py
2487 Remove Nodes From Linked List Medium solution py
2501 Longest Square Streak in an Array Medium Daily solution py
2545 Sort the Students by Their Kth Score Medium solution java, py
2570 Merge Two 2D Arrays by Summing Values Easy solution c
2582 Pass the Pillow Easy Daily solution c, cpp, cs, java, js, py
2583 Kth Largest Sum in a Binary Tree Medium Daily solution py
2610 Convert an Array Into a 2D Array With Conditions Medium solution py
2619 Array Prototype Last Easy solution js
2620 Counter Easy solution js
2621 Sleep Easy solution js
2623 Memoize Medium solution js
2624 Snail Traversal Medium solution js
2626 Array Reduce Transformation Easy solution js
2629 Function Composition Easy solution js
2634 Filter Elements from Array Easy solution js
2635 Apply Transform Over Each Element in Array Easy solution js
2664 The Knight’s Tour Medium Weekly Premium solution py
2665 Counter II Easy solution js
2666 Allow One Function Call Easy solution js
2667 Create Hello World Function Easy solution js
2671 Frequency Tracker Medium solution py
2678 Number of Senior Citizens Easy Daily solution c, java, py
2679 Sum in a Matrix Medium solution java
2684 Maximum Number of Moves in a Grid Medium Daily solution py
2703 Return Length of Arguments Passed Easy solution js, ts
2704 To Be Or Not To Be Easy solution js
2723 Add Two Promises Easy solution js
2734 Lexicographically Smallest String After Substring Operation Medium solution py
2743 Count Substrings Without Repeating Character Medium Weekly Premium solution java, py
2751 Robot Collisions Hard Daily solution py
2796 Repeat String Easy solution js
2807 Insert Greatest Common Divisors in Linked List Medium Daily solution py
2816 Double a Number Represented as a Linked List Medium solution c
2886 Change Data Type Easy solution py
2894 Divisible and Non-divisible Sums Difference Easy solution py
2942 Find Words Containing Character Easy solution c
2954 Count the Number of Infection Sequences Hard solution py
2955 Number of Same-End Substrings Medium Weekly Premium solution py
2976 Minimum Cost to Convert String I Medium Daily solution py
2979 Most Expensive Item That Can Not Be Bought Medium solution c, cpp, go, java, js, kt, py, rs, swift, ts
2997 Minimum Number of Operations to Make Array XOR Equal to K Medium solution java, py
3016 Minimum Number of Pushes to Type Word II Medium Daily solution py
3043 Find the Length of the Longest Common Prefix Medium Daily solution py
3045 Count Prefix and Suffix Pairs II Hard solution py
3064 Guess the Number Using Bitwise Questions I Medium solution c, py
3074 Apple Redistribution into Boxes Easy solution py
3106 Lexicographically Smallest String After Operations With Constraint Medium solution py
3110 Score of a String Easy Daily solution java, py
3111 Minimum Rectangles to Cover Points Medium solution java, py
3136 Valid Word Easy solution c, py
3157 Find the Level of Tree with Minimum Sum Medium solution py
3163 String Compression III Medium Daily solution py
3168 Weekly Contest 400 - q1 - Minimum Number of Chairs in a Waiting Room Easy Contest solution py
3169 Weekly Contest 400 - q2 - Count Days Without Meetings Medium Contest solution py
3174 Biweekly Contest 132 - q1 - Clear Digits Easy Contest solution py
3175 Biweekly Contest 132 - q2 - Find The First Player to win K Games in a Row Medium Contest solution py
3178 Weekly Contest 401 - q1 - Find the Child Who Has the Ball After K Seconds Easy Contest solution py
3179 Weekly Contest 401 - q2 - Find the N-th Value After K Seconds Medium Contest solution py
3180 Weekly Contest 401 - q3 - Maximum Total Reward Using Operations I Medium Contest solution c, py
3184 Weekly Contest 402 - q1 - Count Pairs That Form a Complete Day I Easy Contest solution py
3185 Weekly Contest 402 - q2 - Count Pairs That Form a Complete Day II Medium Contest solution py
3186 Weekly Contest 402 - q3 - Maximum Total Damage With Spell Casting Medium Contest solution py
3189 Minimum Moves to Get a Peaceful Board Medium Weekly Premium solution py
3190 Find Minimum Operations to Make All Elements Divisible by Three Easy solution java
3191 Minimum Operations to Make Binary Array Elements Equal to One I Medium solution java
3192 Minimum Operations to Make Binary Array Elements Equal to One II Medium solution java
3194 Weekly Contest 403 - q1 - Minimum Average of Smallest and Largest Elements Easy Contest solution py
3195 Weekly Contest 403 - q2 - Find the Minimum Area to Cover All Ones I Medium Contest solution py
3196 Weekly Contest 403 - q3 - Maximize Total Cost of Alternating Subarrays Medium Contest solution py
3210 Weekly Contest 405 - q1 - Find the Encrypted String Easy Contest solution py
3211 Weekly Contest 405 - q2 - Generate Binary Strings Without Adjacent Zeros Medium Contest solution js, py
3212 Weekly Contest 405 - q3 - Count Submatrices With Equal Frequency of X and Y Medium Contest solution py
3213 Weekly Contest 405 - q4 - Construct String with Minimum Cost Hard Contest solution py
3217 Delete Nodes From Linked List Present in Array Medium Daily solution py
3226 Weekly Contest 407 - q1 - Number of Bit Changes to Make Two Integers Equal Easy Contest solution py
3227 Weekly Contest 407 - q2 - Vowels Game in a String Medium Contest solution py
3228 Weekly Contest 407 - q3 - Maximum Number of Operations to Move Ones to the End Medium Contest solution py
3229 Weekly Contest 407 - q4 - Minimum Operations to Make Array Equal to Target Hard Contest solution py
3232 Weekly Contest 408 - q1 - Find if Digit Game Can Be Won Easy Contest solution py
3233 Weekly Contest 408 - q2 - Find the Count of Numbers Which Are Not Special Medium Contest solution java, py
3238 Biweekly Contest 136 - q1 - Find the Number of Winning Players Easy Contest solution py
3239 Biweekly Contest 136 - q2 - Minimum Number of Flips to Make Binary Grid Palindromic I Medium Contest solution py
3240 Biweekly Contest 136 - q3 - Minimum Number of Flips to Make Binary Grid Palindromic II Medium Contest solution py
3242 Design Neighbor Sum Service Easy solution py
3248 Snake in Matrix Easy solution py
3249 Count the Number of Good Nodes Medium solution py

This README was generated using WikiLeet