LeetCodeRandoms see gillette_stadium_seating for a c++ example checking the personal space of fans, a boundary length exercise.