Time Complexity.

Revision en1, by codemaster_21, 2023-06-06 10:18:40

- How to find Time complexity.

  1. It is simple when you using only one loop so your time complexity is O(n).
  2. When your loop ends in middle so time complexity is O(nlogn).
  3. When you using only condition and pointer time complexity is O(1).
Tags time limit, runtime error, time exceeded


  Rev. Lang. By When Δ Comment
en1 English codemaster_21 2023-06-06 10:18:40 274 Initial revision (published)