Category Archives: Facebook Hacker’s Cup

Facebook hacker cup 2013 (Beautiful Strings Problem)

I tried to make it in c++, but faced some difficulties during the input interpretation of file…..since didn’t understood that how they are separating lines…   // Code is.. #include<iostream> #include<conio.h> #include<string.h> #include<stdio.h> #include <stdlib.h> #include<fstream> using namespace std; int beauty(char *a) { char x[180][2]; cout<<a; int i=0, j=0; int l=strlen(a); int k=0; for(i=0; i<l; i++) { k=0;… Read More »