Skip to content

Commit f1172d5

Browse files
Merge pull request #388 from ahmibr/master
Add isPalindrome
2 parents dd377c4 + 7e797a4 commit f1172d5

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)