Can someone help me with this problem I am unable to figure out my mistake.. Question:http://www.spoj.com/problems/FREQUENT/ Solution:https://ideone.com/QFpwMT
Can someone help me with this problem I am unable to figure out my mistake.. Question:http://www.spoj.com/problems/FREQUENT/ Solution:https://ideone.com/QFpwMT
Read the input section carefully! It says that input consists of several test cases. You haven't taken this fact into consideration.
Changed variant of code : link
Thanks! Found my mistake!