Cody

Problem 42821. Polygon division

Solution 882076

Submitted on 26 Apr 2016 by Binbin Qi
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
n = 3; w_correct = 1; assert(isequal(polydiv(n),w_correct))

2   Pass
n = 4; w_correct = 2; assert(isequal(polydiv(n),w_correct))

3   Pass
n = 5; w_correct = 5; assert(isequal(polydiv(n),w_correct))

4   Pass
n = 8; w_correct = 132; assert(isequal(polydiv(n),w_correct))

5   Pass
n = 11; w_correct = 4862; assert(isequal(polydiv(n),w_correct))

6   Pass
n = 15; w_correct = 742900; assert(isequal(polydiv(n),w_correct))