0
def printer (n): if (n <= 0): return "please enter a number greater than 0" else: for i in xrange (0,n) print i what's the run time of this algo?
Algo runtime
2 odpowiedzi
+ 1
O(n)
0
thank you Amanuel, could you kindly explain it for me, I'm having trouble understanding the runtime for algo's