Title: Wrong palindrome implementation · Issue #12941 · TheAlgorithms/Python · GitHub
Open Graph Title: Wrong palindrome implementation · Issue #12941 · TheAlgorithms/Python
X Title: Wrong palindrome implementation · Issue #12941 · TheAlgorithms/Python
Description: Repository commit 9d52683 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...
Open Graph Description: Repository commit 9d52683 Python version (python --version) Python 3.13.7 Dependencies version (pip freeze) / Expected behavior in https://github.com/TheAlgorithms/Python/blob/master/strings/palind...
X Description: Repository commit 9d52683 Python version (python --version) Python 3.13.7 Dependencies version (pip freeze) / Expected behavior in https://github.com/TheAlgorithms/Python/blob/master/strings/palind...
Opengraph URL: https://github.com/TheAlgorithms/Python/issues/12941
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Wrong palindrome implementation","articleBody":"### Repository commit\n\n9d52683\n\n### Python version (python --version)\n\nPython 3.13.7\n\n### Dependencies version (pip freeze)\n\n/\n\n### Expected behavior\n\nin https://github.com/TheAlgorithms/Python/blob/master/strings/palindrome.py \nfunction is_palindrome_recursive - first if statement is wrong - not all 2 letter strings are palindromes \nshould be `if len(s) \u003c= 1: return True`\n\n```\n> is_palindrome_recursive('abcdba')\nFalse\n```\n\n### Actual behavior\n\n```\n> is_palindrome_recursive('abcdba')\nTrue\n```","author":{"url":"https://github.com/sibebleuze","@type":"Person","name":"sibebleuze"},"datePublished":"2025-08-31T19:43:49Z","url":"https://github.com/TheAlgorithms/Python/issues/12941"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:1dcb5981-b251-28db-8309-1d0383e4587f |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B142:DD12A:113804:169512:6AFBAFF9 |
| html-safe-nonce | eed855ca60d6b4e099d2ad1e5c5cc9e1637ff7b4daa44131408d372b9e2a3052 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMTQyOkREMTJBOjExMzgwNDoxNjk1MTI6NkFGQkFGRjkiLCJ2aXNpdG9yX2lkIjoiNDM4NTU0NTcyMjgyMTA2MjY1MCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 85537096eda11912d4f2f3fe8008641bbb7f486f468d421f55762b489932d81d |
| hovercard-subject-tag | issue:3370617542 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/TheAlgorithms/Python/12941/issue_layout |
| twitter:image | https://opengraph.githubassets.com/5c60456aba4fae650246d6347f6a13f39d36a5ea6d0af4639be5122e3aad816e/TheAlgorithms/Python/issues/12941 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/5c60456aba4fae650246d6347f6a13f39d36a5ea6d0af4639be5122e3aad816e/TheAlgorithms/Python/issues/12941 |
| og:image:alt | Repository commit 9d52683 Python version (python --version) Python 3.13.7 Dependencies version (pip freeze) / Expected behavior in https://github.com/TheAlgorithms/Python/blob/master/strings/palind... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | sibebleuze |
| hostname | github.com |
| expected-hostname | github.com |
| None | e25fbd830d3e6ad0e8935c105cf4fdc70c593dffcd27bb45b790ae4fece5ea55 |
| turbo-cache-control | no-preview |
| go-import | github.com/TheAlgorithms/Python git https://github.com/TheAlgorithms/Python.git |
| octolytics-dimension-user_id | 20487725 |
| octolytics-dimension-user_login | TheAlgorithms |
| octolytics-dimension-repository_id | 63476337 |
| octolytics-dimension-repository_nwo | TheAlgorithms/Python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 63476337 |
| octolytics-dimension-repository_network_root_nwo | TheAlgorithms/Python |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 08c8f17f9d27054a108b8b6254e405de0151f660 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width