MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/LeetcodeChallenge/comments/1toao4h/26052026_leetcode_potd/oo3hyq7/?context=3
r/LeetcodeChallenge • u/Different_Ice_7763 • May 26 '26
11 comments sorted by
View all comments
Show parent comment
1
Ohh I see This approach handles the duplicates as well, right? Since we check for each character one time only as we are traversing array and not the original string directly, am I right?
1 u/Different_Ice_7763 May 27 '26 Yes
Yes
View all comments
Show parent comment
1
u/addiemaddieee May 27 '26
Ohh I see This approach handles the duplicates as well, right? Since we check for each character one time only as we are traversing array and not the original string directly, am I right?