bhiya 11000011 wale example me apne bataya zero changes langenge ye phele se beatiful but isme substring 1100 or 110000 bhi exits karte hai jsime only 1s or only 0s nahii hai to 11000011 beatiful string kaise ho gaya
Bhai agar tum dhyaan do toh ye string pehle se beautiful hai kyuki it is possible to break it in even length substrings which have same characters tbhi maine kaha it is very important ki aap kaunsi length choose kar rhe ho. Beautiful string ka mtlb ye nahi hai ki har possible partition ko bhi condition full fill karna chahiye. Agr aisa hota toh humei hr baar ya toh poore string ko 1 ya toh 0 mei convert krna hota... Remeber beautiful string ka mtlb there is a possible partition of that string such that substrings are of even length and they consist of same characters. Toh 11000011 mei agr tum 1100 + 0011 lete toh iss tarah se partition krne pe tumko 4 operation lg jaate pr agar tum 11000011 ko 11 + 00 + 00 + 11 ke jaise partition kroge toh tumhe dikhega ki beautiful string ki condition pehle se fullfill ho rhi hai you dont need any operation for it ! I hope smjh aagya hoga ! 😊
Thank you so much sir. This is very very helpful
@@KaifiKhan-vk4mq Happy To Help ! 😊
Good Going Amit 🎉Keep it up..May all your hardworking brings success in your life 👍
bhiya 11000011 wale example me apne bataya zero changes langenge ye phele se beatiful but isme substring 1100 or 110000 bhi exits karte hai jsime only 1s or only 0s nahii hai to 11000011 beatiful string kaise ho gaya
Bhai agar tum dhyaan do toh ye string pehle se beautiful hai kyuki it is possible to break it in even length substrings which have same characters tbhi maine kaha it is very important ki aap kaunsi length choose kar rhe ho. Beautiful string ka mtlb ye nahi hai ki har possible partition ko bhi condition full fill karna chahiye. Agr aisa hota toh humei hr baar ya toh poore string ko 1 ya toh 0 mei convert krna hota...
Remeber beautiful string ka mtlb there is a possible partition of that string such that substrings are of even length and they consist of same characters.
Toh 11000011 mei agr tum 1100 + 0011 lete toh iss tarah se partition krne pe tumko 4 operation lg jaate pr agar tum 11000011 ko 11 + 00 + 00 + 11 ke jaise partition kroge toh tumhe dikhega ki beautiful string ki condition pehle se fullfill ho rhi hai you dont need any operation for it ! I hope smjh aagya hoga ! 😊