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

0% completed

Vote For New Content
Incorrect test case

d.psawyer

Aug 6, 2023

Testcase:

[1, 1, 1, 1, 1] 1

Test case expected result: 2

Correct result: 0

The test cases claim 2 is the correct result when the correct answer is clearly 0

3

0

Comments
Comments
R
rseeto11 2 years ago

I agree with this. According to a previous discussion ('Are repeated integers meant to be handed with this solution? '), any index should have been accepted.

On this page