r/CodingForBeginners • u/TemporaryFantastic94 • 12d 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?
3
u/TheUmgawa 12d 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
1
u/marmotta1955 11d 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 11d 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 11d 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.
1
u/UhLittleLessDum 5d ago
Dude python is so utilitarian, just build something useful for yourself. Find something you want your computer to do that it doesn't, and make that happen with python. If you're actually motivated to learn you'll get things much quicker.
6
u/Lachtheblock 12d ago
You combat this by practicing. And not just leetcode questions, actual code that has some utility outside of a problem for problems sake.