Problem 926. Unique: Speed Enhancement for uint(8,16,32)
This Speed Performance Challenge is to optimize Unique for processing uint8/uint16/uint32 variables.
Input: A (column vector of uint8/uint16/uint32)
Output: B (column vector A processed by unique "like" function)
Scoring: Cumulative time, in msec, of "unique" processing of three medium size arrays.
Examples: [5;4;3;2;2;1] returns [1;2;3;4;5], and Fast
Hint: Help Unique, Legacy, Options
Solution Stats
Problem Comments
Solution Comments
Show commentsProblem Recent Solvers25
Suggested Problems
-
Return the 3n+1 sequence for n
8402 Solvers
-
12617 Solvers
-
Make a run-length companion vector
648 Solvers
-
Matrix which contains the values of an other matrix A at the given locations.
235 Solvers
-
How many monitors are connected ?
155 Solvers
More from this Author308
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!