3 ms·
I think I would use BigInteger for that. You can create them from and convert them to arrays of bytes, count bits, shift them left and right, and add them, resi
by Someone 5y ago
I think I would use BigInteger for that. You can create them from and convert them to arrays of bytes, count bits, shift them left and right, and add them, resizing storage where needed.
https://docs.oracle.com/javase/7/docs/api/java/math/BigInteger.html https://docs.oracle.com/javase/7/docs/api/java/math/BigInteg...