Is it even called "line" if it's not geometry? Find problems by searching "events" Some examples: kattis/bridgebuilding kattis/ship Leetcode has many as well.