Ad
  • Custom User Avatar

    Please don't post solutions (even incorrect ones) in the discourse without the spoiler tag.

    Your solution describes a roundabout way to return n, i.e. the input itself, without doing any calculations pertaining to triangular numbers.

  • Custom User Avatar

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