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

id = 143
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 = {}