Which values occur exactly three times? - MATLAB Cody - MATLAB Central

Problem 39. Which values occur exactly three times?

Difficulty:Rate

Return a list of all values (sorted smallest to largest) that appear exactly three times in the input vector x. So if

 x = [1 2 5 2 2 7 8 3 3 1 3 8 8 8]

then

 y = [2 3]

Solution Stats

48.68% Correct | 51.32% Incorrect
Last Solution submitted on Feb 06, 2025

Problem Comments

Solution Comments

Show comments
Primes and Rough Numbers, Basic ideas
What is a rough number? What can they be used...
3
5

Problem Recent Solvers5139

Suggested Problems

More from this Author96

Problem Tags

Community Treasure Hunt

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

Start Hunting!
Go to top of page