Quantcast
Channel: CodeChef Discuss - latest questions
Viewing all articles
Browse latest Browse all 39796

Operation on Huge numbers in C++

$
0
0

In C++ / C we can't work with very large numbers like 10^100 ,But in some cases we need to work with such large numbers specially for solving some problems.... I searched net and from my own idea I think I can do this by storing all digits in an array and use laws of number theory to do many operations like addition,multiplication and output as string...... But are there other effective ways to do this faster like any library or STL in C++ or C to work with such huge numbers because in live competitions it's really needed to code faster and this way takes lots of memory. Or,Is there any algorithms or technique to do any operation s on large numbers quicker and good way.... Please if you know any links or sites mention. I ll appreciate any help. Thanks :-)


Viewing all articles
Browse latest Browse all 39796

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>