Cody Problem 38. Return a list sorted by number of occurrences
2 views (last 30 days)
I found difficulties with the Problem 38 on Cody here is my solution:
function y = popularity(x)
s(i) = s(i) +1;
for k =1:b
Unfortunately it doesn't work for the second case, can anyone help me with that!
Thanks in advance.