Flowchart (ISO 5807)
Source code
Python
def is_palindrome(s):
i, j = 0, len(s) - 1
while i < j:
if s[i] != s[j]:
return False
i += 1
j -= 1
return TrueThe editor opens with this code — change it and the chart redraws.
- Language
- Python
- Constructs
- string palindrome
- Topic
- Algorithms
- Formats
- Word, Visio, draw.io, PDF, SVG