+ 1

Find most frequent element in array

Hello! I'm having trouble getting the right output from this code. The purpose of it is to find the most frequent number, print it out and also print out how many times it appears. https://code.sololearn.com/c19gWXb3GZ75/?ref=app

23rd May 2019, 12:36 AM
MargaritaK
2 Antworten
+ 1
Baptiste E. Prunier thank u very much! :)
24th Jul 2019, 9:51 PM
MargK645
0
I corrected it in the code bellow. Sololearn does not show all compilation / execution errors so it is hard to find a problem using this IDE. If you have any question (about this code or about something else), I will be glad to try to help you ! :) https://code.sololearn.com/cyuv9H01iRGl/?ref=app
24th Jul 2019, 9:14 PM
Baptiste E. Prunier
Baptiste E. Prunier - avatar