+ 5

Is there a way to handle data overflow?

Wanted to know if there is a way to work with large numbers.. say..of order 10-12 without getting an overflow. Please help. Is there a way without using the int_64 etc.... like... a generic method? Thanks.

30th Mar 2017, 6:27 PM
StillSoul‌‌‌‌‌‌‌‌‌‌‌‌‌‍
StillSoul‌‌‌‌‌‌‌‌‌‌‌‌‌‍ - avatar
2 odpowiedzi
+ 5
In Java, you can use BigInteger to operate on integers having upto 2^31-1 digits. https://code.sololearn.com/WS60ll19CFej/?ref=app
31st Mar 2017, 1:33 AM
Krishna Teja Yeluripati
Krishna Teja Yeluripati - avatar
+ 6
wow.That's nice code.
31st Mar 2017, 4:19 AM
StillSoul‌‌‌‌‌‌‌‌‌‌‌‌‌‍
StillSoul‌‌‌‌‌‌‌‌‌‌‌‌‌‍ - avatar