https://leetcode.com/problems/replace-words/description/
Replace words with suffixes from dictionary #medium #trie
Replace words with suffixes from dictionary #medium #trie
👍2🔥2
https://leetcode.com/problems/continuous-subarray-sum/description/
Any subarray sum % k = 0 #medium #hashmap
Any subarray sum % k = 0 #medium #hashmap
👍2
https://leetcode.com/problems/subarray-sums-divisible-by-k/description/
Count subarrays divisible by
Count subarrays divisible by
k
#medium #hashmap👍1
https://leetcode.com/problems/relative-sort-array/description/
Sort an array by the given order #easy
Sort an array by the given order #easy
👍2
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