You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The logic used here is that whenever we try to convert an integer (+ve) integer to decimal, we divide it by 2 until we can reduce the integer to 1 or 0. Then we cumulate the remainder every time we divide and find our result.