Practice · 1 of 3
Distance Squared
CHALLENGE
Difficulty: beginner+25 XP
Given struct Point { int x; int y; }; in scope, implement int dist_sq(struct Point a, struct Point b) returning the squared distance between them.
Press Submit to check your solution.
Back to lesson: Practice: Data Modeling