Cody

Timothy Chavez

4880
Rank
3
Badges
310
Score
1 – 28 of 28

Timothy Chavez received Introduction to MATLAB Master badge

on 31 Aug 2019

Timothy Chavez received Commenter badge for Solution 1917732

on 31 Aug 2019

Timothy Chavez submitted a Comment to Solution 1917732

This solution seems to run correctly in MATLAB (desktop)... can anyone tell me why it is coming back with an "Assertion Failed"? function vec = makeRandomOrdering(n) vec = zeros(1, numel(n)); flags = zeros(1, numel(n)); index = 1; while (sum(flags) ~= numel(n)) pos = randi(numel(n)); if (flags(pos) ~= 1) vec(index) = n(pos); index = index + 1; flags(pos) = 1; end end end

on 31 Aug 2019

Timothy Chavez received Solver badge for Solution 1917556

on 31 Aug 2019

1 – 28 of 28