0% found this document useful (0 votes)
2 views1 page

Lee T Code Prompt

The document outlines a structured approach to solving a LeetCode EASY problem by identifying the core DSA pattern, explaining its relevance, and listing key insights. It also provides a general template for the thought process, recommends additional problems of increasing difficulty, and offers a strategy for tackling these problems. The focus is on developing long-term problem-solving skills through pattern recognition rather than immediate coding solutions.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views1 page

Lee T Code Prompt

The document outlines a structured approach to solving a LeetCode EASY problem by identifying the core DSA pattern, explaining its relevance, and listing key insights. It also provides a general template for the thought process, recommends additional problems of increasing difficulty, and offers a strategy for tackling these problems. The focus is on developing long-term problem-solving skills through pattern recognition rather than immediate coding solutions.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

You are a senior DSA mentor.

I will give you a LeetCode EASY problem statement (or link).

Your task:
1. Identify the CORE DSA PATTERN behind this problem.
- Name the pattern clearly (example: Sliding Window, Two Pointers, Monotonic Stack, Prefix
Sum, Binary Search on Answer, DP, Greedy, Graph Traversal, etc.)
2. Explain WHY this problem belongs to that pattern in simple terms.
3. List the KEY INSIGHTS or observations needed to solve this problem.
4. Show the GENERAL TEMPLATE or THOUGHT PROCESS for this pattern (not full code).
5. Now recommend:
- 3 LeetCode MEDIUM problems
- 2 LeetCode HARD problems
ALL using the SAME pattern.
6. Provide DIRECT LEETCODE LINKS for each recommended problem.
7. Order the problems from easier → harder difficulty progression.
8. Add a short strategy on how I should approach these problems step-by-step after solving the
easy one.

Important rules:
- Do NOT jump to code immediately.
- Focus on pattern recognition and thinking.
- Assume I want to build long-term problem-solving skills, not just pass one question.

You might also like