3 ms·
I don't know why anyone would repeat the same code multiple times, but I have found that practicing leetcode does actually improve code skill, even when the cod
by blindmute 5y ago
I don't know why anyone would repeat the same code multiple times, but I have found that practicing leetcode does actually improve code skill, even when the coding job doesn't have any complex algorithms. Just the practice of solving the algorithm has carryover to normal work problems, which would make sense as it's basically distilled code logic practice.
- mceachen 5y agoMany coding challenges are great drill work: but if you can, have your code read by someone else to ensure you're practicing how to write readable, maintainable code. Leetcode solutions seem to be regularly "golfed" into being unreadable and intractable. Don't practice that! At least in my experience, well-defined and functionally isolated coding challenges rarely happen at work, though. Another skill you'll need to hone is listening to your userbase/business partners and translating what they're saying into actual specifications. Doing this adequately is a prerequisite to success. Doing this well (hearing what they need, separating the "need" from the "how", and being imaginative in what a clean implementation would look like) can both reduce what work is needed now, and set up future success to be more likely.
- chris_st 5y ago> Leetcode solutions seem to be regularly "golfed" into being unreadable and intractable. Don't practice that! AMEN!
- chris_st 5y agoOh yeah, I can definitely see doing a lot of small, not-necessarily-easy challenges as a way to improve. Even doing the same one, but in a different way ("now use an array instead of a linked list") would be good.