Cody

Problem 44426. short or buy ? take the opportunity

Solution 1365833

Submitted on 2 Dec 2017 by jean claude
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

This solution is outdated. To rescore this solution, sign in.

Test Suite

Test Status Code Input and Output
1   Pass
theoric=50 quoted=55 y_correct = 'short'; assert(isequal(your_fcn_name(theoric,quoted),y_correct))

theoric = 50 quoted = 55

2   Pass
theoric=50 quoted=45 y_correct = 'buy'; assert(isequal(your_fcn_name(theoric,quoted),y_correct))

theoric = 50 quoted = 45

3   Pass
theoric=65 quoted=64 y_correct = 'buy'; assert(isequal(your_fcn_name(theoric,quoted),y_correct))

theoric = 65 quoted = 64

4   Pass
theoric=32 quoted=44 y_correct = 'short'; assert(isequal(your_fcn_name(theoric,quoted),y_correct))

theoric = 32 quoted = 44