TL;DR: "Two pointers" is an umbrella for four distinct patterns. Sliding window is one of them. Learn to name which variant a problem is asking for — that routes you to the right template instantly.