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

0% completed

Vote For New Content
Alex B
Test case violates constraints

Alex B

Jun 4, 2024

Within one of the tests on Submit, we have the following:

Your Input [5,4,3,2,1] 3 3 Output ... Expected [2,3,4]

My implementation returned [4,3,2] due to an assumption from the constraints that: "arr is sorted in ascending order".

0

0

Comments
Comments
Shubham Vora
Shubham Voraa year ago

Thanks for the suggestion. It is fixed now.

On this page