Ad
  • Default User Avatar

    Nice way of checking for odd numbers, but the complexity of this algorithm is O(n^2) which is far from optimal (though it is space effecient).