Higher quality responses from ChatGPT
You can acquire significantly higher quality responses for complex tasks from ChatGPT by simply adding "Plan out the solution prior to generating <code/solution>" to the end of the prompt.
The screenshot shows an in-depth solution to the problem using this technique. A portion of the