Back to course home
0% completed
Vote For New Content
Wrong result for example 4 in visualization
Bruno Ely
Jan 15, 2024
Should be [1, 1, 2] (sum == 4) as shown in the example 4 in problem statement, not [0, 0, 6] (sum == 6) as shown in visualization, since problem asks for smallest sum if distance to target is the same.
2
0
Comments
Comments
On this page
Problem Statement
Try it yourself