/simple-program

C++ program to make any number power of two with minimum steps.

Primary LanguageC++

Assignment 1

C++ program to make any number power of two with minimum steps. Steps required are :

-> erase any digit of the number (it's acceptable that the number before the operation has exactly one digit and after the operation, it is "empty");

-> add one digit to the right.