Cody

Solution 1292118

Submitted on 17 Oct 2017 by David Verrelli
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
len = 1; wid = 1; d_correct = 0.71; assert(isequal(birthdaycandles(len,wid),d_correct))

ans = 0.7100

2   Pass
len = 4; wid = 3; d_correct = 2.5; assert(isequal(birthdaycandles(len,wid),d_correct))

ans = 2.5000

3   Pass
len = 3; wid = 8; d_correct = 3.61; assert(isequal(birthdaycandles(len,wid),d_correct))

ans = 3.6100

4   Pass
len = 16; wid = 32; d_correct = 16.56; assert(isequal(birthdaycandles(len,wid),d_correct))

ans = 16.5600

5   Pass
len = 64; wid = 1; d_correct = 16.03; assert(isequal(birthdaycandles(len,wid),d_correct))

ans = 16.0300

6   Pass
len = 36; wid = 36; d_correct = 25.46; assert(isequal(birthdaycandles(len,wid),d_correct))

ans = 25.4600

7   Pass
len = 48; wid = 24; d_correct = 24.85; assert(isequal(birthdaycandles(len,wid),d_correct))

ans = 24.8500

8   Pass
len = 100.25; wid = 100.25; d_correct = 70.89; assert(isequal(birthdaycandles(len,wid),d_correct))

ans = 70.8900