Answers for "o(n+m)"

C#
1

o(n*m)

for(int i = 0, i < m, i++)
    for(int j = 0, j < n, j++)
        //code
Posted by: Guest on June-29-2021
0

o(n+m) means o(n)

Yes, O(M+N) means the same thing as O(max(M, N)) 
Since (M+N) is a linear function.
Posted by: Guest on June-07-2020

C# Answers by Framework

Browse Popular Code Answers by Language