summaryrefslogtreecommitdiff
path: root/prolog/problems/trees/depthbt_2/sl.py
diff options
context:
space:
mode:
Diffstat (limited to 'prolog/problems/trees/depthbt_2/sl.py')
-rw-r--r--prolog/problems/trees/depthbt_2/sl.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/prolog/problems/trees/depthbt_2/sl.py b/prolog/problems/trees/depthbt_2/sl.py
new file mode 100644
index 0000000..03589e5
--- /dev/null
+++ b/prolog/problems/trees/depthbt_2/sl.py
@@ -0,0 +1,11 @@
+name = 'depthBT/2'
+slug = 'poišči globino binarnega drevesa'
+
+description = '''\
+<p><code>depthBT(T, D)</code>: <code>D</code> je globina binarnega drevesa <code>T</code>.</p>
+<pre>
+?- depthBT(b(b(b(nil,4,nil),2,b(nil,6,nil)),1,nil), D).
+ D = 3.
+</pre>'''
+
+hint = {}