array complexity algorithms

Not a big fan of this method. If you have an array with a large number of elements, then you might return false when it should return true.