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 Solvers23
Suggested Problems
-
Sum all integers from 1 to 2^n
14210 Solvers
-
Back to basics 11 - Max Integer
772 Solvers
-
What is the distance from point P(x,y) to the line Ax + By + C = 0?
361 Solvers
-
Make a run-length companion vector
632 Solvers
-
Generate a random matrix A of (1,-1)
289 Solvers
More from this Author294
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!