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
Rewrote decimal_to_any to replace a tangled loop that computed divmod and // separately on each iteration with a single clean while num loop. The original had redundant division, confusing early returns mid-loop, and a base validation check that missed negative bases. Added an explicit num == 0 base case, fixed the validation order so type checks run before value checks, and replaced base in (0, 1) with base < 2. All existing doctests pass unchanged.
0 commit comments