puzzle_reader
It is a gem that reads a certain format of the PuzzleNode input data: For each test case output a single line with the dictionary word that has the longest common sub-sequence with the search query word. ex.:
2 #number of test cases
3 #number of rows in a data set
one
two
three
2 #number of rows in a data set
awesome
tribute
Usage
it is simple as:
data = PuzzleReader.read(input_file)
Now you can access your data as an array:
data[0][1] # second row in the first test case - "two"
Copyright
Copyright © 2012 Peter Jurczyński. See LICENSE.txt for further details.