We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 70bcdfa commit 22473ffCopy full SHA for 22473ff
src/ruby/fibonacci_memoization.rb
@@ -1,3 +1,5 @@
1
+# frozen_string_literal: true
2
+
3
def fibonacci(n, memo = {})
4
if n <= 1
5
return 1
0 commit comments