Advertisement
cardel

Pruebas python

Dec 6th, 2022 (edited)
1,165
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.34 KB | None | 0 0
  1.     instanciaC = ArbolRojinegro(None, None, -1, True)
  2.  
  3.     for i in range(0,500):
  4.         instanciaC.insertar(i)
  5.  
  6.     assert altura(instanciaC) <= 2 * math.log2(500) + 1
  7.  
  8.     instanciaD = ArbolRojinegro(None, None, -1, True)
  9.  
  10.     for i in range(0,500):
  11.         instanciaD.insertar(i)
  12.  
  13.     assert altura(instanciaD) <= 2 * math.log2(500) + 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement