Problem 53. Duplicates
57.76% Correct | 42.24% Incorrect
Last Solution submitted on Apr 02, 2023
Show 1 older comment
Jean-Marie Sainthillier on 24 May 2014
Why not just an isequal(correct,result) in the tests?
Consequently, a lot of solutions leave duplicates in the result.
Erik Zdansky on 7 Feb 2016
How should higher multiplets be treated?
mehmet muhammet cesur on 8 Jun 2020
Ahmed Nazir on 1 Oct 2020
Useful function => unique, countcats, categorical
@bmtran (Bryant Tran) on 26 Jan 2012
ah, i didn't realize that you could leave duplicates in the final result and still have it pass the test cases; nicely done
Dyuman Joshi on 28 Nov 2020
This is indeed a very good solution!
Rik on 14 Jan 2021
There should probably be a test to detect this.
Problem Recent Solvers1870
Sum of diagonal of a square matrix
Return the first and last characters of a character array
More from this Author96
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!