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

0% completed

Vote For New Content
Landon Brown
Wrong value for smallest some in the example visualization.

Landon Brown

Jan 13, 2024

The smallest_differencevalue should be -1 not 1 initially for the triplate of [0,0,6]. It changes to 1 when the triplate is [0,2,2]. This can be slightly confusing...

0

0

Comments
Comments

On this page

Problem Statement

Try it yourself