Problem 53. Duplicates
Solution Stats
Problem Comments
-
4 Comments
Why not just an isequal(correct,result) in the tests?
Consequently, a lot of solutions leave duplicates in the result.
How should higher multiplets be treated?
güzell
%%
Useful function => unique, countcats, categorical
Solution:
https://github.com/AhmedNazir/MatlabCody/blob/master/duplicates.m
Solution Comments
-
1 Comment
https://github.com/AhmedNazir/MatlabCody/blob/master/duplicates.m
-
1 Comment
That's cheating :D
-
1 Comment
This doesn't need the first line of code at all ...
-
3 Comments
ah, i didn't realize that you could leave duplicates in the final result and still have it pass the test cases; nicely done
This is indeed a very good solution!
There should probably be a test to detect this.
Problem Recent Solvers1619
Suggested Problems
-
Find the sum of the elements in the "second" diagonal
1055 Solvers
-
How long is the longest prime diagonal?
366 Solvers
-
571 Solvers
-
Check if number exists in vector
7240 Solvers
-
Remove element(s) from cell array
807 Solvers
More from this Author95
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!