There are two arrays in java :
int[] a = new int[]{1,2,3,4};
int[] b = new int[]{4,0,5};
Is there any good algorithm for for multiplying each digit number in array?
I mean if I multiply a with b, then result should be like:
int[] result => {4,9,9,7,7,0}
(because 1234*405 = 499770)
I can only think about elementary school version of multiplying.. but it not only requires me a lot of time and not a effective way in programming.
I want to know a way that calculate array itself, not change it to 'int' variable because I have to treat very very big number over than size of int.
Thanks for you advices in advance :)
- No use "BigInteger"