Implement Biginteger Multiply
- use integer array to store a biginteger
like 297897654 will be stored as {2,9,7,8,9,7,6,5,4} - implement the multiply function for bigintegers
Expamples: {2, 9, 8, 8, 9, 8} * {3,6,3,4,5,8,9,1,2} = {1,0,8,6,3,7,1,4,1,8,7,8,9,7,6}
I failed to implement this class and thought it for a few weeks, couldn’t get the answer.
Anybody can help me implement it using C#/Java?
Thanks a lot.
Do you know how to do multiplication on paper?
I would just implement that algorithm in code.