Ad
  • Custom User Avatar

    I had some problems understanding the error handling too.

    Errors, if:

    n is not a number
    n not an integer
    n is negative or 0
    

    The three functions should respectively return [], [[],[]] and [].
    So the first function should return [], the second one should return [[],[]], and the last [].
    I hope this is going to help you.