https://leetcode.com/problems/design-a-food-rating-system/description/
Given
Given
foods
, cuisines
and ratings
implement efficient methods changeRating(food, newRating)
and highestRated(cuisine)
👍1
https://leetcode.com/problems/maximum-product-difference-between-two-pairs/description/
max * second_max - min * second_min
max * second_max - min * second_min
👍1
https://leetcode.com/problems/buy-two-chocolates/description/
Money change after two chocolates bought
Money change after two chocolates bought
👍1
https://leetcode.com/problems/widest-vertical-area-between-two-points-containing-no-points/description/
Max x window between xy points
Max x window between xy points
👍2
https://leetcode.com/problems/maximum-score-after-splitting-a-string/description/
Max left_zeros + right_ones in 01-array
Max left_zeros + right_ones in 01-array
👍1
https://leetcode.com/problems/path-crossing/description/
Is path string of 'N', 'E', 'W', 'S' crosses
Is path string of 'N', 'E', 'W', 'S' crosses
👍1
https://leetcode.com/problems/minimum-changes-to-make-alternating-binary-string/description/
Minimum operations to make
Minimum operations to make
01
-string with no two adjacent equal👍1
https://leetcode.com/problems/decode-ways/description/
Ways to decode back 'A' -> '1', 'B' -> '2' … 'Z' -> '26'
Ways to decode back 'A' -> '1', 'B' -> '2' … 'Z' -> '26'
👍1
https://leetcode.com/problems/number-of-dice-rolls-with-target-sum/description/
Ways to throw once
Ways to throw once
n
dices with k
faces to make target
sum.👍1
https://leetcode.com/problems/minimum-time-to-make-rope-colorful/description/
Min sum of removed duplicates in array.
Min sum of removed duplicates in array.
👍1
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