by AskAI

Solutions:

Check these solutions from our community and artificial intelligence:
The candidate's solution is incomplete and does not solve the problem. The candidate's approach is to describe an optimal solution, but does not provide any code or pseudocode to implement the solution.