LeetCode 筆記 - 1342. Number of Steps to Reduce a Number to Zero
題目在此 1342. Number of Steps to Reduce a Number to Zero
給定一個數字,如果是雙數請 除以 2
,不然就請減掉 1
解題思維
Just do it
程式碼
1 | class Solution: |
題目在此 1342. Number of Steps to Reduce a Number to Zero
給定一個數字,如果是雙數請 除以 2
,不然就請減掉 1
Just do it
1 | class Solution: |