File: fib.py

package info (click to toggle)
python-rq 2.5-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,536 kB
  • sloc: python: 13,369; makefile: 22; sh: 19
file content (5 lines) | stat: -rw-r--r-- 108 bytes parent folder | download | duplicates (2)
1
2
3
4
5
def slow_fib(n):
    if n <= 1:
        return 1
    else:
        return slow_fib(n - 1) + slow_fib(n - 2)