Run
$ stack build
$ stack exec mc-read-exe
Results
Results are stroed in the file results.txt
Prompt
We have supplied you with a master_list
, which is a collection of book recommendations from famous authors. Each recommendation is separated by a new line, and each field of data for a given recommendation is tab-separated. Assume that this list could grow arbitrarily large in size.
Your task is to write a program that returns all books that have been recommended n
times. Decide which data is important to return.
You may write the program in whichever programming language you feel most comfortable!
Please ask us questions, use Google, or consult documentation if you get stuck. There are many possible solutions here, so we are more interested in the process.
Things to Note:
- There may be multiple books recommended
n
times. They all must be returned. - There may be duplicate book titles, but every Title:Author combination is unique.
- Some entries do not have data for every field
Desired Behavior:
$ node book-parser.js 5
# [ <all books that have been recommended exactly 5 times> ]
Time
30 minutes