Ad
  • Custom User Avatar

    (TypeScript): The requirement that "it calls itself" doesn't allow for tail call optimization using an inner "tail-call optimized" function. Was able to pass the checks with unnecessary conditionals for 1 and 0 in the "outer" function. :/