Comment Comment by Veedrac The first is slow (O(n²) where O(n) will do), and the second is very likely to be slow (probably the same). parent Veedrac 9 years ago