4 ms·
I try to do a few LeetCode problems a day as my own take on the “coding kata” idea. There is really a pretty small set of problems and subproblems that crop up
by timoteostewart 4y ago
I try to do a few LeetCode problems a day as my own take on the “coding kata” idea. There is really a pretty small set of problems and subproblems that crop up over and over again in LC problems, so stuff like building a tree or graph traversal or performing a string or array transformation become very well worn and familiar tools.
- agumonkey 4y agoI was wondering what one could do after finishing leetcode (not that I did), do you have any idea ? reading publications / journals to find new algorithms to study ? ps: thanks for the nice suggestions folks :)
- ansk0 4y agoIf you like maths then project euler problems can be quite fun. I'd also recommend https://codecrafters.io/ https://codecrafters.io/ - I did the Redis challenge recently while trying to (re)learn Java and it was a good experience.
- timoteostewart 4y agoWow, codecrafters.io looks fascinating. Thanks!
- timoteostewart 4y agoGood question. LC mainly deals in general-purpose algorithms, so if you're getting diminishing returns there, then my advice would be to probe your domain specialty for niche algorithms or data structures. That might mean journals or online communities. Like I'm sure there are hangouts for machine learning (ML) folks, for functional programming (FP) folks, for automation nerds, and so on where algorithms and approaches relevant to the niche are bandied about. Another option is to use the LC problems as a test bed for your own exploration and "play" with solving problems. For example, I'm a nerd for optimizing algorithms and for practicing Java-style (not Smalltalk-style) object-oriented programming (OOP). So sometimes I'll find a way to optimize the LC problem in an interesting way. Or I'll deliberately use an OOP approach. Here are a few examples from the past week of me doing things like this on LC. Maybe it'll inspire you to hone your own particular interests in some way. https://leetcode.com/problems/search-a-2d-matrix/discuss/1977268/java-0ms-beats-100-uses-custom-pseudoarray-class-that-turns-matrix-into-array https://leetcode.com/problems/search-a-2d-matrix/discuss/197... https://leetcode.com/problems/find-the-distance-value-between-two-arrays/discuss/1974248/java-2ms-beats-995-decompose-abs-into-comparisons-against-precomputed-arrays https://leetcode.com/problems/find-the-distance-value-betwee... https://leetcode.com/problems/count-sub-islands/discuss/1974436/java-beats-5-uses-object-oriented-approach-custom-classes-for-island-and-cell https://leetcode.com/problems/count-sub-islands/discuss/1974...
- pcthrowaway 4y agoIf you have any interest in front-end programming, bfe.dev is a great resource.
- efortis 4y agoCoding Math is fun. https://www.youtube.com/user/codingmath/videos https://www.youtube.com/user/codingmath/videos