Given a number s in their binary representation. Return the number of steps to reduce it to 1 under the following rules: If the current number is even, you …
Given a non-negative integer num, return the number of steps to reduce it to zero. If the current number is even, you have to divide it by 2, otherwise, …