483 Smallest Good Base
Problem:
Input: "13"
Output: "3"
Explanation: 13 base 3 is 111.Input: "4681"
Output: "8"
Explanation: 4681 base 8 is 11111.Input: "1000000000000000000"
Output: "999999999999999999"
Explanation: 1000000000000000000 base 999999999999999999 is 11.Solutions:
Last updated