codemaster_21's blog

By codemaster_21, history, 6 months ago, In English

- 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).

Full text and comments »

  • Vote: I like it
  • -21
  • Vote: I do not like it