Unverified Commit f0d45297 authored by Lokesh Singh's avatar Lokesh Singh Committed by GitHub

Create Check string is palindrom

parent 2ae458f5
int isPalindrome(String S) {
// code here
String str = S;
int begin = 0;
int end = str.length()-1;
while(begin<end)
{
if(str.charAt(begin++)!=str.charAt(end--))
{
return 0;
}
}
return 1;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment