I was trying to solve the TOANDFRO problem with my code http://ideone.com/e.js/kfjEftDespite my code giving correct answer for test cases I tried (even lalitverma) ,I am getting a WA!Please help!!
i just printed the string 's' that u take as input .....it printed string 's' + some garbage ...use C strings if u r not clear with c++ string class
Thanks bro I'll look into it!
Got AC bro!! I had used <= sign while i should have used < sighn