Linked List Math Functions
-
I am trying to implement a linked list which will store large numbers(one digit in each node). I am not really familiar with the different math functions and was wondering what would be the easiest way to add and multiply some of these numbers. Thanks in advance for the help.
-
I am trying to implement a linked list which will store large numbers(one digit in each node). I am not really familiar with the different math functions and was wondering what would be the easiest way to add and multiply some of these numbers. Thanks in advance for the help.
You mean big integers ? Knuth has written a lot of algorithms for these type of integers. In fact they are the kernels of RSA cryptographic algortihms. I don't know if there are available libraries but you should read the following book to understand the theory behing those numbers: "The art of computer programming. 2 : Seminumerical algorithms" / Donald E. Knuth Jonathan de Halleux, Belgium.