← All problemsSign in

1553. Minimum Number of Days to Eat N Oranges

LeetCodeDynamic ProgrammingMemoizationOpen on judge ↗

There are n oranges in the kitchen and you decided to eat some of these oranges every day as follows: - Eat one orange. - If the number of remaining oranges n is divisible by 2 then you can eat n / 2 oranges. - If the number of remaining oranges n is divisible by 3 then you can eat 2 * (n / 3) oranges. You can only choose one of the actions per day. Given the integer n, return the minimum num

HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17

CodeSearch Tutor

Hints, not spoilers — it won’t hand over the full solution unless you insist.

voice by Sarvam AI

Sign in to chat with the tutor and save your progress.

Sign in to start