Ad
  • Default User Avatar

    no issue you need to count all bears not only bears_pairs

  • Default User Avatar

    There some not right random tests. For example some not right tests.

    Testing for 6 and 'B8lB888B88Bii'
    ['B8B88B8B', False] should equal ['B8B88B8B', True]

    I count pairs in right answer and theres only 4 pairs. But it returns True. I don't know my code is wrong or i misunderstood task.
    More example. Sorry for my english if i wrote something wrong.

    Testing for 6 and '8BBbBea8eB8BBf8b88B'
    ['8BB88B', False] should equal ['8BB88B', True] There is 3 pairs

    Testing for 7 and 'Bb8BbgmBb8B8geB8BBaicii8B8'
    ['8B8BB88B', False] should equal ['8B8BB88B', True] There is 4 pairs

    I think the some tests answer is not right.