We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5fe31ff commit 93a4d2dCopy full SHA for 93a4d2d
Palindromes/README.markdown
@@ -26,7 +26,7 @@ Here is a recursive implementation of this in Swift:
26
```swift
27
func isPalindrome(_ str: String) -> Bool {
28
let strippedString = str.replacingOccurrences(of: "\\W", with: "", options: .regularExpression, range: nil)
29
- let length = strippedString.characters.count
+ let length = strippedString.count
30
31
if length > 1 {
32
return palindrome(strippedString.lowercased(), left: 0, right: length - 1)
0 commit comments