summaryrefslogtreecommitdiff
path: root/prolog/problems/lists/palindrome_1/en.py
blob: c1b89717eb3cc66e61e3e40484f30553c59e57cb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
id = 112
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 = {}