Grokking the Coding Interview: Patterns for Coding Questions
Ask Author
Back to course home

0% completed

Vote For New Content
How do we apply sliding window approach for this leetcode question "LC 1763. Lon...

ag

Dec 29, 2022

How do we apply sliding window approach for this leetcode question "LC 1763. Longest Nice Substring", I can do it brute force but unable to do it using sliding window approach.

0

0

Comments
Comments
L
lejafilip a year ago

I think you have to use hashMap for checking our chars and sliding window to looking for longest substring. I don't know why it is marked as "easy". Some mediums are easier.

On this page