[Newbies] crossSum, an alternative implementation

Bert Freudenberg bert at impara.de
Wed May 10 16:00:22 UTC 2006


Am 10.05.2006 um 16:57 schrieb Enrico Schwass:

> Hello
>
> As I guessed, there is more than one way to do it.
> Rons solution is similiar to mine, the one Markus posted
> is similiar to the other I mentioned before. Anyway.
> Both of you did it shorter. Thank you for your contributions
> That gives me some more inspiration.

Note though that Markus's solution is both more flexible by allowing  
other bases than 10, and more than 20 times faster for small integers  
(still 2x for large ones).

- Bert -



More information about the Beginners mailing list