You are trying to do greedy for picking yogurt everyday
Your algorithm:
1. Sort all yogurt by their expiry day.
2. Each day, until I am full, I check the next yogurt
2.1 If the yogurt is not expired, I eat them
2.2 If the yogurt is expired, I throw it away and end this day.
The mistakes happen
just make sure you add comments and output statements saying what your trying
to do.
which might help others help you.
--
You received this message because you are subscribed to the Google Groups
"Google Code Jam" group.
To unsubscribe from this group and stop receiving emails from it, send
I know.
Sorry I forgot to mention the question.
This is KIckstart 2018 Round E.
Question A.Yogurt
https://code.google.com/codejam/contest/4394486/dashboard
--
You received this message because you are subscribed to the Google Groups
"Google Code Jam" group.
To unsubscribe from this group and