Explain a algorithm / data structure
Understand how and when to use it.
chatgptclaude
Act as a CS teacher. Explain [algorithm/data structure] clearly: what it is, how it works (with a step-by-step example), its time/space complexity, when to use it and when not to, and a minimal implementation in [language]. Add one common interview question about it.
How to use this prompt
- Tap Copy prompt above.
- Replace the [bracketed] parts with your own details.
- Paste it into chatgpt, claude.