Byte order (or you are both wro
robison at uiucdcsb.CS.UIUC.EDU
robison at uiucdcsb.CS.UIUC.EDU
Wed Apr 16 08:23:00 AEST 1986
> CHALLENGE: Come up with a scheme for representing numbers, and a sorting
> scheme in which numbers sort naturally. Your scheme must deal with variable
> length character strings and variable size numbers. That is, you cannot
> requires strings to be padded with nulls, or numbers to be padded with zeros.
...
-4 = AAAAZ
-3 = AAAZ
-2 = AAZ
-1 = AZ
0 = M
1 = Z
2 = ZZ
3 = ZZZ
4 = ZZZZ
...
Arch D. Robison
University of Illinois at Urbana-Champaign
More information about the Comp.lang.c
mailing list