From 388b32039898cc8f1784378689007254eb7a33b6 Mon Sep 17 00:00:00 2001 From: Timotej Lazar Date: Wed, 13 Jan 2016 13:51:15 +0100 Subject: Remove space-padding from
 blocks

---
 prolog/problems/sorting/is_sorted_1/en.py         | 8 ++++----
 prolog/problems/sorting/is_sorted_1/sl.py         | 8 ++++----
 prolog/problems/sorting/isort_2/en.py             | 4 ++--
 prolog/problems/sorting/isort_2/sl.py             | 4 ++--
 prolog/problems/sorting/pivoting_4/en.py          | 4 ++--
 prolog/problems/sorting/pivoting_4/sl.py          | 4 ++--
 prolog/problems/sorting/quick_sort_2/en.py        | 4 ++--
 prolog/problems/sorting/quick_sort_2/sl.py        | 4 ++--
 prolog/problems/sorting/sins_3/en.py              | 8 ++++----
 prolog/problems/sorting/sins_3/sl.py              | 8 ++++----
 prolog/problems/sorting/slowest_sort_ever_2/en.py | 4 ++--
 prolog/problems/sorting/slowest_sort_ever_2/sl.py | 4 ++--
 12 files changed, 32 insertions(+), 32 deletions(-)

(limited to 'prolog/problems/sorting')

diff --git a/prolog/problems/sorting/is_sorted_1/en.py b/prolog/problems/sorting/is_sorted_1/en.py
index 3ea6572..9848df1 100644
--- a/prolog/problems/sorting/is_sorted_1/en.py
+++ b/prolog/problems/sorting/is_sorted_1/en.py
@@ -6,10 +6,10 @@ slug = 'check if list is sorted'
 description = '''\
 

is_sorted(L): the elements of list L are sorted in non-decreasing order.

-  ?- is_sorted([2,3,6,8,12]).
-    true.
-  ?- is_sorted([2,3,1,6,5]).
-    false.
+?- is_sorted([2,3,6,8,12]).
+  true.
+?- is_sorted([2,3,1,6,5]).
+  false.
 
''' hint = {} diff --git a/prolog/problems/sorting/is_sorted_1/sl.py b/prolog/problems/sorting/is_sorted_1/sl.py index 5d4c1c5..a1429d3 100644 --- a/prolog/problems/sorting/is_sorted_1/sl.py +++ b/prolog/problems/sorting/is_sorted_1/sl.py @@ -6,10 +6,10 @@ slug = 'Preveri, če so elementi seznama naraščajoče urejeni' description = '''\

is_sorted(L): elementi v seznamu L morajo biti urejeni v naraščajočem vrstnem redu.

-  ?- is_sorted([2,3,6,8,12]).
-    true.
-  ?- is_sorted([2,3,1,6,5]).
-    false.
+?- is_sorted([2,3,6,8,12]).
+  true.
+?- is_sorted([2,3,1,6,5]).
+  false.
 
''' hint = {} diff --git a/prolog/problems/sorting/isort_2/en.py b/prolog/problems/sorting/isort_2/en.py index 9fba6ac..0998a6d 100644 --- a/prolog/problems/sorting/isort_2/en.py +++ b/prolog/problems/sorting/isort_2/en.py @@ -6,8 +6,8 @@ slug = 'sort a list using insertion sort' description = '''\

isort(L, SL): the list SL contains the elements of L sorted in non-decreasing order. Use the predicate sins/3 to implement insertion sort.

-  ?- isort([2,3,1,5,4], L).
-    L = [1,2,3,4,5].
+?- isort([2,3,1,5,4], L).
+  L = [1,2,3,4,5].
 
''' hint = {} diff --git a/prolog/problems/sorting/isort_2/sl.py b/prolog/problems/sorting/isort_2/sl.py index 79c3239..63459c4 100644 --- a/prolog/problems/sorting/isort_2/sl.py +++ b/prolog/problems/sorting/isort_2/sl.py @@ -6,8 +6,8 @@ slug = 'Uredi seznam z uporabo urejanja z vstavljanjem' description = '''\

isort(L, SL): seznam SL vsebuje elemente iz seznama L urejene v naraščajočem vrstnem redu. Uporabi predikat sins/3 za implementacijo urejanja z vstavljanjem.

-  ?- isort([2,3,1,5,4], L).
-    L = [1,2,3,4,5].
+?- isort([2,3,1,5,4], L).
+  L = [1,2,3,4,5].
 
''' hint = {} 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 = '''\

pivoting(P, L, S, G): the list S contains the elements of L smaller or equal to P, and the list G contains the elements of L greater than P. The order of elements in S and G should be the same as in L.

-  ?- 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].
 
''' hint = {} diff --git a/prolog/problems/sorting/pivoting_4/sl.py b/prolog/problems/sorting/pivoting_4/sl.py index b18e112..e1aeb7a 100644 --- a/prolog/problems/sorting/pivoting_4/sl.py +++ b/prolog/problems/sorting/pivoting_4/sl.py @@ -6,8 +6,8 @@ slug = 'Razdeli seznam na dva dela glede na podani element (pivot)' description = '''\

pivoting(P, L, S, G): seznam S vsebuje elemente iz L manjše ali enake P, seznam G pa elemente iz L večje od P. Vrstni red elementov v S in G naj bo enak kot v L.

-  ?- 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].
 
''' hint = {} diff --git a/prolog/problems/sorting/quick_sort_2/en.py b/prolog/problems/sorting/quick_sort_2/en.py index faf6d41..3457440 100644 --- a/prolog/problems/sorting/quick_sort_2/en.py +++ b/prolog/problems/sorting/quick_sort_2/en.py @@ -6,8 +6,8 @@ slug = 'sort a list using quicksort' description = '''\

quick_sort(L, SL): the list SL contains the elements of L sorted in non-decreasing order. Use the predicate pivoting/4 to implement quicksort.

-  ?- quick_sort([2,3,1,5,4], L).
-    L = [1,2,3,4,5].
+?- quick_sort([2,3,1,5,4], L).
+  L = [1,2,3,4,5].
 
''' hint = {} diff --git a/prolog/problems/sorting/quick_sort_2/sl.py b/prolog/problems/sorting/quick_sort_2/sl.py index 9611b46..8b6ad94 100644 --- a/prolog/problems/sorting/quick_sort_2/sl.py +++ b/prolog/problems/sorting/quick_sort_2/sl.py @@ -6,8 +6,8 @@ slug = 'Uredi seznam z algoritmom quicksort' description = '''\

quick_sort(L, SL): seznam SL vsebuje elemente iz L urejene v naraščajočem vrstnem redu. Uporabi predikat pivoting/4 za implementacijo algoritma quicksort.

-  ?- quick_sort([2,3,1,5,4], L).
-    L = [1,2,3,4,5].
+?- quick_sort([2,3,1,5,4], L).
+  L = [1,2,3,4,5].
 
''' hint = {} 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 = '''\

sins(X, SortedList, NewList): the list NewList is obtained by inserting X into SortedList at the correct position to preserve the non-decreasing order of elements.

-  ?- 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].
 
''' 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 = '''\

sins(X, SortedList, NewList): seznam NewList dobiš tako, da vstaviš element X v SortedList na ustrezno mesto tako, da ohraniš urejenost elementov.

-  ?- 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].
 
''' hint = {} diff --git a/prolog/problems/sorting/slowest_sort_ever_2/en.py b/prolog/problems/sorting/slowest_sort_ever_2/en.py index e327102..689060c 100644 --- a/prolog/problems/sorting/slowest_sort_ever_2/en.py +++ b/prolog/problems/sorting/slowest_sort_ever_2/en.py @@ -6,8 +6,8 @@ slug = 'sort a list by randomly permuting elements' description = '''\

slowest_sort_ever(L, SL): the list SL contains the elements of L sorted in non-decreasing order. Average and worst case running time is O(n * n!).

-  ?- slowest_sort_ever([2,3,1,5,4], L).
-    L = [1,2,3,4,5].
+?- slowest_sort_ever([2,3,1,5,4], L).
+  L = [1,2,3,4,5].
 
''' hint = {} diff --git a/prolog/problems/sorting/slowest_sort_ever_2/sl.py b/prolog/problems/sorting/slowest_sort_ever_2/sl.py index c62582c..d6cf66b 100644 --- a/prolog/problems/sorting/slowest_sort_ever_2/sl.py +++ b/prolog/problems/sorting/slowest_sort_ever_2/sl.py @@ -6,8 +6,8 @@ slug = 'Uredi seznam elementov s pomočjo naključnih permutacij' description = '''\

slowest_sort_ever(L, SL): seznam SL vsebuje elemente seznama L v naraščajočem vrstnem redu. Časovna zahtevnost algoritma naj bo O(n * n!).

-  ?- slowest_sort_ever([2,3,1,5,4], L).
-    L = [1,2,3,4,5].
+?- slowest_sort_ever([2,3,1,5,4], L).
+  L = [1,2,3,4,5].
 
''' hint = {} -- cgit v1.2.1