Read the Medium Article that explains this solution.
PHP Solution for Google HashCode 2019 to achieve 1,123,225 points:
- A 2 points
- B 205,563 points
- C 1,667 points
- D 377,395 points
- E 538,598 points
Run solution_1.php only on the 1st and 2nd inputs
Run solution_2.php only on the 3rd and 4th inputs and tune the $k and $addablePhotos variables