use array/vector of int to store value. E.g. if you want to store value : 23451023456678, you can't in a normal int or long but You can have int array /vector , say "int A[SIZE] " or " vector<int> A(SIZE,0) A[0] 78 A[1] 66 A[2] 45 .. ..
I have coded this long back to calculate factorial of big numbers if I use Array SIZE = 10K , I can find max factorial of 3249 ( 10,000 digits ) for 10000! , I tried with Array SIZE = 100K , I got answer which has '35659' digits ! Let me know if my hint make sense. -- 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.
