Unable to understand question

Sir/Maam

  1. What is this 2 in the second line of Sample input ?
  2. What is this question asking asking ?
  3. What is this frequency ?

Hi @Ekram,

  1. 2 is the value of k.
  2. question is asking to print the value of top k most occurring number . And if the times they occur is same then print them in ascending order .
  3. Frequency is the times that a number appears… For example in the test case 5 appears twice so its frequency is 2.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.