Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 14 lines (11 sloc) 0.845 kb
60cbd38 moved rules to new README
Ben authored
1 At CodeMash StoutSystems offered up a fast programming contest during the vendor sessions slot.
2 First team to upload a correct output file won. We won. :-)
3
4 This repository holds our winning solution (~7 minutes) hacked together in Ruby on Josh's MBP in TextMate
5 along with the given input file (input.txt) and a sample output file that we won with (output.txt).
6
7 All other solutions are other attempts done by myself or others to practice and compare approaches and languages.
8
9 Rules
10 * read file (header row + lines, tab delimited)
11 * output data to a new file in same format preserving the header row
12 * remove any non alpha characters from the last name column and reverse the text
13 * remove any lines where the last name column is blank
14 * sort in ascending order by last name column then by the magic number column (as a number, not a string)
Something went wrong with that request. Please try again.