What's Next?

  • + 0 comments

    Problem description itself is having problem, even values refers 1's and odd referes to 0's but it is contadicting below:

    where the values in even indices (0,2,4,…0,2,4,…) represent some number of consecutive 11 bits and the values in odd indices (1,3,5,…1,3,5,…) represent some number of consecutive 00 bits in alternating substrings of BB.

    For example, suppose we have array A={4,1,3,2,4}A={4,1,3,2,4}. A0A0 represents "1111""1111", A1A1 represents "0""0", A2A2 represents "111""111", A3A3 represents "00""00", and A4A4 represents "1111""1111". The number of consecutive binary characters in the ith