2020-03-28から1日間の記事一覧
LeetCode の挑戦ログ Problem https://leetcode.com/problems/number-of-steps-to-reduce-a-number-to-zero/ 正の整数が渡される 偶数なら 2 で割る、奇数なら 1 を引く 0 になるまでの回数を数える Solution class Solution { public int numberOfSteps(int…
LeetCode の挑戦ログ Problem https://leetcode.com/problems/number-of-steps-to-reduce-a-number-to-zero/ 正の整数が渡される 偶数なら 2 で割る、奇数なら 1 を引く 0 になるまでの回数を数える Solution class Solution { public int numberOfSteps(int…