Algorithms: draw the process, then write code
Give the complexity analysis and variations
Prompt
Copy it whole, then replace the brackets with your own contentTeach me: Algorithms - draw the process, then write code. My level: [beginner/experienced] Requirements: complexity analysis and variants. Test me first, then teach; give one example in each section.
Replace the text in [ ] with your own situation; ask long tasks in stages.
How to get better results
Read this before you fill it inLearning algorithms: understand the process before writing code.
Start with a concrete example, then the definition; no more than three sentences per paragraph; finish with three self-test questions and answers.
Explain "sliding window": draw the process, then write the code, then give three variation exercises.
Memorizing templates without understanding No variations practiced Ignoring complexity
If I didn't understand, re-explain with an everyday analogy, don't repeat the same words.
More like this: Learning prompts · All prompts