-1

Is there any kind of function which is used in python to calculate the time complexity of another function?

1 Answers1

1

Time complexity, like any other nontrivial property of programs, is undecidable: there can be no algorithm to compute it, in Python or anything else.

David Richerby
  • 81,689
  • 26
  • 141
  • 235