If the input vector A is [42 1 1],
the output value B must be the unique values [42 1]
The values of B are in the same order as A
Solution Stats
Problem Comments
3 Comments
Solution Comments
Show comments
Loading...
Problem Recent Solvers999
Suggested Problems
-
Given an unsigned integer x, find the largest y by rearranging the bits in x
1991 Solvers
-
Find a subset that divides the vector into equal halves
400 Solvers
-
1065 Solvers
-
749 Solvers
-
708 Solvers
More from this Author30
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
perhaps you should specify that y is in the order of the first occurence of each unique element of x
This would be a better problem if unique and sort functions were not allowed
Nice problem!