Cody

Problem 76. De-dupe

Created by Cody Team in Cody Challenge

Remove all the redundant elements in a vector, but keep the first occurrence of each value in its original location. So if

 a = [5 3 6 4 7 7 3 5 9]

then

 dedupe(a) = [5 3 6 4 7 9]

Solution Stats

58.19% Correct | 41.81% Incorrect
Last solution submitted on Apr 24, 2018

Problem Comments

Solution Comments

Recent Solvers1124

Tags

MATLAB Online Live Editor Challenge

Win cash prizes and have your live script featured on our website

Learn more