Ad
  • Custom User Avatar

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

  • Custom User Avatar

    The examples count amount of ways you can sum up to the value

    My description excluding the examples even has sum in it.
    It is pretty clear. The examples find how many values of n that exist. The commented out parts list out the consecutive integers.

  • Custom User Avatar

    'x)

    done ;)

    (note: don't forget to state the language you're using, in this type of case, because that part of the description depends on it)

  • Custom User Avatar

    You can log inputs to console. For java: System.out.println(), for JS: console.log(), etc...