diff options
author | Timotej Lazar <timotej.lazar@fri.uni-lj.si> | 2016-03-25 13:48:14 +0100 |
---|---|---|
committer | Timotej Lazar <timotej.lazar@fri.uni-lj.si> | 2016-03-25 13:48:14 +0100 |
commit | 39e171d652db076dd96fe3afbc77e26aafd7fa32 (patch) | |
tree | 0ace701342ffc48823f13f36f02c4ce3c7dbc467 /prolog/problems/lists_advanced | |
parent | 7f251f1f18900cfac3b96d6d73b5ad3bbd3eb478 (diff) |
Prolog: clarify instructions for sublist_2
Diffstat (limited to 'prolog/problems/lists_advanced')
-rw-r--r-- | prolog/problems/lists_advanced/sublist_2/en.py | 4 | ||||
-rw-r--r-- | prolog/problems/lists_advanced/sublist_2/sl.py | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/prolog/problems/lists_advanced/sublist_2/en.py b/prolog/problems/lists_advanced/sublist_2/en.py index e71259b..67b50a4 100644 --- a/prolog/problems/lists_advanced/sublist_2/en.py +++ b/prolog/problems/lists_advanced/sublist_2/en.py @@ -2,7 +2,9 @@ name = 'sublist/2' slug = 'generate sublists of a list' description = '''\ -<p><code>sublist(L, SL)</code>: <code>SL</code> is a continuous sublist of the list <code>L</code>.</p> +<p><code>sublist(L, SL)</code>: <code>SL</code> is a continuous sublist of the +list <code>L</code>. Your program should return every possible sublist; each +answer may be returned more than once.</p> <pre> ?- sublist([1,2,3], X). X = [] ; diff --git a/prolog/problems/lists_advanced/sublist_2/sl.py b/prolog/problems/lists_advanced/sublist_2/sl.py index 50a6878..6d8ee85 100644 --- a/prolog/problems/lists_advanced/sublist_2/sl.py +++ b/prolog/problems/lists_advanced/sublist_2/sl.py @@ -4,7 +4,9 @@ name = 'sublist/2' slug = 'Generiraj vse podsezname danega seznama' description = '''\ -<p><code>sublist(L, SL)</code>: <code>SL</code> je podseznam seznama <code>L</code>. Predikat naj vrne vse možne podsezname, enega po enega.</p> +<p><code>sublist(L, SL)</code>: <code>SL</code> je podseznam seznama +<code>L</code>. Predikat naj vrne vse možne podsezname, enega po enega; +odgovori se lahko tudi podvajajo.</p> <pre> ?- sublist([1,2,3], X). X = [] ; |