We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 89cf2d8 commit 7e797a4Copy full SHA for 7e797a4
Strings/isPalindrome.cpp
@@ -0,0 +1,3 @@
1
+bool isPalindrome(string str){
2
+ return str == string(str.rbegin(),str.rend());
3
+}
0 commit comments