Problem 45162. Double all elements in the array
Solution Stats
Problem Comments
-
3 Comments
The solution to this problem doesn't make any sense!!!
If you are using the word "duplicate" to mean multiply by 2, then the correct answer is [2,4,6], not [1,4,6]
The title and description have been clarified. Also, the test suite has been corrected and expanded.
Solution Comments
-
1 Comment
interesting solution!
-
1 Comment
duplicate is not the same as double the element values
-
1 Comment
the description has some problem.
-
1 Comment
please check the test suit again bro
-
1 Comment
This is a mistake in the solution: the real solution is [2 4 6]
Problem Recent Solvers717
Suggested Problems
-
Project Euler: Problem 10, Sum of Primes
1303 Solvers
-
Sum of diagonal of a square matrix
1479 Solvers
-
Change the sign of even index entries of the reversed vector
422 Solvers
-
Determine the number of odd integers in a vector
590 Solvers
-
Who has power to do everything in this world?
404 Solvers
More from this Author7
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!