Minimum Number Of Steps To Form N
1. You are given a number N. 2. You have to find the minimum number of operations needed to to reach N from 0. 3. operations allowed are - -> Double the number. -> Add one to the number.
1 <= arr[i] <= 10^6
A number N
Check the sample output and question video.