|Think about Loose Coupling|
Base36 numbers: speed and golfby nop (Hermit)
|on Feb 27, 2002 at 19:11 UTC||Need Help??|
nop has asked for the
wisdom of the Perl Monks concerning the following question:
Given an n-digit long number in base36 [0-9A-Z], what is the fastest way to generate the next number in the sequence? N is large enough that I can't cache the whole mess in some hashes and do fast lookups.
As a curiousity, anyone want to suggest the golfiest way to generate the next number? Thanks -- nop