We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
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
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
What's Next?
You are viewing a single comment's thread. Return to all 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