Start with one or more of Harvard's intro CS courses:
https://www.classcentral.com/report/harvard-cs50-guide/
Then you need a lot of data structure / algorithms work.
There are free online CS courses at Harvard, MIT, and Stanford. Computer Science is a huge field, with many specializations. Computer Science is the study of concepts, programming is the implementation.