Answers for "C# Check whether the String is a palindrome or not."

C#
0

C# Check whether the String is a palindrome or not.

return myString.SequenceEqual(myString.Reverse());
Posted by: Guest on February-25-2021
0

C# Check whether the String is a palindrome or not.

var original = "ankYkna";
var reversed = new string(original.Reverse().ToArray());
var palindrom = original == reversed;
Posted by: Guest on February-25-2021
0

C# Check whether the String is a palindrome or not.

public static bool IsPalindrome(string str)  
{
    return str.SequenceEqual(str.Reverse());
}
Posted by: Guest on February-25-2021

Code answers related to "C# Check whether the String is a palindrome or not."

C# Answers by Framework

Browse Popular Code Answers by Language