-
-
Notifications
You must be signed in to change notification settings - Fork 47.7k
Open
Labels
@sibebleuze
Description
Repository commit
Python version (python --version)
Python 3.13.7
Dependencies version (pip freeze)
/
Expected behavior
in https://github.com/TheAlgorithms/Python/blob/master/strings/palindrome.py
function is_palindrome_recursive - first if statement is wrong - not all 2 letter strings are palindromes
should be if len(s) <= 1: return True
> is_palindrome_recursive('abcdba')
False
Actual behavior
> is_palindrome_recursive('abcdba')
True