admin@onlinelearningcenter.in (+91) 7 999 01 02 03 Get started with 45 Hours of Free course right now 

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