r/learnpython • • 17h ago

Is Leetcode a good way to continue practicing/learning Python?

I'm not entry, but I'd like to continue becoming stronger in my skills.

21 Upvotes

28 comments sorted by

View all comments

12

u/RandomPantsAppear 17h ago

It’s a good way to interview well. I’ve rarely found leetcode problems relevant to work. The ratio of b-tree problems to b-tree users is bad(as an example).  

It is good for breaking out of O(n)2 habits though. 

2

u/memeaste 17h ago

That's good. I had 2 coding assessments for a job I applied for, 1 was tricky while the other one was weirdly simple. Both were entry level, which is weird.

1

u/Expensive-Bear-1376 9h ago

Can you tell what the tricky one was?

1

u/memeaste 9h ago

I don’t remember it 1:1, but it something where I had to iterate a list by 3 or n where n is a number that ends in 3 and is a prime number to get the honest possible value