On topic: The Wednesday Challenge

Andy Armstrong andy at hexten.net
Wed Aug 15 15:01:00 BST 2007


Given a 64 Mbyte file containing random binary data write a perl  
program such that

$ perl myprog.pl < 64m.bin > 64m.sorted.bin

outputs a file 64m.sorted.bin with all the bytes sorted in ascending  
order. Marks will be given for speed, brevity and parsimonious use of  
memory.

-- 
Andy Armstrong, hexten.net



More information about the london.pm mailing list