How I used ChatGPT to help me with my Leetcode practice
Prompt
“I want you to guide me step-by-step through solving a LeetCode question.
Instead of giving me the full solution immediately, give me progressively stronger hints as I ask for help. Let me think through the logic and implementation on my own. Help me understand time complexity, edge cases, and possible optimizations, but don’t code it out unless I ask.”
Use Case
For anyone who’s prepping for a leetcode interview, or just practicing LeetCode or CodeForces problems, the way I used this, is whenever I start a problem I usually send the prompt above, and walk one by one with it, it kind of helps especially when you have a problem where you’re actually solving it right, but you’re not sure, this way it helps you move with confidence, and if you couldn’t approach the full solution, ChatGPT will step in to help you FIND it, and not just solve it.