Closed AtiyahElsheikh closed 2 years ago
youngestAliveChild sounds as if it returns the youngest child, not its age. Maybe name it ageYoungestChild?
And a general remark - the in
operator is really, really slow with vectors (has to check all elements).
Women with young childern of age <= 1 should not give birth Additional checks for assumptions Efficiency will be attempted in a future iteration