網頁

2024年9月5日 星期四

python C++速解Leetcode算術題2028 Find Missing Observations


python C++速解Leetcode算術題2028  Find Missing Observations
[Python code請進]

2024年9月3日 星期二

python C++速解Leetcode 1945 Sum of Digits of String After Convert


python C++速解Leetcode 1945  Sum of Digits of String After Convert
這是個簡單問題,有技巧。
第一次轉換不需要用bigINT來存,只是將數字與第1輪的數字相加即可。
由於s.length最多可能為100,因此使用bigInt或其他字串效率非常低。
[Python code請進]
---