Ad
  • Custom User Avatar

    You should return, not print.

    Nobody's argued about the ranking except you. And there's a lot shorter, O(1) solution which works for any possible and impossible ages of the father and son, so it's your mistake overcomplicating the task.

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution