I found these books very useful, for coders like me and many of us which find some difficulty in competitive programming.
Below are the links for free competitive coding books which contain almost complete algorithms as they are written by ACM-ICPC finalist, and IOI finalists.
- CP3 book by steven halim
- competitive programmers handbook by antti laaksonen
- Narsimha - Karumanchi(for DSA)
Upvote if this really help u
If u know some other books then please mention in the comments