for(int i = 0; i < Array.length ;i++)
{
...
if(s[i]>s[m]){
m = i;
}
}
What would the time complexity of this algorithm be? O(n)?
question from:https://stackoverflow.com/questions/65932089/time-complexity-of-if-inside-of-for-loop