package
0.0.0-20241125063422-a7e1e0bf04b0
Repository: https://github.com/blueblue0102/leetcode-go.git
Documentation: pkg.go.dev
# README
125. Valid Palindrome
https://leetcode.com/problems/valid-palindrome/
使用雙指針,一個從頭一個從尾
逐個檢查頭指針和尾指針的字元是否相等
(大小字母要自動視作小寫;非字母數字則指針要自己跳過)
Takeaway
- Array 雙指針