blob: 20db52eecd989c6dee089ad5bf7d8031865eeb5b (
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 = {}
|