Answer
Describing an algorithm for determining whether a string of n characters is a palindrome.(STEP by STEP)
Work Step by Step
procedure:
- palindrome check(a1a2 . . . an: string)
-answer := true
-for i := 1 to n/2
-if ai (not=) an+1−i then answer := false
-return answer