Grokking Meta Coding Interview
Ask Author
Back to course home

0% completed

Vote For New Content
Error in test cases validation

hjalmar.basile

Dec 22, 2024

There is a test case failing with this error, but actually my output is correct as well. The validator is hardcoding a specific output, but there can be more than one, depending on ordering or entries with same distance from the origin. Please fix this.

WrongAnswer Your Input[[0,0],[1,1],[-1,-1],[2,2]] 2

Output[[-1,-1],[0,0]] Expected[[0,0],[1,1]]

2

0

Comments
Comments

On this page