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.