my code is working fine for given example.but its giving wrong answer…How to find fault in my code ?
Can i post my code here ?
I dont think so. The problem is from a live contest,and thus getting your code corrected by someone else would be against ethics. A live contest is meant to learn,which you definitely won’t if you get someone else to correct your code.
Note that it is nothing against you, but posting questions about a live contest here and receive any sort of feedback is not a good thing either for the contest itself or for you if you want to learn something… Editorials will be released on the 11th of December…