[Community Puzzle] Vectors in variables dimensions

Coding Games and Programming Challenges to Code Better

Send your feedback or ask for help here!

Created by @Diabetos,validated by @FredericLocquet,@odaxav and @Drunkey.
If you have any issues, feel free to ping them.

:wave: Hi to all :slight_smile: and thanks to @Diabetos (and validators @FredericLocquet,@odaxav and @Drunkey) for this funny Puzzle :+1: !
→ I got pleasure in re- discovering the distances in multiple dimensions :wink: .
=> Thanks a lot and good luck for your next Puzzle :handshake:
:raised_hand: Bye : have :sun_with_face: sun, :dark_sunglasses: fun, and :keyboard: CodiGames !

It should be explicitly stated that a point name may consist of more than one letter.

Nice puzzle, fun and simple! Pro tip for this sort of puzzle: there’s no need to ever actually take the square root of anything in this case. If you’re not asked to return the actual distance, the comparison is the same regardless of whether you compare 2 sums or the square roots of those 2 sums. I saw a lot of solutions using sqrt when the solution would likely return exactly the same result if it was removed!