Problem 59766. Compress list
Given a non-empty list L of positif integers, compress the list so that only one occurrence is retained if two (or more) equal elements are adjacent to each other.
Solution Stats
Solution Comments
Show commentsProblem Recent Solvers6
Suggested Problems
-
Four quadrant inverse tangent function.
64 Solvers
-
Recurring Cycle Length (Inspired by Project Euler Problem 26)
115 Solvers
-
831 Solvers
-
How long is the longest prime diagonal?
391 Solvers
-
Create logical matrix with a specific row and column sums
298 Solvers
More from this Author24
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!