Data Structure for Trajectory

Disclaimer: I got this for an interview question and curious about how others will answer it.

Design a struct for a robot’s trajectory and write a function to check for collisions between two trajectories assuming a point robot.

submitted by /u/pPrimary
[link] [comments]