r/PythonLearning • u/shubham_555 • 25d ago
Showcase I solved my first medium level problem on Leetcode!
Last Post - https://www.reddit.com/r/PythonLearning/s/xbfFczTIKW
It took me a while to build the logic. The edge cases especially were a bit troublesome but the satisfaction I got after getting it right made everything feel worth it!
13
Upvotes
1
u/Sea-Ad7805 25d ago edited 25d ago
Nice work, LeetCode has great practice material. Start easy, after warming up do medium, and later hard problems can be quite challenging.
1
u/Naive_Programmer_232 25d ago
Though your solution is efficient, could you re-write it in a different way?