Eric Le Saux - MATLAB Cody - MATLAB Central

Eric Le Saux

1592
Rank
10
Badges
1597
Score
1 – 50 of 126

Eric Le Saux received Community Group Solver badge for Basics - Cell Arrays

on 23 May 2022

Eric Le Saux submitted a Comment to Problem 54360. k partitions of an array of numbers having nearly equal sum

Indeed, a correct solution wouldn't even be accepted since the test cannot run properly. You're trying to create a matrix where rows don't have equal length. Matlab doesn't like that, but it doesn't even makes sense mathematically. Also, as Chris said, as long as you have one solution, you have many of them, since you can do permutation of elements inside a row without changing the row sum. You probably have to have a way to include all possible solution (maybe just focus on the variance and the fact that there is a one to one correspondence between elements in the inputted vector and the outputted matrix?).

on 7 May 2022

Eric Le Saux received Matrix Manipulation II Master badge

on 7 May 2022

Eric Le Saux received Commenter badge for Solution 6842954

on 4 May 2022

Eric Le Saux submitted a Comment to Solution 6842954

That's brilliant!

on 4 May 2022

1 – 50 of 126
Go to top of page