Update syntax highlighting, update allUnique

This commit is contained in:
Angelos Chalaris
2019-08-20 10:09:53 +03:00
parent 59fd9ad9a8
commit 0f405f0da9
35 changed files with 73 additions and 72 deletions

View File

@ -7,14 +7,14 @@ Returns the n-th term in a Fibonnaci sequence that starts with 1
A term in a Fibonnaci sequence is the sum of the two previous terms.
This function recursively calls the function to find the n-th term.
``` python
```py
def fibonacci_until_num(n):
if n < 3:
return 1
return fibonacci_until_num(n - 2) + fibonacci_until_num(n - 1)
```
``` python
```py
fibonnaci_until_num(5) # 5
fibonnaci_until_num(15) # 610
```