Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
|
|
@ -0,0 +1,15 @@
|
|||
(de radixSort (Lst)
|
||||
(let Mask 1
|
||||
(while
|
||||
(let (Pos (list NIL NIL) Neg (list NIL NIL) Flg)
|
||||
(for N Lst
|
||||
(queue
|
||||
(if2 (ge0 N) (bit? Mask N)
|
||||
(cdr Pos) Pos Neg (cdr Neg) )
|
||||
N )
|
||||
(and (>= (abs N) Mask) (on Flg)) )
|
||||
(setq
|
||||
Lst (conc (apply conc Neg) (apply conc Pos))
|
||||
Mask (* 2 Mask) )
|
||||
Flg ) ) )
|
||||
Lst )
|
||||
Loading…
Add table
Add a link
Reference in a new issue