Palindrome detection: Difference between revisions
Content added Content deleted
(→{{header|Python}}: added explanation of Twiddle Indexing) |
m (→{{header|Python}}: typo) |
||
Line 4,471: | Line 4,471: | ||
0 1 2 3 4 <-- index |
0 1 2 3 4 <-- index |
||
[ a, b, c, d, e ] |
[ a, b, c, d, e ] |
||
-5 -4 -3 - |
-5 -4 -3 -2 -1 <-- negative index</pre> |
||
<lang Python>def palindromic(str): |
<lang Python>def palindromic(str): |