Minimum number of operation required to convert number x into y - GeeksforGeeks
Given a initial number x and two operations which are given below:
- Multiply number by 2.
- Subtract 1 from the number.
The task is to find out minimum number of operation required to convert number x into y using only above two operations. We can apply these operations any number of times.
Read full article from Minimum number of operation required to convert number x into y - GeeksforGeeks
No comments:
Post a Comment