Python Shorts

Is O(n) the only way to improve your algorithms?

How Understanding the problem statement could help you to optimize your code

Rahul Agarwal
4 min readApr 25, 2019

--

Photo by Patrick Tomasso on Unsplash

Whenever we talk about optimizing code we always discuss the computational complexity of the code.

Is it O(n) or O(n-squared)?

--

--