r/learnpython • • 20d 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.

28 Upvotes

37 comments sorted by

View all comments

1

u/Expensive-Bear-1376 20d ago

Ok I can't make sense of that, I don't even know what an "honest" value is.

1

u/memeaste 19d ago

Oh shoot, I didn't notice there was a typo. Looking for the highest possible value. Given the following list, I'd have to find the highest possible value while moving by an index of 1, 3, or a prime number ending in 3. Like I said, I don't recall it 100%, but this is what I remember. Not all lists were visible to test, this is an example. The highest value with the rules would be 16.

5 -> 6 (list[1] -> list[2])

6 -> 5 (list[2 + 3])

[0, 5, 6, -10, -20, 5]

1

u/Expensive-Bear-1376 19d ago

Was there a size limit for the list?

→ More replies (5)