Cody

Solution 801282

Submitted on 5 Jan 2016 by Michael Cappello
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
%% x = 128205; n = 4 y_correct = true; assert(isequal(parasitic(x,n),y_correct))

n = 4 x1 = 128205 x2 = 512820 y = 1

2   Pass
%% x = 179487; n = 4; y_correct = true; assert(isequal(parasitic(x,n),y_correct))

x1 = 179487 x2 = 717948 y = 1

3   Pass
%% x = 179487; n = 3; y_correct = false; assert(isequal(parasitic(x,n),y_correct))

x1 = 179487 x2 = 538461 y = 0