Ad
  • Default User Avatar

    I did this in Python and first tried to avoid defining new functions and do it recursively, but even if my code completed the sample tests I couldn´t pass when attempting the full tests. My question is if this could have been completed recursively, since I couldn´t find a way to avoid recalculating every day for john and ann in each recursion which obviously made my code time out when attempting the full set of tests.