I have tried almost all good test cases for PALIN problem. Cant find the bug in the code. Need help. My code can be found in the link
http://ideone.com/k4bIp3Please help!!
check out spojtoolkit.com for more test case/