The better option will be to shift and divide. As you can store the arbitrary large number in a link list or int array. Left shift the right array and subtract, this will give you a better approach, rathar than just subtracting each time. Add them in the end ..
On Dec 27, 1:47 am, Aniket <[email protected]> wrote: > DIVIDE TWO VARYING LENGTH NUMBERS > EX: ONE CAN BE UPTO 60 DIGIT AND OTHER 40 DIGIT > > Well,I thought of an approach.Store each digit of each number in two > separate integer arrays(From right to left).Then apply the subtraction > method.Will it be feasible? -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en.
