Input the string “Success”. Write a script of check if the string is a palindrome or
Not
Answers
Answered by
3
Answer:
Algorithm to check whether a string is a palindrome or not
Input the string.
Find the reverse of the string.
If the reverse of the string is equal to the input string, then return true. Else, return false
Answered by
1
Answer:
Explanation:
A String str is given which contains lowercase English letters and spaces. It may contain multiple spaces. Get the first letter of every word and return the result as a string. The result should not contain any space
Similar questions