Skip to main content

Practice · 3 of 3

Leftmost Point

CHALLENGE
Difficulty: beginner+25 XP

Given struct Point { int x; int y; }; in scope, implement struct Point* leftmost(struct Point *pts, int n) returning a pointer to the point with the SMALLEST x (ties: the first such point).

Back to lesson: Practice: Data Modeling