admin@onlinelearningcenter.in (+91) 7 999 01 02 03

Join the Most Effective Data Engineering Program 😊

(adsbygoogle = window.adsbygoogle || []).push({}); (adsbygoogle = window.adsbygoogle || []).push({}); (adsbygoogle = window.adsbygoogle || []).push({}); (adsbygoogle = window.adsbygoogle || []).push({}); (adsbygoogle = window.adsbygoogle || []).push({});

Print the highest occurrences item as output. If there is no clear winner, print “NOTA”

Sample Input:
["pasta","pasta","pasta","pasta","pasta","paratha","paratha","paratha"]
Sample Output:
pasta

Sample Input:
["pasta","pasta","pasta","paratha","paratha","paratha"]
Sample Output:
NOTA

 

 

Published By : Vaibhav G. Khetal
Please write comments if you find anything incorrect, or you want to share more information about the topic discussed above.

Comments