How to practice the right way

I understand there’s no right way to practice, but there’s definitely better ways then other. I keep trying to solve sliding window problems, but it’s been five days doing easy difficulty questions and I still can’t solve it, it feels like I’m just practicing mistakes and being dumb