These solutions are not by any means the most suitable, optimized ones. I'm learning and just trying my best.
Said that, feel free to take a look if you want to.
Thanks.
If you are looking for a resource, these might help you:
https://walkccc.me/CLRS/
https://sites.math.rutgers.edu/~ajl213/CLRS/CLRS.html