Time And Space Complexity

#time #and #space #complexity

Arvind Chauhan Feb 28 2021 · 1 min read
Share this

Time Complexity

  • Time complexity of an algorithm is the amount of time it needs to run to completion.
  • The time complexity of an algorithm is the CPU time required to execute the algorithm. The time required consists of two major parts,
  •              1. Compile Time

                 2. Execution Time

    We are just concerned only with the execution time since a program is run several times without recompilation.

    Comments
    Read next