Ezvor

1891. Cutting Ribbons

MediumArray Preparing judge… LeetCode
ArrayBinary Search

Hints

Hint 1
Use binary search on the answer.
Hint 2
You can get l/m branches of length m from a branch with length l.