Some of it is practice and training. I was always a "slow programmer" in the short term. Before I ever practiced algorithmic coding I could do say, fizzbuzz and two sum, but it might have taken me a good ten to fifteen minutes to really think it through, write out the code, and identify any bugs.
After I decided to really dive into DS&A and do some interview prep, I really focused on speed and I got so much faster.
After I decided to really dive into DS&A and do some interview prep, I really focused on speed and I got so much faster.