+ 1

Extracting repeated numbers from array

let us take an array {12, 2, 217, 36, 10, 24, 36, 15, 10, 36, 12, 10, 36} now we have to get the output as {36, 10, 12} that means the highest repeated number have to come at the first place like 36 repeated 4 times 10 -> 3 times 12 -> 2 times

16th May 2017, 6:04 AM
Hadassah
Hadassah - avatar
6 odpowiedzi
+ 2
which language ....
16th May 2017, 6:09 AM
MR Programmer
MR Programmer - avatar
16th May 2017, 6:49 AM
MR Programmer
MR Programmer - avatar
+ 1
using c#
16th May 2017, 6:11 AM
Hadassah
Hadassah - avatar
+ 1
not this, the output should be 36,10,12
16th May 2017, 6:54 AM
Hadassah
Hadassah - avatar
0
if u can plz do this using list
16th May 2017, 6:55 AM
Hadassah
Hadassah - avatar
0
ok using list makes program much slower. but here is the code https://code.sololearn.com/cW25JOvk1hyD/?ref=app
16th May 2017, 7:52 AM
MR Programmer
MR Programmer - avatar