Ad
  • Default User Avatar

    It's bad practic to return number as string.

  • Default User Avatar

    Basic Test
    Tests for integers
    Finds the index of middle element - Expected: 0, instead got: 0
    Finds the index of middle element - Expected: 1, instead got: 1
    Tests for floats
    Finds the index of middle element for floats - Expected: 0, instead got: 0
    Finds the index of middle element for floats - Expected: 1, instead got: 1
    Tests for negative numbers
    Finds the index of middle element for negative numbers - Expected: 0, instead got: 0
    Finds the index of middle element for negative numbers - Expected: 1, instead got: 1
    Tests for mixed numbers
    Finds the index of middle element for mixed numbers - Expected: 0, instead got: 0
    Finds the index of middle element for mixed numbers - Expected: 0, instead got: 0

    Dafuq :/