Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/TheAlgorithms/Python
/ palindrome.py
File
palindrome.py
strings/palindrome.py:None–None ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
# Algorithms to determine if a string is palindrome
2
3
from
timeit
import
timeit
4
Callers
nothing calls this directly
Calls
4
is_palindrome_recursive
Function · 0.85
is_palindrome_slice
Function · 0.85
is_palindrome
Function · 0.70
benchmark_function
Function · 0.70
Tested by
no test coverage detected