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

+2

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

+4

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!

+3

In code 1 case error

+3

https://code.sololearn.com/c5TISp1752O4/?ref=app