summaryrefslogtreecommitdiff
path: root/prolog/problems/sorting/sins_3
diff options
context:
space:
mode:
Diffstat (limited to 'prolog/problems/sorting/sins_3')
-rw-r--r--prolog/problems/sorting/sins_3/en.py8
-rw-r--r--prolog/problems/sorting/sins_3/sl.py8
2 files changed, 8 insertions, 8 deletions
diff --git a/prolog/problems/sorting/sins_3/en.py b/prolog/problems/sorting/sins_3/en.py
index 2d9cf98..db35da2 100644
--- a/prolog/problems/sorting/sins_3/en.py
+++ b/prolog/problems/sorting/sins_3/en.py
@@ -6,10 +6,10 @@ slug = 'insert an element at correct position into a sorted list'
description = '''\
<p><code>sins(X, SortedList, NewList)</code>: the list <code>NewList</code> is obtained by inserting <code>X</code> into <code>SortedList</code> at the correct position to preserve the non-decreasing order of elements.</p>
<pre>
- ?- sins(4, [1,2,3,5], L).
- L = [1,2,3,4,5].
- ?- sins(3, [1,2,3,4], L).
- L = [1,2,3,3,4].
+?- sins(4, [1,2,3,5], L).
+ L = [1,2,3,4,5].
+?- sins(3, [1,2,3,4], L).
+ L = [1,2,3,3,4].
</pre>'''
hint = {}
diff --git a/prolog/problems/sorting/sins_3/sl.py b/prolog/problems/sorting/sins_3/sl.py
index 22e51b2..fe7d015 100644
--- a/prolog/problems/sorting/sins_3/sl.py
+++ b/prolog/problems/sorting/sins_3/sl.py
@@ -6,10 +6,10 @@ slug = 'Vstavi element na ustrezno mesto v urejen seznam'
description = '''\
<p><code>sins(X, SortedList, NewList)</code>: seznam <code>NewList</code> dobiš tako, da vstaviš element <code>X</code> v <code>SortedList</code> na ustrezno mesto tako, da ohraniš urejenost elementov.</p>
<pre>
- ?- sins(4, [1,2,3,5], L).
- L = [1,2,3,4,5].
- ?- sins(3, [1,2,3,4], L).
- L = [1,2,3,3,4].
+?- sins(4, [1,2,3,5], L).
+ L = [1,2,3,4,5].
+?- sins(3, [1,2,3,4], L).
+ L = [1,2,3,3,4].
</pre>'''
hint = {}