by agumonkey · 4y ago · 0 comments
ps: thanks for the nice suggestions folks :)
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/197...
https://leetcode.com/problems/find-the-distance-value-betwee...
https://leetcode.com/problems/count-sub-islands/discuss/1974...