Test | Status | Code Input and Output |
---|---|---|
1 | Fail |
Ntest=1e4;
N=randi([10,100],Ntest,1);
K=randi([1 10],Ntest,1);
M=arrayfun(@(N,K)max(randi(N,1,K)),N,K);
N_hat=arrayfun(@tank_problem,K,M);
rate=mean(N==N_hat);
assert(rate>=.1,sprintf('hit rate too low (%0.2f%%)',rate*100));
fprintf('hit rate = %0.2f%%\n',rate*100);
|
729 Solvers
How to find the position of an element in a vector without using the find function
2321 Solvers
162 Solvers
171 Solvers
1780 Solvers