Non-overlapping Intervals
Return minimum number of intervals to remove to make rest non-overlapping Intervals touching at a point are non-overlapping: [1,2] and [2,3] Example: [[1,2],[2,3],[3,4],[1,3]] => 1 (remove [1,3])
Non-overlapping Intervals is a dynamic programming question: define the state cleanly and the transitions usually follow. Interviewers love it because it reveals your state-and-transition thinking and your edge-case discipline. The trap is picking a state that's too vague; keep it minimal and consistent.

Meet Coco
Coco is an AI study partner, not a person. She listens while you explain your code, asks what a line does and never hands you the fix. Typing with Coco is free when you sign in, up to a daily limit. Talking with her out loud comes with the $79 pack. Anyone can open the editor and run their code.