watermark logo

How to use BigInteger in java? - Codechef

7 Views
admin
admin
03 Dec 2019

The video is about the BigInteger class in Java. Operations that can be performed, what immutability is and how to use it the class in a programming contest.

Use BigIntegers when you need massive calculations and operations to be made(on massive integers). Some guarantees and quirks are discussed here, which should be enough to get you started coding. Detailed descriptions in the JavaDoc are to be used when looking for further clarity.

The class is a lifesaver when we need to multiply and modulo large numbers in coding contests, as shown in the video for the Codechef problem: Factorial 2.

Codechef contest problem: https://www.codechef.com/problems/FCTRL2
Solution: https://github.com/gkcs/ChainR....eaction/blob/master/
Documentation:
https://docs.oracle.com/javase..../7/docs/api/java/mat

Show more

0 Comments Sort By

No comments found

Facebook Comments

Up next