Leetcode just to improve in current job

I don't have an SWE background (majored in Mechanical Engineering) but I made a transition into SWE a few years back. I have to admit that my code is not that efficient and many things could be done better and simpler. Do you think doing Leetcode would help to become better at writing code? I am not trying to switch jobs at the moment

Postmates RealAshish Apr 21, 2018

I think reading great code from great people in the org or popular git repos is going to be a lot more beneficial.

Microsoft HrPortal🤬 Apr 21, 2018

It would help you but is not the most efficient way to learn if you want to commit time to it

Microsoft Aheicisxos Apr 21, 2018

Great tool for improving writing a clean “code” in a method level. Not good for learning clean architecture or structured code. BUT it comes with interview skill set improvement. So I would recommend it.

Visa LallĂłn Apr 21, 2018

Read books like ‘Effective Java’. Also, first try to figure out what ‘good’ code should be like with very specific criteria. Then after you write work code, reflect upon it and see if it meets all the criteria. If not, modify the code. Rinse and repeat.

Microsoft wfhome Apr 21, 2018

Yes it will help with writing efficient code by understanding complexity analysis, but it will not help with how to structure code properly.

Amazon Slackle Apr 21, 2018

Absolutely recommended to improve fundamentals. Then can also start reading about design patterns and more

Amazon keuZ4f Apr 21, 2018

Nope, leetcode doesn't help with day to day coding. If day to day coding was anything like leetcode, good engineers wouldn't need to spend days practicing for an interview. Interviews used to consist of brain teasers, now they've replaced pure word based brain teasers with code based brain teasers.