How can I efficiently exponentiate large BigIntegers in Java?
I've been working on a method for exponentiating large BigIntegers and longs in Java. Here's the code I wrote: ```java public BigInteger exp(long b, long e){ BigInteger a…
I've been working on a method for exponentiating large BigIntegers and longs in Java. Here's the code I wrote: ```java public BigInteger exp(long b, long e){ BigInteger a…