minimum number of flips to make all substring in a binary string have atleast one 1 code example
Example: how to remove maximum number of characters in c++ cin,ignore
std::cin.ignore(std::numeric_limits<std::streamsize>::max(), '\n');
std::cin.ignore(std::numeric_limits<std::streamsize>::max(), '\n');