397 Integer Replacement
397. Integer Replacement
1. Question
Input:
8
Output:
3
Explanation:
8 ->4 ->2 ->1Input:
7
Output:
4
Explanation:
7 ->8 ->4 ->2 ->1
or
7 ->6 ->3 ->2 ->12. Implementation
3. Time & Space Complexity
Last updated