diff --git a/CodeChef_Non_Adjacent_Flips.cpp b/CodeChef_Non_Adjacent_Flips.cpp new file mode 100644 index 0000000..567b860 --- /dev/null +++ b/CodeChef_Non_Adjacent_Flips.cpp @@ -0,0 +1,30 @@ +#include +using namespace std; + +int main() { + // your code goes here + int t; cin>>t; + while(t--){ + int n; cin>>n; string s; cin>>s; + int k = 0, z=0; + for(int i=0;i0){ + cout<<2<