https://leetcode.com/problems/string-compression-ii/description/
Min length of run-length encoded
Min length of run-length encoded
aabccc
-> a2bc3
after deleting at most k
characters👍1
https://leetcode.com/problems/minimum-difficulty-of-a-job-schedule/description/
Min sum of maximums
Min sum of maximums
jobDifficulty[i]
per day d
preserving the order👍1
https://leetcode.com/problems/redistribute-characters-to-make-all-strings-equal/description/
Is it possible to split all the
Is it possible to split all the
words[]
characters into words.size
groups.👍1
https://leetcode.com/problems/largest-substring-between-two-equal-characters/description/
Max distance between same chars in string.
Max distance between same chars in string.
👍1
https://leetcode.com/problems/assign-cookies/description/
Max count of greedy children
Max count of greedy children
g[Int]
to assign cookies with sizes s[Int]
.👍1
https://leetcode.com/problems/convert-an-array-into-a-2d-array-with-conditions/description/
Convert numbers array into array of unique number-rows.
Convert numbers array into array of unique number-rows.
👍2😁1
https://leetcode.com/problems/number-of-laser-beams-in-a-bank/description/
Beams count between consequent non-empty row's `1`s.
Beams count between consequent non-empty row's `1`s.
👍1
https://leetcode.com/problems/minimum-number-of-operations-to-make-array-empty/description/
Minimum pairs or triples duplicate removal operations to empty array of numbers.
Minimum pairs or triples duplicate removal operations to empty array of numbers.
👍1
https://leetcode.com/problems/longest-increasing-subsequence/description/
Longest increasing subsequence length.
Longest increasing subsequence length.
👍2
https://leetcode.com/problems/maximum-profit-in-job-scheduling/description/
Max profit in non-intersecting jobs given
Max profit in non-intersecting jobs given
startTime[]
, endTime[]
and profit[]
.👍1
https://leetcode.com/problems/arithmetic-slices-ii-subsequence/description/
Count of arithmetic subsequences.
Count of arithmetic subsequences.
👍2
https://leetcode.com/problems/leaf-similar-trees/description/
Are leafs sequences equal for two trees.
Are leafs sequences equal for two trees.
👍2
https://leetcode.com/problems/amount-of-time-for-binary-tree-to-be-infected/description/
Max distance from node in a Binary Tree.
Max distance from node in a Binary Tree.
👍2
https://leetcode.com/problems/maximum-difference-between-node-and-ancestor/description/
Max diff between node and ancestor in a binary tree.
Max diff between node and ancestor in a binary tree.
👍3
https://leetcode.com/problems/determine-if-string-halves-are-alike/description/
Are
Are
aeiouAEIOU
count the same in the two halves of string.👍2
https://leetcode.com/problems/minimum-number-of-steps-to-make-two-strings-anagram/description/
Min operations to make string
Min operations to make string
t
anagram of s
.👍2
https://leetcode.com/problems/determine-if-two-strings-are-close/description/
Are strings convertible by swapping existing chars positions or frequencies.
Are strings convertible by swapping existing chars positions or frequencies.
👍2
https://leetcode.com/problems/find-players-with-zero-or-one-losses/description/
[sorted winners list, sorted single lose list]
[sorted winners list, sorted single lose list]
👍1
https://leetcode.com/problems/insert-delete-getrandom-o1/description/
Implement HashSet<Int> with
Implement HashSet<Int> with
random
method.👍1