Solve hoppity first regardless of what you may have been told to do.
Follow these instructions carefully. The robot has zero tolerance for error.
Your program must be compatible with GHC 6.8.
You must provide a makefile or antfile whose default target builds an executable named hoppity
, not hoppity.exe
. You can use mine if you put all of your code in hoppity.hs
. To reuse my makefile for other puzzles, change the keyword.
On Windows, save your source code and make/antfile with no byte-order mark (BOM). In Notepad, select encoding “ANSI”. In Notepad++, select encoding “UTF-8 without BOM”. No action is required in editors intended specifically for programming.
Read from the file specified as the first command-line argument. Open this file for reading only.
Write the unique correct sequence of bytes to the standard output stream (“the screen”) and terminate. Do not write to the standard error stream.
Attaching your source code and a make/antfile, send an email to 1051962371@fb.com
with subject hoppity
. Do not attach a digital signature.
You should receive a reply within an hour or so.
Sample solution: Makefile, hoppity.hs
© 2009–2011 David Eisenstat
part of An unofficial guide to the Facebook Engineering Puzzles