Aymptotic complexity of C(n,2)

176 Views Asked by At

If I have to iterate over some code n choose 2 times what is the asymptotic complexity? Let's assume that the inner loop is runs in O(n)

For each combination in C(n,2)
  do something in O(n) time
Next