In Italy, most Universities, even the public ones, require passing one or more tests before attending the courses; since a CS degree required a math test, I decided to prepare myself one year in advance. But unfortunately, I barely remembered how to do even basic algebraic operations, so I practically started from a secondary school program, fighting hard to reach a "last year high school" math level.
I decided to hire a teacher for private lessons because I found online courses very dispervise, and I felt that having a clear, structured path to the goal was a better approach for myself instead of struggling with different platforms and books. I studied 4 days per week circa, and the hard work paid back since I was admitted to the course!