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

0% completed

Vote For New Content
Arturo Calderón
There is an error in Example 3

Arturo Calderón

Dec 4, 2023

There is an error in Example 3, in the body of the text. There, it says that the expected output should be [1, 3] for an input of [10, 15, 20, 25, 30, 35] and a target of 45. Indexes 1 and 3 correspond to 10 and 25 which add to 35, not 45. The correct answer is [1, 4]

0

0

Comments
Comments