-
1 Comment
Brad Luft
on 26 Jul 2022
Ended up using ifs for tests 4 and 6 if I remember correctly.
Test 4: wanted [1,1], I outputted [1]
As the question asks for the repeated number, I would argue mine is more correct.
test 6: wanted [3, 2]'. since unique sorts the array, mine was [2 3]'
Bad fix, but also a nasty bug. I would like to see more ambiguity in solutions.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!