summaryrefslogtreecommitdiff
path: root/prolog/problems/trees/maxt_2/en.py
blob: bb222f87692838ac9f539bbc6576f04638de21fe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
# coding=utf-8

name = 'maxT/2'
slug = 'find the greatest element in a tree'

description = '''\
<p><code>maxT(Tree, Max)</code>: <code>Max</code> is the greatest element in the tree <code>Tree</code>.</p>
<pre>
?- maxT(t(1, t(2), t(3)), Max).
  Max = 3.
</pre>'''

hint = {}