https://leetcode.com/problems/patching-array/description/
Insertions to make subsets sums fill
Insertions to make subsets sums fill
1..n
#hard👍2
June 16, 2024
https://leetcode.com/problems/sum-of-square-numbers/description/
Is
Is
c
sum of squares? #medium #binary_search👍3
June 17, 2024
https://leetcode.com/problems/most-profit-assigning-work/description/
Max profit by assigning
Max profit by assigning
[profit, difficulty]
to workers any times #medium #sorting #greedy👍2
June 18, 2024
https://leetcode.com/problems/minimum-number-of-days-to-make-m-bouquets/description/
Min days to take
Min days to take
m
k
-subarrays #medium #binary_search👍2
June 19, 2024
https://leetcode.com/problems/magnetic-force-between-two-balls/description/
Max shortest distance between
Max shortest distance between
m
positions #medium #binary_search👍3
June 20, 2024
https://leetcode.com/problems/grumpy-bookstore-owner/description/
Max customers sum after make consecutive
Max customers sum after make consecutive
minutes
non-grumpy #medium #sliding_window👍4🔥1
June 21, 2024
https://leetcode.com/problems/count-number-of-nice-subarrays/description/
Count subarrays with
Count subarrays with
k
odds #medium #sliding_window👍3
June 22, 2024
https://leetcode.com/problems/longest-continuous-subarray-with-absolute-diff-less-than-or-equal-to-limit/description/
Longest subarray with
Longest subarray with
abs(a[i] - a[j]) <= limit
#medium #sliding_window #monotonic_queue👍2
June 23, 2024
https://leetcode.com/problems/minimum-number-of-k-consecutive-bit-flips/description/
Count
Count
k
-range flips in binary array to make all 1
#hard #sliding_window👍2
June 24, 2024
https://leetcode.com/problems/binary-search-tree-to-greater-sum-tree/description/
Aggregate Binary Search Tree from the right #medium #tree
Aggregate Binary Search Tree from the right #medium #tree
👍1
June 25, 2024
https://leetcode.com/problems/balance-a-binary-search-tree/description/
Make a balanced Binary Search Tree #medium
Make a balanced Binary Search Tree #medium
👍4
June 26, 2024
https://leetcode.com/problems/maximum-total-importance-of-roads/description/
Sort graph by siblings and compute sum(i*s) #medium
Sort graph by siblings and compute sum(i*s) #medium
👍4
June 28, 2024
https://leetcode.com/problems/all-ancestors-of-a-node-in-a-directed-acyclic-graph/description/
List of ancestors in a DAG #medium #dfs #toposort
List of ancestors in a DAG #medium #dfs #toposort
👍3
June 29, 2024
https://leetcode.com/problems/remove-max-number-of-edges-to-keep-graph-fully-traversable/description/
Remove extra nodes in a connected graph by type 1, 2 and 3=1+2 #hard #union-find
Remove extra nodes in a connected graph by type 1, 2 and 3=1+2 #hard #union-find
👍3
June 30, 2024
https://leetcode.com/problems/intersection-of-two-arrays-ii/description/
Array intersection with duplicates #easy
Array intersection with duplicates #easy
👍2
July 2, 2024
https://leetcode.com/problems/minimum-difference-between-largest-and-smallest-value-in-three-moves/description/
Min difference after 3 changes in array #medium #sliding_window #dynamic_programming
Min difference after 3 changes in array #medium #sliding_window #dynamic_programming
👍2
July 3, 2024
https://leetcode.com/problems/merge-nodes-in-between-zeros/description/
Collapse in-between
Collapse in-between
0
nodes in a LinkedList #medium #linked_list👍2
July 4, 2024
https://leetcode.com/problems/find-the-minimum-and-maximum-number-of-nodes-between-critical-points/description/
[min, max] distance between critical points in linked list #medium #linked_list
[min, max] distance between critical points in linked list #medium #linked_list
👍3
July 5, 2024
https://leetcode.com/problems/pass-the-pillow/description/
Loop position in increasing-decreasing array #easy #math #simulation
Loop position in increasing-decreasing array #easy #math #simulation
👍3
July 6, 2024