Jaime Valencia - MATLAB Cody - MATLAB Central

Jaime Valencia

47056
Rank
2
Badges
72
Score
1 – 9 of 9

Jaime Valencia submitted a Comment to Solution 13318911

correction or1 = [10,7,2,12,14,6,3,9,8,11,5,1,13,4]

on 13 Mar 2024

Jaime Valencia submitted a Comment to Solution 13318911

Test1 is wrong. prube or1=[1,4,8,7,14,10,13,2,9,11,12,3] x1 = sort(x); x2 = x(or1); sum(abs(diff(x2))) < sum(abs(diff(x1)))%x2 shorter distance than x1 % so is better solution

on 13 Mar 2024

Jaime Valencia received Commenter badge for Solution 13318911

on 13 Mar 2024

Jaime Valencia received Solver badge for Solution 13158183

on 14 Feb 2024

1 – 9 of 9
Go to top of page