I can't solve this ploblem !!!

Правка en2, от ankushmondal1y2t, 2024-08-17 12:08:02

You are given a binary string min bits to flip(either from 0 --> 1 or 1 --> 0) to become number of 1's divisible by 4 and palindrome string

example s = 1110 if i flip the last bit 0 to 1 then the string becomes 1111 which is palindrome and the number of 1's divisible by 4

can anyone tell me its solution or intuition??

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en3 Английский ankushmondal1y2t 2024-08-17 14:06:48 168
en2 Английский ankushmondal1y2t 2024-08-17 12:08:02 14 Tiny change: 'g becomes palindro' -> 'g becomes 1111 which is palindro'
en1 Английский ankushmondal1y2t 2024-08-17 12:07:12 342 Initial revision (published)