I can remember when I was very excited just to see me code work. It gave the desired output. That was the first metric I used to evaluate my code, and it’s remained the most important one, but many other layers of evaluation have since been added: code length, readability, conventionality; and now, complexity.

not a very useful function but it runs fast
notice the top example can just have an integer input but still has a linear time relationship

Aspiring software engineer with almost no experience applying logic

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store