UVa 713. Adding Reversed Numbers

UVa 713: Adding Reversed Numbers is a straight-forward problem that can be solved using an ad-hoc algorithm. We have discussed a similar problem in a previous blog-post. However, this problem imposes following additional constraint—numbers will be at most 200 characters long--which necessitates the use of BigInteger. Following Java code shows such an ad-hoc algorithm that solves this problem by considering the stated constraints.

[gist]5139001[/gist]

Please leave a comment if you have any question. Thanks.


See Also

see Party Schedule post

SPOJ 42. Adding Reversed Numbers (ADDREV) with F#.