Please also remember to start your solution to each subproblem on a new page of your submitted PDF.
However, your solutions must be understandable to someone who only knows the official course material and prerequisites. For each outside tool you use, your solution must include a self-contained description of that tool (including pseudocode if your tool is an algorithm), and either a proof or a reliable reference for every claim you make about that tool (including correctness and running time). LLMs, Geeks4Geeks, and Wikipedia are not reliable references.