79790151

Date: 2025-10-14 12:15:29
Score: 1.5
Natty:
Report link

You can see a different value of M as a different algorithm. Or you can simply use the highest possible value for worst case complexity.

nM + n + M = n(1+M) + M.

For large values of N you can simplify it as

n*(1+M)

In big-O notation this is simply

O(n)

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: elechris