In order to apply for CS in college, how many years of Physics is recommended in HS?

At my son’s college, kids with IB Physics had difficulty in having it accepted. In that case you may have to take a placement exam. Often placement exams can be much tougher than simply going through the appropriate AP in high school. I suspect it will differ from college to college.