printFirstItemThenFirstHalfThenSayHi100Times
printFirstItemThenFirstHalfThenSayHi100Times
aneagoie
aneagoie
This repl has no description
More repls
3comments
to comment
BobRusch
BobRusch5 months ago

Simple... O(n) -> linear time ...... since all lines except of those in the while loop are executed the same number of times no matter of the length of the array, but the while loop is executed n times based upon the half of the length of the array.

SpotOn
SpotOn7 months ago

1 + 1 + 1 + N + n + n + N + n = 3 + 5n = BIG O(5n)

badpanda9
badpanda99 months ago

lavada madarchod bhenchod kena punda thevdiya munda