i wanted to know what is the complexity of doing two loops when they both do the same amount of loops, like this:
for(i=0;i<n;i++)
{
}
for(i=0;i<n;i++)
{
}
is it O(n+n) = O(n)?
i wanted to know what is the complexity of doing two loops when they both do the same amount of loops, like this:
for(i=0;i<n;i++)
{
}
for(i=0;i<n;i++)
{
}
is it O(n+n) = O(n)?