Ad
  • Custom User Avatar

    Unfortunately, this is not tail-recursive. All of the intermediate calls need to be kept on the stack because they still have work to do, specifically: adding 2 to the result of the recursive call they are waiting on.