summaryrefslogtreecommitdiff
path: root/prolog/problems/lists/max_2
diff options
context:
space:
mode:
Diffstat (limited to 'prolog/problems/lists/max_2')
-rw-r--r--prolog/problems/lists/max_2/sl.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/prolog/problems/lists/max_2/sl.py b/prolog/problems/lists/max_2/sl.py
new file mode 100644
index 0000000..81c354b
--- /dev/null
+++ b/prolog/problems/lists/max_2/sl.py
@@ -0,0 +1,15 @@
+# coding=utf-8
+
+name = 'max/2'
+slug = 'Poišči največji element v danem seznamu'
+
+description = '''\
+<p><code>max(L, Max)</code>: <code>Max</code> je največji element v seznamu <code>L</code>.</p>
+<pre>
+ ?- max([5,4,1,6], M).
+ M = 6.
+ ?- max([3,2,2], M).
+ M = 3.
+</pre>'''
+
+hint = {}