Problem 44303. Find the sum of the largest two elements in a vector
Solution Stats
Problem Comments
-
1 Comment
Additional test cases have been added.
Solution Comments
-
2 Comments
This would fail when the largest two elements are equal to eachother (for example, when x = [1, 1, 2, 3, 4, 5, 5, 5, 80, 80]).
Yes you are correct, i have adjusted my code in 1264109
Problem Recent Solvers80
Suggested Problems
-
Basics: 'Find the eigenvalues of given matrix
358 Solvers
-
271 Solvers
-
Check that number is whole number
2282 Solvers
-
759 Solvers
-
238 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!