File tree
1,065 files changed
+66423
-28244
lines changed- images
- lcci
- 01.04.Palindrome Permutation
- 16.02.Words Frequency
- 16.15.Master Mind
- solution
- 0000-0099
- 0029.Divide Two Integers
- 0043.Multiply Strings
- 0100-0199
- 0108.Convert Sorted Array to Binary Search Tree
- 0110.Balanced Binary Tree
- 0111.Minimum Depth of Binary Tree
- 0114.Flatten Binary Tree to Linked List
- 0116.Populating Next Right Pointers in Each Node
- 0117.Populating Next Right Pointers in Each Node II
- 0170.Two Sum III - Data structure design
- 0189.Rotate Array
- 0199.Binary Tree Right Side View
- 0200-0299
- 0201.Bitwise AND of Numbers Range
- 0202.Happy Number
- 0222.Count Complete Tree Nodes
- 0300-0399
- 0301.Remove Invalid Parentheses
- 0336.Palindrome Pairs
- 0343.Integer Break
- 0381.Insert Delete GetRandom O(1) - Duplicates allowed
- 0400-0499
- 0413.Arithmetic Slices
- 0415.Add Strings
- 0500-0599/0599.Minimum Index Sum of Two Lists
- 0600-0699
- 0653.Two Sum IV - Input is a BST
- 0654.Maximum Binary Tree
- 0700-0799
- 0753.Cracking the Safe
- 0757.Set Intersection Size At Least Two
- 0789.Escape The Ghosts
- 0800-0899/0812.Largest Triangle Area
- 0900-0999
- 0909.Snakes and Ladders
- 0912.Sort an Array
- 0930.Binary Subarrays With Sum
- 0939.Minimum Area Rectangle
- 0944.Delete Columns to Make Sorted
- 0997.Find the Town Judge
- 1000-1099
- 1026.Maximum Difference Between Node and Ancestor
- 1038.Binary Search Tree to Greater Sum Tree
- 1100-1199
- 1106.Parsing A Boolean Expression
- 1145.Binary Tree Coloring Game
- 1154.Day of the Year
- 1200-1299/1236.Web Crawler
- 1300-1399
- 1323.Maximum 69 Number
- 1366.Rank Teams by Votes
- 1379.Find a Corresponding Node of a Binary Tree in a Clone of That Tree
- 1400-1499
- 1436.Destination City
- 1443.Minimum Time to Collect All Apples in a Tree
- 1477.Find Two Non-overlapping Sub-arrays Each With Target Sum
- 1500-1599
- 1507.Reformat Date
- 1512.Number of Good Pairs
- 1513.Number of Substrings With Only 1s
- 1514.Path with Maximum Probability
- 1525.Number of Good Ways to Split a String
- 1540.Can Convert String in K Moves
- 1542.Find Longest Awesome Substring
- 1561.Maximum Number of Coins You Can Get
- 1577.Number of Ways Where Square of Number Is Equal to Product of Two Numbers
- 1581.Customer Who Visited but Did Not Make Any Transactions
- 1583.Count Unhappy Friends
- 1600-1699
- 1616.Split Two Strings to Make Palindrome
- 1632.Rank Transform of a Matrix
- 1634.Add Two Polynomials Represented as Linked Lists
- 1637.Widest Vertical Area Between Two Points Containing No Points
- 1638.Count Substrings That Differ by One Character
- 1641.Count Sorted Vowel Strings
- 1658.Minimum Operations to Reduce X to Zero
- 1663.Smallest String With A Given Numeric Value
- 1664.Ways to Make a Fair Array
- 1665.Minimum Initial Energy to Finish Tasks
- 1666.Change the Root of a Binary Tree
- 1669.Merge In Between Linked Lists
- 1671.Minimum Number of Removals to Make Mountain Array
- 1672.Richest Customer Wealth
- 1679.Max Number of K-Sum Pairs
- 1680.Concatenation of Consecutive Binary Numbers
- 1685.Sum of Absolute Differences in a Sorted Array
- 1690.Stone Game VII
- 1700-1799/1703.Minimum Adjacent Swaps for K Consecutive Ones
- 1800-1899
- 1806.Minimum Number of Operations to Reinitialize a Permutation
- 1807.Evaluate the Bracket Pairs of a String
- 1808.Maximize Number of Nice Divisors
- 1813.Sentence Similarity III
- 1814.Count Nice Pairs in an Array
- 1815.Maximum Number of Groups Getting Fresh Donuts
- 1816.Truncate Sentence
- 1817.Finding the Users Active Minutes
- 1818.Minimum Absolute Sum Difference
- 1819.Number of Different Subsequences GCDs
- 1824.Minimum Sideway Jumps
- 1825.Finding MK Average
- 1826.Faulty Sensor
- 1828.Queries on Number of Points Inside a Circle
- 1829.Maximum XOR for Each Query
- 1830.Minimum Number of Operations to Make String Sorted
- 1833.Maximum Ice Cream Bars
- 1837.Sum of Digits in Base K
- 1865.Finding Pairs With a Certain Sum
- 1880.Check if Word Equals Summation of Two Words
- 1900-1999
- 1979.Find Greatest Common Divisor of Array
- 1980.Find Unique Binary String
- 1981.Minimize the Difference Between Target and Chosen Elements
- 2000-2099
- 2000.Reverse Prefix of Word
- 2001.Number of Pairs of Interchangeable Rectangles
- 2079.Watering Plants
- 2083.Substrings That Begin and End With the Same Letter
- 2085.Count Common Words With One Occurrence
- 2087.Minimum Cost Homecoming of a Robot in a Grid
- 2088.Count Fertile Pyramids in a Land
- 2089.Find Target Indices After Sorting Array
- 2090.K Radius Subarray Averages
- 2100-2199
- 2103.Rings and Rods
- 2108.Find First Palindromic String in the Array
- 2176.Count Equal and Divisible Pairs in an Array
- 2185.Counting Words With a Given Prefix
- 2200-2299
- 2214.Minimum Health to Beat Game
- 2240.Number of Ways to Buy Pens and Pencils
- 2241.Design an ATM Machine
- 2243.Calculate Digit Sum of a String
- 2244.Minimum Rounds to Complete All Tasks
- 2245.Maximum Trailing Zeros in a Cornered Path
- 2248.Intersection of Multiple Arrays
- 2249.Count Lattice Points Inside a Circle
- 2283.Check if Number Has Equal Digit Count and Digit Value
- 2284.Sender With Largest Word Count
- 2285.Maximum Total Importance of Roads
- 2286.Booking Concert Tickets in Groups
- 2287.Rearrange Characters to Make Target String
- 2288.Apply Discount to Prices
- 2290.Minimum Obstacle Removal to Reach Corner
- 2291.Maximum Profit From Trading Stocks
- 2293.Min Max Game
- images
- 2294.Partition Array Such That Maximum Difference Is K
- 2295.Replace Elements in an Array
- 2296.Design a Text Editor
- 2299.Strong Password Checker II
- 2300-2399
- 2300.Successful Pairs of Spells and Potions
- 2301.Match Substring After Replacement
- 2302.Count Subarrays With Score Less Than K
- 2303.Calculate Amount Paid in Taxes
- 2304.Minimum Path Cost in a Grid
- 2305.Fair Distribution of Cookies
- 2309.Greatest English Letter in Upper and Lower Case
- 2311.Longest Binary Subsequence Less Than or Equal to K
- 2315.Count Asterisks
- 2316.Count Unreachable Pairs of Nodes in an Undirected Graph
- 2317.Maximum XOR After Operations
- 2319.Check if Matrix Is X-Matrix
- 2320.Count Number of Ways to Place Houses
- 2341.Maximum Number of Pairs in Array
- 2342.Max Sum of a Pair With Equal Sum of Digits
- 2343.Query Kth Smallest Trimmed Number
- 2344.Minimum Deletions to Make Array Divisible
- 2345.Finding the Number of Visible Mountains
- 2348.Number of Zero-Filled Subarrays
- 2363.Merge Similar Items
- 2400-2499/2482.Difference Between Ones and Zeros in Row and Column
- 2500-2599
- 2525.Categorize Box According to Criteria
- 2526.Find Consecutive Integers from a Data Stream
- 2527.Find Xor-Beauty of Array
- 2528.Maximize the Minimum Powered City
- 2529.Maximum Count of Positive Integer and Negative Integer
- 2530.Maximal Score After Applying K Operations
- 2531.Make Number of Distinct Characters Equal
- 2532.Time to Cross a Bridge
- 2533.Number of Good Binary Strings
- 2534.Time Taken to Cross the Door
- 2535.Difference Between Element Sum and Digit Sum of an Array
- 2536.Increment Submatrices by One
- images
- 2537.Count the Number of Good Subarrays
- 2538.Difference Between Maximum and Minimum Price Sum
- images
- 2539.Count the Number of Good Subsequences
- 2540.Minimum Common Value
- 2541.Minimum Operations to Make Array Equal II
- 2542.Maximum Subsequence Score
- 2543.Check if Point Is Reachable
- 2544.Alternating Digit Sum
- 2545.Sort the Students by Their Kth Score
- images
- 2546.Apply Bitwise Operations to Make Strings Equal
- 2547.Minimum Cost to Split an Array
- 2548.Maximum Price to Fill a Bag
- 2549.Count Distinct Numbers on Board
- 2550.Count Collisions of Monkeys on a Polygon
- images
- 2551.Put Marbles in Bags
- 2552.Count Increasing Quadruplets
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
1,065 files changed
+66423
-28244
lines changedLines changed: 18957 additions & 18428 deletions
Loading
Lines changed: 83 additions & 31 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
25 | 25 |
| |
26 | 26 |
| |
27 | 27 |
| |
28 |
| - | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
29 | 33 |
| |
30 | 34 |
| |
31 | 35 |
| |
| |||
36 | 40 |
| |
37 | 41 |
| |
38 | 42 |
| |
39 |
| - | |
40 |
| - | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
41 | 57 |
| |
42 | 58 |
| |
43 | 59 |
| |
| |||
47 | 63 |
| |
48 | 64 |
| |
49 | 65 |
| |
50 |
| - | |
51 |
| - | |
52 |
| - | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
53 | 69 |
| |
54 |
| - | |
55 |
| - | |
56 |
| - | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
57 | 73 |
| |
58 |
| - | |
| 74 | + | |
59 | 75 |
| |
60 | 76 |
| |
61 | 77 |
| |
62 | 78 |
| |
63 |
| - | |
64 |
| - | |
65 |
| - | |
66 |
| - | |
67 |
| - | |
68 |
| - | |
69 |
| - | |
70 |
| - | |
71 |
| - | |
72 |
| - | |
73 |
| - | |
74 |
| - | |
75 |
| - | |
76 |
| - | |
77 |
| - | |
78 |
| - | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
79 | 91 |
| |
80 | 92 |
| |
81 | 93 |
| |
| |||
85 | 97 |
| |
86 | 98 |
| |
87 | 99 |
| |
88 |
| - | |
89 |
| - | |
90 |
| - | |
91 |
| - | |
92 |
| - | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
93 | 109 |
| |
94 | 110 |
| |
95 | 111 |
| |
96 | 112 |
| |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
97 | 149 |
| |
98 | 150 |
| |
99 | 151 |
| |
|
Lines changed: 78 additions & 30 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
27 | 27 |
| |
28 | 28 |
| |
29 | 29 |
| |
30 |
| - | |
31 |
| - | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
32 | 44 |
| |
33 | 45 |
| |
34 | 46 |
| |
35 | 47 |
| |
36 | 48 |
| |
37 | 49 |
| |
38 | 50 |
| |
39 |
| - | |
40 |
| - | |
41 |
| - | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
42 | 54 |
| |
43 |
| - | |
44 |
| - | |
45 |
| - | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
46 | 58 |
| |
47 |
| - | |
| 59 | + | |
48 | 60 |
| |
49 | 61 |
| |
50 | 62 |
| |
51 | 63 |
| |
52 |
| - | |
53 |
| - | |
54 |
| - | |
55 |
| - | |
56 |
| - | |
57 |
| - | |
58 |
| - | |
59 |
| - | |
60 |
| - | |
61 |
| - | |
62 |
| - | |
63 |
| - | |
64 |
| - | |
65 |
| - | |
66 |
| - | |
67 |
| - | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
68 | 76 |
| |
69 | 77 |
| |
70 | 78 |
| |
| |||
74 | 82 |
| |
75 | 83 |
| |
76 | 84 |
| |
77 |
| - | |
78 |
| - | |
79 |
| - | |
80 |
| - | |
81 |
| - | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
82 | 94 |
| |
83 | 95 |
| |
84 | 96 |
| |
85 | 97 |
| |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
86 | 134 |
| |
87 | 135 |
| |
88 | 136 |
| |
|
Lines changed: 9 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 | 2 |
| |
3 | 3 |
| |
4 |
| - | |
5 |
| - | |
6 |
| - | |
7 |
| - | |
8 |
| - | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
9 | 13 |
| |
10 | 14 |
|
Lines changed: 10 additions & 10 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 |
| - | |
3 |
| - | |
4 |
| - | |
5 |
| - | |
6 |
| - | |
7 |
| - | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
8 | 8 |
| |
9 |
| - | |
10 |
| - | |
| 9 | + | |
| 10 | + | |
11 | 11 |
| |
12 | 12 |
| |
13 |
| - | |
14 |
| - | |
| 13 | + | |
| 14 | + |
Lines changed: 7 additions & 7 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 | 2 |
| |
3 |
| - | |
4 |
| - | |
5 |
| - | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
6 | 6 |
| |
7 |
| - | |
8 |
| - | |
9 |
| - | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
10 | 10 |
| |
11 |
| - | |
| 11 | + | |
12 | 12 |
| |
13 | 13 |
|
Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 | 2 |
| |
3 |
| - | |
4 |
| - | |
| 3 | + | |
| 4 | + |
0 commit comments