Write a program that reads N points as x-y coordinates, stores them in a Input format: first line contains N, then N lines each with two integers x and y. Use Test with points that share x-coordinates to verify lexicographic ordering works.
Try negative coordinates and zeros to check edge cases. Understanding this concept deeply will help you write better code. Practice with examples until the pattern becomes automatic.
Review earlier sections if anything is unclear. Building on solid foundations makes advanced topics easier.