i'm making an algorithm and I have to do the Big O, but I'dont how to do it, can any one help me? The code is this. I added the time library to be able to see the execution time in the algorithm, but I don't know very well how to calculate Big O
import time
arre=[1, 3, 2, 4, 5, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11]
m=2
sumatoria=sum(arre)
cantidad=sumatoria/m
arre.sort(reverse=True)
arreglo=[]
arrAuxiliar=arre.copy()
definitivo = []
if sumatoria % m==0:
for idx in range(m):
if arre[idx] == cantidad:
aux=[arre[idx]]
definitivo.append(aux)
arrAuxiliar.remove(arre[idx])
else:
arreglo.clear()
arreglo.append(arre[idx])
arrAuxiliar.remove(arre[idx])
if cantidad-arre[idx] in arrAuxiliar:
numero=arre[arre.index(cantidad-arre[idx])]
arreglo.append(numero)
arrAuxiliar.remove(numero)
else:
if idx==m-1:
arreglo+=arrAuxiliar
definitivo.append(arreglo.copy())
print(definitivo)
print("El tiempo de ejecucion es: ", time.time())