Grokking Data Structures & Algorithms for Coding Interviews
Ask Author
Back to course home

0% completed

Vote For New Content
Steve Ochoa
Too many puts

Steve Ochoa

Oct 18, 2024

You don't need to put(s2) as it is never looked at. We only ever peek once per iteration (only access index of -1 once).

0

0

Comments
Comments

On this page