2D Map solution problem | Sololearn: Learn to code for FREE!


2D Map solution problem

https://code.sololearn.com/ch1jPmjW468A/?ref=app My solution fails one of the tests but I can't figure out why. Can anyone please suggest what scenario could make it fail? Thank you.

1/5/2020 10:12:28 AM

Tom Adamczyk

3 Answers

New Answer


I literally just realized that as well. X2 by definition will always be bigger, made the same silly assumption for Y. Simple IF solved it. Thanks!


In code 1 case error