Going to lecture, sitting in lecture, waiting around, etc. provided very little information per unit time for me. I can’t learn math or anything quantitative from watching someone do it. By using lecture time as study time I was able to double the time spent learning the material.
When you get stuck, go to office hours. Or look for notes from similar courses for a different perspective.
At the start of the course look at the book and see what the prerequisite material is. Review that material during the first week when there is time.
* exceptions being courses that have a participation grade.
I tried my best to have profs that followed a textbook.