Skip to content

Commit 7e797a4

Browse files
authored
Create isPalindrome.cpp
1 parent 89cf2d8 commit 7e797a4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Strings/isPalindrome.cpp

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
bool isPalindrome(string str){
2+
return str == string(str.rbegin(),str.rend());
3+
}

0 commit comments

Comments
 (0)