Santa should give people a second chance and not check in the second pass if the status is the same. Only the status from the second pass should actually count for a present.
In the following code from the function SantasList.checkTwice
Santa is checking if the person has the same status as before. The function call will fail if for example, the person was first naughty
and then became nice
. The current implementation is very unfair and I'm sure that Santa would not agree with this.
I consider the impact to be very high, as people will stop believing in Santa if they see they changed from naughty to nice and Santa didn't give them a present.
Manual code review.
The checkTwice
function should only verify that Santa checked the person once and record the status of the second check. The default status of the persons in both lists should be NOT_CHECKED
(separate issue).
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.