r/CodingForBeginners • u/TemporaryFantastic94 • 4d ago
Day 7 of mastering python for interviews:
I feel so good about remembering syntax and how to attack different algorithms while studying, but when I go to try a problem it feels like I forget everything. Does anybody know how to combat this?
8
Upvotes
6
u/Lachtheblock 4d ago
You combat this by practicing. And not just leetcode questions, actual code that has some utility outside of a problem for problems sake.
3
u/TheUmgawa 4d ago
Can you solve the program in another language? Is Python the problem, or does your problem have to do with breaking down the logic?
You're trying to memorize all of the solutions to all of the problems, rather than rolling the logic on the fly. It doesn't work, because what are you going to do in an interview when you're presented with a problem that has never been posed to you before?
1
u/edwbuck 4d ago
Memorize the language less, solve more problems with it.
Once you learn how to use the tools, you know which parts of the language to reach for to do the task at hand.
1
u/GuruPentameter 4d ago
sounds like feeling good is not the metric you should be using.
1
u/marmotta1955 4d ago
The problem, here, is in the title. "Day 7 of mastering python for interviews".
I don't know what your overall experience is, but the fact you post here is probably indicative. Just think of this. What would you ask me, or recommend to me if I said: "Day 7 or mastering 10 meters platform diving for the national championship... "
1
u/Upstairs_Jelly_1082 3d ago
try solving some issue that makes one of these algorithms to solve, because I feel that the more that you try to do leetcode questions, the more you're going to end up in this situation.
Look for some map algorithm, then try replacing it with some another algorithm, you get the idea.
1
u/likestoplaygamesalso 3d ago
lol had a interview with Nvidia that I literally did this. Just mock coded the thing using a mix of bash ruby python. It was embarrassing to say the least.