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

0% completed

Vote For New Content
D Delg
Confusing wording for space restrictions

D Delg

Jun 8, 2023

I think the wording that says we should not be using any extra space is a bit confusing and should either be reworded or removed. It made me think I could not create more than 2 pointer variables when I should be able to create first and second half variables to actually finish the solution.

0

0

Comments
Comments
A
Aniket Joshi2 years ago

yep! that's what made me drag into an hour long attempt!! when i had my very first solution the same way the solution was provided! i was thinking im the only one thinking like that

Design Gurus
Design Gurus2 years ago

We have updated the problem statement mentioning that we can use constant space.

On this page