https://leetcode.com/problems/minimum-number-of-moves-to-seat-everyone/description/
Sum of diffs of sorted students and seats #easy
Sum of diffs of sorted students and seats #easy
👍3
https://leetcode.com/problems/minimum-increment-to-make-array-unique/description/
Min increments to make items unique #medium
Min increments to make items unique #medium
👍2
https://leetcode.com/problems/ipo/description/
Max capital by choosing
Max capital by choosing
k
jobs with profits[] & capital[]
given w
on start #hard #heap👍2
https://leetcode.com/problems/patching-array/description/
Insertions to make subsets sums fill
Insertions to make subsets sums fill
1..n
#hard👍2
https://leetcode.com/problems/sum-of-square-numbers/description/
Is
Is
c
sum of squares? #medium #binary_search👍3
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
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
https://leetcode.com/problems/magnetic-force-between-two-balls/description/
Max shortest distance between
Max shortest distance between
m
positions #medium #binary_search👍3
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
https://leetcode.com/problems/count-number-of-nice-subarrays/description/
Count subarrays with
Count subarrays with
k
odds #medium #sliding_window👍3
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
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
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
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
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
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
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