Compress list - MATLAB Cody - MATLAB Central

Problem 59766. Compress list

Difficulty:Rate
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

24.39% Correct | 75.61% Incorrect
Last Solution submitted on May 10, 2025

Solution Comments

Show comments
Why should you share code?
In a discussion on LInkedin about my recent blog post, Do these...
3
6

Problem Recent Solvers9

Suggested Problems

More from this Author53

Problem Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!