I'm a newbie to time complexities and algorithms.
Say a method is passed an array, and we iterate through that array just once. I understand that the time depends on the size of the array--let's call that "n." But what if for each element "el" in that array, you do something "el" times? What would be the time complexity in this case, since you have another variable? Would it still be "n" since we only care about the variable in this case, which is the array size?
Thanks!