This repository contains my solutions to the problems from Facebook Hacker Cup 2017. These solutions are provided "as is" - I give no guarantees that they will work as expected.
You can compile all the problems by issuing the following command:
$ make
If you want to compile only a specific problem, issue the following command, replacing <problem_id>
with the section and identifier of the problem you want to compile (see section "Problems Solved" for the list of possible identifiers):
$ make <problem_id>
Running a compiled problem is just a matter of executing a command similar to the next one, replacing <problem_id>
with the identifier of the desired problem:
$ ./<problem_id>
Unless stated otherwise, every problem in this repository reads from the standard input and writes to the standard output.
The following is the list of the problems solved. Each problem identifier is specified between round brackets. Problems marked with ✓ are done, while problems with ✗ are not complete or aren't efficient enough for the problem's limits.
- ✓ 25: Progress Pie (
progress-pie
) - ✓ 30: Lazy Loading (
lazy-loading
) - ✓ 45: Fighting the Zombie (
fighting-the-zombie
)
- ✓ 10: Pie Progress (
pie-progress
) - ✓ 25: Fighting the Zombies (
fighting-the-zombies
) - ✓ 25: Manic Moving (
manic-moving
) - ✓ 40: Beach Umbrellas (
beach-umbrellas
)