How to check string is symmetric in c# | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How to check string is symmetric in c#

29th Dec 2018, 3:36 PM
3 Answers
+ 1
If you mean that you want to know if a word is a palondrome, then you could through the string with a loop and chack if the first char is equal to the last , second char equal to the second last and so on.. Or you can more simply reverse the string and then compare if the 2 strings are equal or not
29th Dec 2018, 3:48 PM
Sekiro - avatar
What is difference between palindrome and symmetric..?
29th Dec 2018, 4:04 PM
5th Jan 2021, 7:32 AM
Timur Shuxratovi