diff options
author | Timotej Lazar <timotej.lazar@fri.uni-lj.si> | 2016-03-17 14:19:45 +0100 |
---|---|---|
committer | Timotej Lazar <timotej.lazar@fri.uni-lj.si> | 2016-03-17 14:19:45 +0100 |
commit | cf4e59c9d6bce337514fc7d77120baced0d6d7bc (patch) | |
tree | 33f7cd7d3ae9595ad548427f3a718f5918935e53 /prolog/problems/lists_advanced/palindrome_1/en.py | |
parent | a9416de1d2bde1b2327928717d00d262160912af (diff) |
Prolog: split lists exercises into two groups
Diffstat (limited to 'prolog/problems/lists_advanced/palindrome_1/en.py')
-rw-r--r-- | prolog/problems/lists_advanced/palindrome_1/en.py | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/prolog/problems/lists_advanced/palindrome_1/en.py b/prolog/problems/lists_advanced/palindrome_1/en.py new file mode 100644 index 0000000..48ee8ac --- /dev/null +++ b/prolog/problems/lists_advanced/palindrome_1/en.py @@ -0,0 +1,15 @@ +# coding=utf-8 + +name = 'palindrome/1' +slug = 'check if list is a palindrome' + +description = '''\ +<p><code>palindrome(L)</code>: the elements of list <code>L</code> are the same when read from the front or back of the list.</p> +<pre> +?- palindrome([1,2,3,2,1]). + true. +?- palindrome([1,2,3]). + false. +</pre>''' + +hint = {} |