Floating-Point Error
- 2023.07.24
- Programming Techniques / Tools
- FloatingPointError
ε Epsilon Python float_info.epsilon 2.220446049250313e-16 #FloatingPointError
ε Epsilon Python float_info.epsilon 2.220446049250313e-16 #FloatingPointError
https://leetcode.com/contest/biweekly-contest-109/problems/ways-to-express-an-integer-as-sum-of-powers/ Solution 當你需要的是出現的次數而無關順序時 ⇒ 使用 list Counter Time Complexity: O() Space Complexity: O() (The inp ...