New course! Every coder should learn Generative AI!
Try a free lesson0
Discrete Mathematics and It's Applications Global Edition.
Computer Science An Overview Twelfth Edition.
I've used both of these books at uni are they are brillient, a lot of theory so make sure you practice a lot.
The first book has a chapter about algorithms and logic and it'll teach you all the math for it.