Answer Posted / kautilya
bool CheckPalindrom(string MyString)
{
string strChar1 = "";
string strChar2 = "";
for (int i = 0; i < ((MyString.Length - 1) / 2);
i++)
{
strChar1 = MyString.Substring(i, 1);
strChar2 = MyString.Substring((MyString.Length -
(i+1)), 1);
if (strChar1 != strChar2)
return false;
}
return true;
}
Is This Answer Correct ? | 11 Yes | 7 No |
Post New Answer View All Answers
Which sorting algorithm is best?
What is a cs file?
What is delegate in c# interview questions?
How do you escape in c#?
Define c# i/o classes? List the commonly used classes?
What is the difference between System.console.WriteLine() and System.console.Write() function?example?
Is php better than c#?
What is literal control
What does do in c#?
Explain how do I get deterministic finalization in c#?
Define thread?
Hello! How to do this: "Create manifest utility intended for creating update content files. Application should take a set of files as input parameter and generate XML based manifest file as output one." I use C# and vs.net 2003. It's urgent! Help please, thanks. Mayana
What is razor view in c#?
What is the difference between system.text.stringbuilder and system.string?
What is the namespcae generally given to the webpage of the .NET Framework ?