Herr Deng桑的教學blog
這是Herr Deng桑的教學blog,主要處理作業與班導事務,另外還有數位小品。
網頁
(移至...)
首頁
密碼學
程式設計Programming
APP
計算機概論
▼
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請進]
---
‹
›
首頁
查看網路版