我知道很多人都用string 或long 來做這題,雖然很簡單卻沒辦法學到這題的關鍵。 LeetCode 官方解答用了一個很tricky 的方式偵測overflow/underflow ...
確定! 回上一頁