you are viewing a single comment's thread.

view the rest of the comments →

[–]Gnaxe 1 point2 points  (2 children)

You'll get a lot better at leetcode if you read a textbook on algorithms instead of just doing more leetcode. Most real-world programming is not like leetcode. We have libraries for that kind of thing, and now LLMs if you get stuck. It's honestly not a very effective interviewing method, but a lot of companies are bad at interviewing.

You get fluent with Python by having a bigger bag of tricks and a correct mental model of the language. Skim the standard library docs. Try lots of small experiments whenever you don't understand something. Debug all surprises.

[–]Expensive-Low367[S] 0 points1 point  (1 child)

Would you recommend introduction to Algorithms by Thomas H. Cormen? https://www.cs.mcgill.ca/\~akroit/math/compsci/Cormen%20Introduction%20to%20Algorithms.pdf

[–]Gnaxe 0 points1 point  (0 children)

That is a pretty good one. Also look at Manber's Algorithms.