diff options
author | Timotej Lazar <timotej.lazar@fri.uni-lj.si> | 2016-04-11 00:10:57 +0200 |
---|---|---|
committer | Timotej Lazar <timotej.lazar@fri.uni-lj.si> | 2016-04-11 00:10:57 +0200 |
commit | acce0e01cdb2a57cda35e040035dbf1da6b96031 (patch) | |
tree | e5a08e4a45893463e7bacfd82454a1a07fecba69 /prolog/problems/trees/depthbt_2/sl.py | |
parent | 169c995732f3840aae6750479b49a4d0bcd4b198 (diff) |
Prolog: add test cases for the trees group
Diffstat (limited to 'prolog/problems/trees/depthbt_2/sl.py')
-rw-r--r-- | prolog/problems/trees/depthbt_2/sl.py | 11 |
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 = {} |