summaryrefslogtreecommitdiff
path: root/prolog/problems/trees/mirrorbt_2/sl.py
diff options
context:
space:
mode:
authorTimotej Lazar <timotej.lazar@fri.uni-lj.si>2016-04-11 00:10:57 +0200
committerTimotej Lazar <timotej.lazar@fri.uni-lj.si>2016-04-11 00:10:57 +0200
commitacce0e01cdb2a57cda35e040035dbf1da6b96031 (patch)
treee5a08e4a45893463e7bacfd82454a1a07fecba69 /prolog/problems/trees/mirrorbt_2/sl.py
parent169c995732f3840aae6750479b49a4d0bcd4b198 (diff)
Prolog: add test cases for the trees group
Diffstat (limited to 'prolog/problems/trees/mirrorbt_2/sl.py')
-rw-r--r--prolog/problems/trees/mirrorbt_2/sl.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/prolog/problems/trees/mirrorbt_2/sl.py b/prolog/problems/trees/mirrorbt_2/sl.py
new file mode 100644
index 0000000..08008ab
--- /dev/null
+++ b/prolog/problems/trees/mirrorbt_2/sl.py
@@ -0,0 +1,11 @@
+name = 'mirrorBT/2'
+slug = 'prezrcali binarno drevo'
+
+description = '''\
+<p><code>mirrorBT(T, NewT)</code>: binarno drevo <code>NewT</code> dobimo tako, da <code>T</code> prezrcalimo čez vertikalo skozi koren.</p>
+<pre>
+?- mirrorBT(b(b(b(nil,4,nil),2,b(nil,5,nil)),1,b(nil,3,nil)), X).
+ X = b(b(nil,3,nil), 1, b(b(nil,5,nil), 2, b(nil,4,nil))).
+</pre>'''
+
+hint = {}