Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Challenge Solution we wrote to win Stout Systems Codemash Challenge
Ruby
branch: master

This branch is 2 commits ahead of JoshReedSchramm:master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
c_sharp_linq_kevin
ruby_ben
ruby_winning
README
input.txt
output.txt

README

At CodeMash StoutSystems offered up a fast programming contest during the vendor sessions slot.
First team to upload a correct output file won.  We won. :-)

This repository holds our winning solution (~7 minutes) hacked together in Ruby on Josh's MBP in TextMate 
along with the given input file (input.txt) and a sample output file that we won with (output.txt).

All other solutions are other attempts done by myself or others to practice and compare approaches and languages.

Rules
* read file (header row + lines, tab delimited)
* output data to a new file in same format preserving the header row
* remove any non alpha characters from the last name column and reverse the text
* remove any lines where the last name column is blank
* 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.