Cody

Problem 44717. Five Fingers

Solution 2155823

Submitted on 10 Mar 2020 by Ron Sofer
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
assert(isequal(Fingers(1),1))

2   Pass
assert(isequal(Fingers(2),2))

3   Pass
assert(isequal(Fingers(3),3))

4   Pass
assert(isequal(Fingers(4),4))

5   Pass
assert(isequal(Fingers(5),5))

6   Pass
assert(isequal(Fingers(10),2))

7   Pass
assert(isequal(Fingers(22),4))

8   Pass
assert(isequal(Fingers(29),5))

9   Pass
assert(isequal(Fingers(65),1))

10   Pass
assert(isequal(Fingers(72),2))

11   Pass
assert(isequal(Fingers(123),3))

12   Pass
assert(isequal(Fingers(100),4))

13   Pass
assert(isequal(Fingers(325),5))

14   Pass
assert(isequal(Fingers(500),4))

15   Pass
assert(isequal(Fingers(555),3))

16   Pass
assert(isequal(Fingers(1000),2))

17   Pass
assert(isequal(Fingers(777),1))

Suggested Problems

More from this Author18

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!