You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I keep getting timeout on exercise 2.1. I copied the code and paste it into a local worksheet, it worked. The changes are minimal and can't be reduced:
I keep getting timeout on exercise 2.1. I copied the code and paste it into a local worksheet, it worked. The changes are minimal and can't be reduced:
def fib(n: Int): Int = { @annotation.tailrec def loop(n: Int, prev: Int, cur: Int): Int = if (n <= 1) prev else loop(n - 1, cur, prev + cur) loop(n, 0, 1) }
The text was updated successfully, but these errors were encountered: