https://leetcode.com/problems/boats-to-save-people/description/
Minimum total boats with at most
Minimum total boats with at most
2
people & limit
weight #medium #two_pointers #greedy👍2
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/maximum-score-from-removing-substrings/description/
Max score removing from
Max score removing from
s
, x
for ab
, y
for ba
#medium #greedy #stack👍2
https://leetcode.com/problems/separate-black-and-white-balls/description/
Min moves to sort
Min moves to sort
01
string #medium #greedy👍4
https://leetcode.com/problems/longest-happy-string/description/
Longest string of
Longest string of
a
, b
, c
not repeating 3 times #medium #greedy👍3
https://leetcode.com/problems/maximum-swap/description/
Max number after a single digits swap #medium #greedy
Max number after a single digits swap #medium #greedy
👍3
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