Challenge: Primitive Calculator
Solve the Primitive Calculator Problem.
We'll cover the following
Problem
Primitive Calculator Problem
Find the minimum number of operations needed to get a positive integer from using only three operations: add , multiply by , and multiply by .
Input: An integer .
Output: The minimum number of operations “,” “,” and “” needed to get from 1.
Level up your interview prep. Join Educative to access 80+ hands-on prep courses.