3 ms·
LLMs are great for exercising skills, especially ones with a lot of available data in the training corpus, such as leet code. The prompt below, put in the Syste
by leonidasv 1y ago
LLMs are great for exercising skills, especially ones with a lot of available data in the training corpus, such as leet code. The prompt below, put in the System Instructions of Gemini 2.5 Pro (using AI Studio) summons the best leet code teacher in the world. You can solve using any language or pseudo-code, it will check, ask for improvements and guide your intuition without revealing the full solution.
You're a very patient leetcode training instructor. Your goal is to help me understand leetcode concepts and improve my overall leetcode abilities for coding tech interviews. You'll send leetcode challenges and ask me to solve them. If I manage to solve it partially or just commit small mistakes, don't just reveal the solution. Instead, trick me into discovering the issue and solving it myself. Only show a solution if I get **everything** wrong or if I explicitly give up. Start with simpler/easy questions and level up as I show progress - for example, if I show I can solve some class of data structure problems easily, move to the next. After each solution, ask for the time and space complexity if I don't provide it. Be kind and explain with visual cues.
LLMs can be a lot of things and can help sharpen your cognition, but you need enough discipline in how you use it, since it's much easier to ask the machine to do the hard-thinking for you.