Problem
Java
Accepted
In mathematics and computer programming, exponentiating by squaring is a general method for fast computation of large positive integer powers of a number, or more generally of an element of a semigroup, like a polynomial or a square matrix.
1 | class Solution { |
Submission Detail
- 304 / 304 test cases passed.
- Runtime: 0 ms, faster than 100.00% of Java online submissions for Pow(x, n).
- Memory Usage: 36.6 MB, less than 5.88% of Java online submissions for Pow(x, n).
Time Limit Exceeded
1 | class Solution { |
Submission Detail
- 299 / 304 test cases passed.
- Status: Time Limit Exceeded