2 ms·
The best solution is to use the O(log n) time exponentiation of a matrix, which is fast enough to be constant.
by singhrac 6y ago
The best solution is to use the O(log n) time exponentiation of a matrix, which is fast enough to be constant.
2 ms·