Cody

Solution 2078774

Submitted on 4 Jan 2020 by Asif Newaz
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

Test Suite

Test Status Code Input and Output
1   Pass
x = 'This is a very good Day !' y_correct = 0.636363636363636 assert( abs(vcratio(x) - y_correct) < 1e-14 )

x = 'This is a very good Day !' y_correct = 0.6364 a = 3 6 9 12 17 18 22 b = 1 2 4 7 11 13 14 16 19 21 23 y = 0.6364

2   Pass
x = 'Is Y0UR code sti1l hO1ding up 0k?' y_correct = 0.571428571428571 assert( abs(vcratio(x) - y_correct) < 1e-14 )

x = 'Is Y0UR code sti1l hO1ding up 0k?' y_correct = 0.5714 a = 1 6 10 12 16 21 24 28 b = 2 4 7 9 11 14 15 18 20 23 25 26 29 32 y = 0.5714

Suggested Problems

More from this Author1