InterviewBit-Day1

Time Complexity Of A Computer Program

  • “Whats the time complexity of the solution ?”
  • “Can you improve the time complexity of your solution ?”

时间复杂度,选择最差的

主要的时间复杂度有:

O(1)、O(logn)、O(n)、O(nlogn)、O(n^2^) 、O(n^3^)、O(n^k^)、O(2^n^)

0%