Problem 44651. Find all repeated numbers
For a given vector, find all numbers that repeated 2 times or more than 2 times.
Example:
A=[1 2 3 3 4 5 6 6 7] y=[3 6]
Example:
A=[1 1 1 1 0 1 1 2 2 9] y=[1 2]
Solution Stats
Problem Comments
-
2 Comments
David Verrelli
on 25 May 2018
Please adjust your Test Suite. In the first test case please test for an empty array using "isempty", not equality to "[]". See Solution 1539918. —DIV
David Verrelli
on 25 May 2018
Same issue illustrated in Solution 1539926.
Solution Comments
Show commentsProblem Recent Solvers47
Suggested Problems
-
Create a square matrix of multiples
464 Solvers
-
Who has power to do everything in this world?
433 Solvers
-
find the surface area of a cube
508 Solvers
-
特定の値がベクトル内に含まれているかを確認するコードを書こう
293 Solvers
-
969 Solvers
More from this Author18
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!