An algorithm to sort a list L1 of length n:
1) Create new List L2
2) Move biggest element of L1 to beginning of L2
3) Do 2) until L1 is empty
4) Print L2
Can someone figure out what the O() complexity of this is? First I thought it was O(n*log(n)) but I an not so sure anymore, now I think its O(n^2).