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
https://github.com/AhmedNazir/MatlabCody/blob/master/duplicates.m
That's cheating :D
This doesn't need the first line of code at all ...
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.
Find state names that start with the letter N
617 Solvers
Program an exclusive OR operation with logical operators
641 Solvers
Sum of diagonal of a square matrix
1333 Solvers
Find nearest prime number less than input number
274 Solvers
Back to basics - mean of corner elements of a matrix
303 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!