You are on page 1of 7

timecomplexity

int i i

while ien n

DTU constant
print
it

Ma steps
int i l

while ien I
woop
Mutiny
no print Dtu
i i 12 1110 3110 5 7110 9110

J
Is z times OG
int i c

while ien

print Dtu
mfssteps
is it
OG

int i i
n
while ien
m K Goofsteps
Dtu
print
isitk
no of steps
E
OCI
int is t m 210
011093 pg
while ien
is 22
1 23 3 23
i 24
i i 2 i o É
i 26
i 24
1 28
int ist i 29
while ien is 2 k
210 2k
n 2k
1 9 3 01193 10922k
logy
egg
while ien
011097
jpg
print Dtu g
Ic n

logo6k logy
KilogG

j
while ien

Dtd
print
While n o

Dro 0
print
men 1

while n o

print Dtv Fdn


OG
men 2 I

3
print Dtv

p
on

while n o

print
men k
Dtv
Off

while n o

print Dtv Ology


men 2
while n o I 33
2 M
32
print
m n 3
Dtv
D 7330

I Ia
which o
Fc
n 3
print Dtv
men 2
0 logon kilo
him
73

while n o

Dtv O logan
print
men k

i l ten itt innermost


forcint statement is
executing how

forcint jet jen jet many no


of
times

print DTU
independent

no of times
lookin
ien
for int i l ten itt n
a
forint
n
freintji gen ja forcintshjen jet
print DT
print DT

if I if

É II s

2 2
m2
2 10

for int it ien int

int
j l jei jet
for

2
print Dtv
I
unrot
II
jintimes
l k nxlooo tim
K toootimes

1000 2000 3000 t nxt ooo

1000 1 2 3 n

1000 n m 1000 m2

Q for int i i ien int


joy
for int
ji jen jiti
print DTU

I is it
forgniien i D
trifid
my Mn
te
7 2 3 I

t I I 1

ne
n log n

Q I i 5 1

white Sen

it
5 Sti
syso DTU

You might also like