Skip to content

Instantly share code, notes, and snippets.

@kokuyouwind
Created April 9, 2016 02:37
Show Gist options
  • Save kokuyouwind/81266a32203c0a1afd36a20e38514d1a to your computer and use it in GitHub Desktop.
Save kokuyouwind/81266a32203c0a1afd36a20e38514d1a to your computer and use it in GitHub Desktop.

1,1,2,3,5は「フィボナッチ数列」です。
再帰関数の実装課題の定番で、関数名としては省略形のfibなどがよく使われます。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment