1/4
Looks like no tags are added yet.
Name | Mastery | Learn | Test | Matching | Spaced | Call with Kai |
|---|
No analytics yet
Send a link to your students to track their progress
l, r = 0, len(nums) - 1
Initializes two pointers at both ends
while l < r:
Loops until two pointers meet
l += 1
Moves left pointer right
r -= 1
Moves right pointer left
s[l] == s[r]
Checks if characters at two pointers match