AI has changed the calculus for computer-science students, and schools that hope to teach them