Open rimaout opened 5 months ago
def es(P):
if P == None:
return 0
count = 0
if P.key % 2 == 0:
count = 1
return count + es(P.next)
def es3(p):
if p==None:
return 0
if ( p.val % 2 ) == 0
return 1+es3(p.next)
return es3(p.next)
Soluzione Prof