Cody

Problem 322. Number of Circles in a Number

Solution 3760168

Submitted on 21 Nov 2020 by Alisio
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(ncircles(50237),1))

num = 0 1 2 3 4 5 6 7 8 9

2   Pass
assert(isequal(ncircles(56774),1))

num = 0 1 2 3 4 5 6 7 8 9

3   Pass
assert(isequal(ncircles(18828),6))

num = 0 1 2 3 4 5 6 7 8 9

4   Pass
assert(isequal(ncircles(32420),1))

num = 0 1 2 3 4 5 6 7 8 9

5   Pass
assert(isequal(ncircles(71604),2))

num = 0 1 2 3 4 5 6 7 8 9

6   Pass
assert(isequal(ncircles(55293),1))

num = 0 1 2 3 4 5 6 7 8 9

7   Pass
assert(isequal(ncircles(14229),1))

num = 0 1 2 3 4 5 6 7 8 9

8   Pass
assert(isequal(ncircles(38037),3))

num = 0 1 2 3 4 5 6 7 8 9

9   Pass
assert(isequal(ncircles(39657),2))

num = 0 1 2 3 4 5 6 7 8 9

10   Pass
assert(isequal(ncircles(57675),1))

num = 0 1 2 3 4 5 6 7 8 9

11   Pass
assert(isequal(ncircles(1941),1))

num = 0 1 2 3 4 5 6 7 8 9

12   Pass
assert(isequal(ncircles(57759),1))

num = 0 1 2 3 4 5 6 7 8 9

13   Pass
assert(isequal(ncircles(93220),2))

num = 0 1 2 3 4 5 6 7 8 9

14   Pass
assert(isequal(ncircles(10688),6))

num = 0 1 2 3 4 5 6 7 8 9

15   Pass
assert(isequal(ncircles(73215),0))

num = 0 1 2 3 4 5 6 7 8 9

16   Pass
assert(isequal(ncircles(97053),2))

num = 0 1 2 3 4 5 6 7 8 9

17   Pass
assert(isequal(ncircles(60889),7))

num = 0 1 2 3 4 5 6 7 8 9

18   Pass
assert(isequal(ncircles(71967),2))

num = 0 1 2 3 4 5 6 7 8 9

19   Pass
assert(isequal(ncircles(30276),2))

num = 0 1 2 3 4 5 6 7 8 9

20   Pass
assert(isequal(ncircles(45903),2))

num = 0 1 2 3 4 5 6 7 8 9

21   Pass
assert(isequal(ncircles(4803),3))

num = 0 1 2 3 4 5 6 7 8 9

22   Pass
assert(isequal(ncircles(38536),3))

num = 0 1 2 3 4 5 6 7 8 9

23   Pass
assert(isequal(ncircles(36172),1))

num = 0 1 2 3 4 5 6 7 8 9

24   Pass
assert(isequal(ncircles(28759),3))

num = 0 1 2 3 4 5 6 7 8 9

25   Pass
assert(isequal(ncircles(81672),3))

num = 0 1 2 3 4 5 6 7 8 9

26   Pass
assert(isequal(ncircles(45053),1))

num = 0 1 2 3 4 5 6 7 8 9

27   Pass
assert(isequal(ncircles(80664),5))

num = 0 1 2 3 4 5 6 7 8 9

28   Pass
assert(isequal(ncircles(79018),4))

num = 0 1 2 3 4 5 6 7 8 9

29   Pass
assert(isequal(ncircles(28296),4))

num = 0 1 2 3 4 5 6 7 8 9

30   Pass
assert(isequal(ncircles(6831),3))

num = 0 1 2 3 4 5 6 7 8 9

31   Pass
assert(isequal(ncircles(5494),1))

num = 0 1 2 3 4 5 6 7 8 9

32   Pass
assert(isequal(ncircles(63753),1))

num = 0 1 2 3 4 5 6 7 8 9

33   Pass
assert(isequal(ncircles(42429),1))

num = 0 1 2 3 4 5 6 7 8 9

34   Pass
assert(isequal(ncircles(90554),2))

num = 0 1 2 3 4 5 6 7 8 9

35   Pass
assert(isequal(ncircles(41733),0))

num = 0 1 2 3 4 5 6 7 8 9

36   Pass
assert(isequal(ncircles(15406),2))

num = 0 1 2 3 4 5 6 7 8 9

37   Pass
assert(isequal(ncircles(54000),3))

num = 0 1 2 3 4 5 6 7 8 9

38   Pass
assert(isequal(ncircles(93710),2))

num = 0 1 2 3 4 5 6 7 8 9

39   Pass
assert(isequal(ncircles(66096),5))

num = 0 1 2 3 4 5 6 7 8 9

40   Pass
assert(isequal(ncircles(39466),3))

num = 0 1 2 3 4 5 6 7 8 9

41   Pass
assert(isequal(ncircles(25900),3))

num = 0 1 2 3 4 5 6 7 8 9

42   Pass
assert(isequal(ncircles(84792),3))

num = 0 1 2 3 4 5 6 7 8 9

43   Pass
assert(isequal(ncircles(94506),3))

num = 0 1 2 3 4 5 6 7 8 9

44   Pass
assert(isequal(ncircles(37700),2))

num = 0 1 2 3 4 5 6 7 8 9

45   Pass
assert(isequal(ncircles(6729),2))

num = 0 1 2 3 4 5 6 7 8 9

46   Pass
assert(isequal(ncircles(18159),3))

num = 0 1 2 3 4 5 6 7 8 9

47   Pass
assert(isequal(ncircles(57575),0))

num = 0 1 2 3 4 5 6 7 8 9

48   Pass
assert(isequal(ncircles(18589),5))

num = 0 1 2 3 4 5 6 7 8 9

49   Pass
assert(isequal(ncircles(29145),1))

num = 0 1 2 3 4 5 6 7 8 9

50   Pass
assert(isequal(ncircles(46167),2))

num = 0 1 2 3 4 5 6 7 8 9

Suggested Problems

More from this Author56

Community Treasure Hunt

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

Start Hunting!