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

0% completed

Vote For New Content
 Sri
is the code wrong for non-sorted case?

Sri

Feb 9, 2024

the second example says when the array is not sorted; however, the approach discussed and the code are for sorted arrays.

0

0

Comments
Comments

On this page

Problem Statement

Try it yourself