Number of Steps to Reduce a Number to 0 — LeetCode
Dec 5, 2020
This question has been asked by Microsoft in the past 6 months:
This problem is solved by utilizing the modulus (%) operator. It is used to discover if our problem is even. If num % 2 == 0, it is an even number.
Here is my solution:
All source code is located at my Github.
Links to all of my socials are here.