Can someone please tell me what am overlooking in my code? It passes all the test cases given in the example but still gives a wrong answer.Thanks in advance.
Here is the link to my code : http://ideone.com/uDhUti
Can someone please tell me what am overlooking in my code? It passes all the test cases given in the example but still gives a wrong answer.Thanks in advance.
Here is the link to my code : http://ideone.com/uDhUti