Ad
  • Custom User Avatar

    The solution handled the distance incorrectly.

    For example CT position: [0, 1], Bomb position: [4, 2], Kit position: [0, 0]

    Distance of CT to Bomb should be 4. However, your solution gives 1. Same for Kit to Bomb.

    Also, next time, put spoiler flag in your post when sending your code so that people who haven't solved it cannot see your solution.