UNBEATEN_CODER's blog

By UNBEATEN_CODER, history, 2 months ago, In English,

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

 
 
 
 
  • Vote: I like it  
  • -10
  • Vote: I do not like it  

»
2 months ago, # |
  Vote: I like it 0 Vote: I do not like it

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

»
2 months ago, # |
  Vote: I like it 0 Vote: I do not like it

https://ideone.com/5yLg8f

My AC for FREQUENT

Maybe it will help you

»
2 months ago, # |
  Vote: I like it 0 Vote: I do not like it

Thanks! Found my mistake!