Cody

Franco Aprigliano

57827
Rank
1
Badge
10
Score
1 – 2 of 2

Franco Aprigliano submitted a Comment to Solution 2275658

This test fail = a = [ 0 1 2 1; 0 2 1 1]; c = 1; assert(isequal(most_change(a),c)) I don't undersdand why. The first person = 0 * 0.25 + 1 * 0.10 + 2 * 0.05 + 1 * 0.01 = 0.21 The second person = 0 *0.25 + 2 * 0.10 + 1 *0.05 + 1 * 0.01 = 0.26 So the first person has less money than the second, should return 2. I'm missing something here?

on 13 May 2020

Franco Aprigliano received Commenter badge for Solution 2275658

on 13 May 2020

1 – 2 of 2