Problem 40. Reverse Run-Length Encoder
Solution Stats
Problem Comments
-
4 Comments
See my function "seqle" on FileExchange. It may not be as compact, but it's easy to use and both encodes and decodes.
The problem statement would have been clearer if the principle of RLE had been explained with an encoding example first. Alternatively, it would have been useful to explicitly mention that the data in vector x is being read pairwise.
easy
useful challenge
Solution Comments
-
1 Comment
ugly but more fun than loops!
-
1 Comment
note: repelem did not exist back when this problem was created
-
1 Comment
not limited to 1-9
-
2 Comments
-
2 Comments
Problem Recent Solvers1973
Suggested Problems
-
Make the vector [1 2 3 4 5 6 7 8 9 10]
41166 Solvers
-
Given two arrays, find the maximum overlap
813 Solvers
-
Given an unsigned integer x, find the largest y by rearranging the bits in x
1199 Solvers
-
314 Solvers
-
1100 Solvers
More from this Author95
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!