Created
June 4, 2016 13:04
-
-
Save ilpropheta/d3d8a68457d99de89a580227b6c47e89 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
auto isPalindrome = equal(begin(S), begin(S) + S.size()/2, rbegin(S)); | |
// or, similarly | |
auto isPalindrome = equal(begin(S), std::next(begin(S), S.size()/2), rbegin(S)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment