summaryrefslogtreecommitdiff
path: root/prolog/problems/sorting/pivoting_4/en.py
diff options
context:
space:
mode:
Diffstat (limited to 'prolog/problems/sorting/pivoting_4/en.py')
-rw-r--r--prolog/problems/sorting/pivoting_4/en.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/prolog/problems/sorting/pivoting_4/en.py b/prolog/problems/sorting/pivoting_4/en.py
index 43e4ae3..82976ba 100644
--- a/prolog/problems/sorting/pivoting_4/en.py
+++ b/prolog/problems/sorting/pivoting_4/en.py
@@ -6,8 +6,8 @@ slug = 'split a list according to the pivot'
description = '''\
<p><code>pivoting(P, L, S, G)</code>: the list <code>S</code> contains the elements of <code>L</code> <em>smaller or equal to</em> <code>P</code>, and the list <code>G</code> contains the elements of <code>L</code> <em>greater than</em> <code>P</code>. The order of elements in <code>S</code> and <code>G</code> should be the same as in <code>L</code>.</p>
<pre>
- ?- pivoting(4, [1,4,5,8,6,4,2], S, G).
- S = [1,4,4,2], G = [5,8,6].
+?- pivoting(4, [1,4,5,8,6,4,2], S, G).
+ S = [1,4,4,2], G = [5,8,6].
</pre>'''
hint = {}