If you start with $1 and, with each move, you can either double your money or add another $1, what is the smallest number of moves you have to make to get to exactly n(number).
Solution Stats
Problem Comments
2 Comments
Solution Comments
Show comments
Loading...
Problem Recent Solvers16
Suggested Problems
-
5165 Solvers
-
middleAsColumn: Return all but first and last element as a column vector
653 Solvers
-
Find the maximum number of decimal places in a set of numbers
3609 Solvers
-
Rotate input square matrix 90 degrees CCW without rot90
699 Solvers
-
Construct an index vector from two input vectors in vectorized fashion
462 Solvers
More from this Author1
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
The test suite is very weak... :-/
And I am a beginner :-)