Constant Time O(n) = n
takes one line, returns a single line. No matter how many pieces of data put in, the number of lines to compute that is the same ammount. you are always returning the same thing. it is not dependant on any of the data.
takes one line, returns a single line. No matter how many pieces of data put in, the number of lines to compute that is the same ammount. you are always returning the same thing. it is not dependant on any of the data.