You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[BUG] Pow.pow silently wraps when the result exceeds long range #1
Mirror of upstream TheAlgorithms#7751, tracked on this fork for a course lab (no upstream contribution).
Description
com.thealgorithms.maths.Pow.pow(int a, int b) multiplies into a long without checking whether the result is representable, so it silently wraps on overflow.
Activity