Skip to content

Commit 92a2ab3

Browse files
committed
minimal improvements to rekurzija.html
1 parent 0e90bff commit 92a2ab3

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

p/rekurzija.html

+6-1
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,10 @@
8989
--
9090
89, ...
9191

92+
93+
.small[Zanimiva lastnost: vsako število je približno
94+
[1.618](https://www.google.com/search?q=zlati+rez)-krat večje od prejšnjega.]
95+
9296
--
9397

9498
Python koda:
@@ -117,6 +121,7 @@
117121
RuntimeError: maximum recursion depth exceeded
118122
```
119123
---
124+
class: bg-black
120125
.center[![Infinite recursion — You gotta know when to quit](../resources/rekurzija/recursion-quit.png)]
121126
---
122127
## Ustavitveni pogoj
@@ -164,7 +169,7 @@
164169
```python
165170
def fib(N):
166171
if N <= 1: # izhodni pogoj
167-
return N # ne ponovimo rekurzivnega klica
172+
return N # ne ponovimo rekurzivnega klica, ampak samo vrnemo vrednost N
168173
else:
169174
return fib(N-1) + fib(N-2)
170175
```

remark-style.css

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
html,body,textarea#source {width:99%; height:97%; margin:0; padding:0; border:0;}
44
h1, h2, h3, h4, h5, h6 {position:relative; z-index:3;}
5+
.bg-black {background:black;}
56
body {font-size:20px; line-height:170%; font-family:DejaVu Sans, sans-serif;}
67
noscript {color:red;}
78
h1 {line-height:120%;}

0 commit comments

Comments
 (0)