Ad
  • Custom User Avatar

    No, where did the 5 go? You can only skip 1 value (the one at index N).

  • Custom User Avatar

    I think that this test is wrong (c++):

    {
    vector numbers { 1,2,3,4,5,6 };
    int expected = -1;
    Assert::That(find_even_index (numbers), Equals(expected));
    }
    I think the answer should be 3 because left side {1, 2, 3} is equal to {6}