Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
a = runPair(@StealShareCatch, @chaos);
a(end+1) = runPair(@StealShareCatch, @good);
a(end+1) = runPair(@StealShareCatch, @evil);
a(end+1) = runPair(@StealShareCatch, @doug)
yourScore = sum(a)
terribleScore = 0; % works
badScore = 23000; % good strategy scores this
okScore = 26000; % evil strategy scores this
decentScore = 29000; % chaos strategy scores this
greatScore = 42000; % doug strategy scores this
assert(yourScore > terribleScore, 'Score: %d', yourScore)
assert(yourScore > badScore, 'Score: %d', yourScore)
assert(yourScore > okScore, 'Score: %d', yourScore)
assert(yourScore > decentScore, 'Score: %d', yourScore)
assert(yourScore > greatScore, 'Score: %d', yourScore)
a =
6319 10000 19998 10000
yourScore =
46317
|
Sort a list of complex numbers based on far they are from the origin.
4327 Solvers
401 Solvers
Determine if input is a perfect number
145 Solvers
Change the sign of even index entries of the reversed vector
296 Solvers
Simple equation: Annual salary
3779 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!