Practice ยท 1 of 3
Distance Squared
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.
Difficulty: beginner
Press Submit to check your solution.
Back to lesson: Practice: Data Modeling