aa battery
Explore posts from servers❔ Just got started with leetcode after a year of learning, I need some help...
So the title says it all I guess, I started with leetcode after around a year with learning and I started away with one of its problems. It took me two hours to finally get it right but my code felt so redundant and long for such a simple problem. Can I get some feedback on how to make it more efficient? Thanks
So here is what I had after I was done (it was the two sum problem)
25 replies