We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
const factorial = (n) => n == 0 ? 1 : n * factorial(n - 1);
factorial(n) => n == 0 ? 1 : n * factorial(n - 1);
def factorial(n): return 1 if n == 0 else n * factorial(n-1)
def factorial(n) return 1 if n == 0 return n * factorial(n - 1) end
function factorial(n) return n == 0 and 1 or n * factorial(n - 1) end
The text was updated successfully, but these errors were encountered:
mauriciotogneri
No branches or pull requests
Javascript
Dart
Python
Ruby
Lua
The text was updated successfully, but these errors were encountered: