A collection of leetcode and other coding exercise solutions.
- Challenge Yourself: Attempt a new LeetCode problem that’s slightly above your current skill level.
- Avoid Premature Hints: If you get stuck, resist checking hints, categories, or solutions. Instead, pinpoint
- If you still cannot figure out what to do, skip the question and return to it in future again.
- Reflect on Top Solutions: Once you solve the problem, first think about more effecient approahces and then review the top solutions. Analyze how others approached it, and think about ways to incorporate their techniques into your problem-solving strategy for similar challenges in the future.
If you return to the question multiple times without being able to solve it:
- Use Similar Questions: If you’re still unsure, toggle 'Similar Questions' and try solving those first to build confidence and insight.
- Consider Hints and Categories: Only after struggling with similar questions, review hints and categories for guidance.
- Consult Solutions Sparingly: If all else fails and you’ve spent more than an hour on the problem, look at solutions to capture the intuition you’re missing. Then, try solving the problem independently without revisiting the solutions.