Why is TIME and SPACE complexity important for you?

Purpose

Time complexity measures the total time taken to execute each of the statement of an algorithm.

Space complexity measures the total amount of memory space used to run a algorithm including the inputs.

Why are they essential?

There are millions ways of coding to achieve the same target. However the time and space taken may be varied based on the algorithm. And these two factors are the essential keys to determine the performance of…

--

--

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