You are given an integer n. Initially, you have a single integer n.
In each operation, you can pick any integer x where a and b such that
You repeat this process until all numbers in the collection are equal to
Return the minimum total cost needed to split n entirely into ones.
Constraints:
n
You are given an integer n. Initially, you have a single integer n.
In each operation, you can pick any integer x where a and b such that
You repeat this process until all numbers in the collection are equal to
Return the minimum total cost needed to split n entirely into ones.
Constraints:
n