https://leetcode.com/problems/divide-nodes-into-the-maximum-number-of-groups/description/
Max count of bipartitions in a graph #hard #bfs #graph
Max count of bipartitions in a graph #hard #bfs #graph
👍2🔥1
https://leetcode.com/problems/making-a-large-island/description/
Max area after filling one empty 2D grid cell #hard #dfs #union_find
Max area after filling one empty 2D grid cell #hard #dfs #union_find
👍2🔥1
https://leetcode.com/problems/check-if-array-is-sorted-and-rotated/description/
Is array sorted and rotated? #easy
Is array sorted and rotated? #easy
🔥2👍1
https://leetcode.com/problems/longest-strictly-increasing-or-strictly-decreasing-subarray/description/
Longest strict monotonic subarray #easy
Longest strict monotonic subarray #easy
🔥3👍1
https://leetcode.com/problems/maximum-ascending-subarray-sum/description/
Max increasing subarray sum #easy
Max increasing subarray sum #easy
🔥2👍1
https://leetcode.com/problems/check-if-one-string-swap-can-make-strings-equal/description/
One swap to make stings equal #easy
One swap to make stings equal #easy
🔥1
https://leetcode.com/problems/tuple-with-same-product/description/
Count uniq 4-tupples a*b=c*d #medium #counting #sort
Count uniq 4-tupples a*b=c*d #medium #counting #sort
👍1🔥1
https://leetcode.com/problems/find-the-number-of-distinct-colors-among-the-balls/description/
Running colors counter #medium #hashmap
Running colors counter #medium #hashmap
👍1🔥1
https://leetcode.com/problems/design-a-number-container-system/description/
Smallest running index of number in map #medium #treeset
Smallest running index of number in map #medium #treeset
👍2🔥1
https://leetcode.com/problems/count-number-of-bad-pairs/description/
Count pairs a[i] - a[j] != j - i #medium #counting #sorting
Count pairs a[i] - a[j] != j - i #medium #counting #sorting
👍1🔥1
https://leetcode.com/problems/remove-all-occurrences-of-a-substring/description/
Remove substring recursively #medium
Remove substring recursively #medium
🔥1
https://leetcode.com/problems/max-sum-of-a-pair-with-equal-sum-of-digits/description/
Max pairs sum with equal digits sum #medium
Max pairs sum with equal digits sum #medium
🔥2
https://leetcode.com/problems/minimum-operations-to-exceed-threshold-value-ii/description/
Count nums += min(x,y)*2+max(x,y) < k #medium #heap
Count nums += min(x,y)*2+max(x,y) < k #medium #heap
👍1🔥1
https://leetcode.com/problems/product-of-the-last-k-numbers/description/
Running suffix product #medium #math #prefix_product
Running suffix product #medium #math #prefix_product
👍2🔥1
https://leetcode.com/problems/find-the-punishment-number-of-an-integer/description/
Sum x^2 if it's string partition sum = x #medium #backtracking
Sum x^2 if it's string partition sum = x #medium #backtracking
👍1🔥1
https://leetcode.com/problems/construct-the-lexicographically-largest-valid-sequence/description/
Construct array x = 1..n, a[i] = x, a[i + x] = x #medium #backtracking
Construct array x = 1..n, a[i] = x, a[i + x] = x #medium #backtracking
👍2❤1🔥1
https://leetcode.com/problems/letter-tile-possibilities/description/
Count uniq sequences from letters #medium #backtracking
Count uniq sequences from letters #medium #backtracking
👍2🔥1
https://leetcode.com/problems/construct-smallest-number-from-di-string/description/
Smallest number from 1..9 and Inc-Dec pattern #medium #backtrack #greedy
Smallest number from 1..9 and Inc-Dec pattern #medium #backtrack #greedy
👍2🔥1
https://leetcode.com/problems/the-k-th-lexicographical-string-of-all-happy-strings-of-length-n/description/
k`th string of `abc
permutations #medium #backtracking👍2🔥1