Problem 51768. Redefine the Array if the Elements in the Array are Repeating
Check if the Array has any repeating elements, if there are repeating elements then choose "n" as a number of times you want that element to be present (no. of repeatations according to your interest) in the same place between the specific elements.
Solution Stats
Problem Comments
-
2 Comments
Dyuman Joshi
on 15 May 2021
Your problem statement doesn't make sense with the test cases.
Rafael S.T. Vieira
on 20 Nov 2022
The exclamation mark "!" is a repeating element that should be removed from the output according to the problem's description, and n is equal to 1 (since there is no input parameter to control it). Moreover, there is no reason for d to be capitalized in the output. Please, fix the problem description or the test suite
Solution Comments
Show commentsProblem Recent Solvers12
Suggested Problems
-
93 Solvers
-
The sum of the numbers in the vector
578 Solvers
-
328 Solvers
-
204 Solvers
-
Calculate solution of given polynomial
87 Solvers
More from this Author1
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!