My CS class very quickly divided into "those who could already program" and "first time programmers". (testing out was not a "thing" then - at least I never heard of anyone doing it for any class.)
Interestingly it was more classification than groups. I spent time helping friends who were stuck, but I also spent a lot of time with other advanced students, in the lab, pushing each other. The assignments were trivially simply, so we just spent time making them more interesting.
Because the course work was done quickly, we had a lot of time to go the extra mile. Time we wouldn't get later in life.
The important things though, the theory, stuck with me, and even the early classes were valuable. Intro to programming only lasted a few months, then there was a lot more theory, and we could meld that into our code a lot more.
I went into college knowing how to code. I came out knowing how to program, and there's a big difference.
If you are in college today, funding aside, I'd say - don't be in such a rush to finish. Fill your spare time by sucking in riches, seek out every nugget, help others, be challenged, see the time as an opportunity, not a class to simply pass.
As a result, I learned way more than curriculum offered, got way harder assignments and projects (like designing a compression algorithm from ground up as a graduation project), and satisfied much more overall.
I continued my M.Sc. and Ph.D. at the same university (because I already had a job, and I just wanted to learn), and this head start (and being in good terms with the professors) allowed me to do similarly heavier curricula during these studies, too.
It's worth it.
I talked to the more friendly advisors in the Philosophy department, who also had the ability to add and drop students from classes, and got them to add me to both classes I needed. I persuaded them not to worry about the overlap. I completed the semester by attending the higher level class except for exam days (I had to get a special dispensation to take one final early because their final exams were scheduled at the same time).
My point with this anecdote is that sometimes more powerful people try to impose a speed limit and sometimes you can get around them.