Cody

Solution 1576030

Submitted on 5 Jul 2018 by Srishti Saha
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))

dig = 0 1 2 3 4 5 6 7 8 9 zer = 1 0 0 0 0 0 1 0 2 1 x_lett = '50237' arr = [] arr = 0 arr = 0 1 arr = 0 1 0 arr = 0 1 0 0 arr = 0 1 0 0 0 y = 1

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

dig = 0 1 2 3 4 5 6 7 8 9 zer = 1 0 0 0 0 0 1 0 2 1 x_lett = '56774' arr = [] arr = 0 arr = 0 1 arr = 0 1 0 arr = 0 1 0 0 arr = 0 1 0 0 0 y = 1

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

dig = 0 1 2 3 4 5 6 7 8 9 zer = 1 0 0 0 0 0 1 0 2 1 x_lett = '18828' arr = [] arr = 0 arr = 0 2 arr = 0 2 2 arr = 0 2 2 0 arr = 0 2 2 0 2 y = 6

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

dig = 0 1 2 3 4 5 6 7 8 9 zer = 1 0 0 0 0 0 1 0 2 1 x_lett = '32420' arr = [] arr = 0 arr = 0 0 arr = 0 0 0 arr = 0 0 0 0 arr = 0 0 0 0 1 y = 1

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

dig = 0 1 2 3 4 5 6 7 8 9 zer = 1 0 0 0 0 0 1 0 2 1 x_lett = '71604' arr = [] arr = 0 arr = 0 0 arr = 0 0 1 arr = 0 0 1 1 arr = 0 0 1 1 0 y = 2

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

dig = 0 1 2 3 4 5 6 7 8 9 zer = 1 0 0 0 0 0 1 0 2 1 x_lett = '55293' arr = [] arr = 0 arr = 0 0 arr = 0 0 0 arr = 0 0 0 1 arr = 0 0 0 1 0 y = 1

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

dig = 0 1 2 3 4 5 6 7 8 9 zer = 1 0 0 0 0 0 1 0 2 1 x_lett = '14229' arr = [] arr = 0 arr = 0 0 arr = 0 0 0 arr = 0 0 0 0 arr = 0 0 0 0 1 y = 1

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

dig = 0 1 2 3 4 5 6 7 8 9 zer = 1 0 0 0 0 0 1 0 2 1 x_lett = '38037' arr = [] arr = 0 arr = 0 2 arr = 0 2 1 arr = 0 2 1 0 arr = 0 2 1 0 0 y = 3

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

dig = 0 1 2 3 4 5 6 7 8 9 zer = 1 0 0 0 0 0 1 0 2 1 x_lett = '39657' arr = [] arr = 0 arr = 0 1 arr = 0 1 1 arr = 0 1 1 0 arr = 0 1 1 0 0 y = 2

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

dig = 0 1 2 3 4 5 6 7 8 9 zer = 1 0 0 0 0 0 1 0 2 1 x_lett = '57675' arr = [] arr = 0 arr = 0 0 arr = 0 0 1 arr = 0 0 1 0 arr = 0 0 1 0 0 y = 1

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

dig = 0 1 2 3 4 5 6 7 8 9 zer = 1 0 0 0 0 0 1 0 2 1 x_lett = '1941' arr = [] arr = 0 arr = 0 1 arr = 0 1 0 arr = 0 1 0 0 y = 1

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

dig = 0 1 2 3 4 5 6 7 8 9 zer = 1 0 0 0 0 0 1 0 2 1 x_lett = '57759' arr = [] arr = 0 arr = 0 0 arr = 0 0 0 arr = 0 0 0 0 arr = 0 0 0 0 1 y = 1

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

dig = 0 1 2 3 4 5 6 7 8 9 zer = 1 0 0 0 0 0 1 0 2 1 x_lett = '93220' arr = [] arr = 1 arr = 1 0 arr = 1 0 0 arr = 1 0 0 0 arr = 1 0 0 0 1 y = 2

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

dig = 0 1 2 3 4 5 6 7 8 9 zer = 1 0 0 0 0 0 1 0 2 1 x_lett = '10688' arr = [] arr = 0 arr = 0 1 arr = 0 1 1 arr = 0 1 1 2 arr = 0 1 1 2 2 y = 6

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

dig = 0 1 2 3 4 5 6 7 8 9 zer = 1 0 0 0 0 0 1 0 2 1 x_lett = '73215' arr = [] arr = 0 arr = 0 0 arr = 0 0 0 arr = 0 0 0 0 arr = 0 0 0 0 0 y = 0

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

dig = 0 1 2 3 4 5 6 7 8 9 zer = 1 0 0 0 0 0 1 0 2 1 x_lett = '97053' arr = [] arr = 1 arr = 1 0 arr = 1 0 1 arr = 1 0 1 0 arr = 1 0 1 0 0 y = 2

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

dig = 0 1 2 3 4 5 6 7 8 9 zer = 1 0 0 0 0 0 1 0 2 1 x_lett = '60889' arr = [] arr = 1 arr = 1 1 arr = 1 1 2 arr = 1 1 2 2 arr = 1 1 2 2 1 y = 7

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

dig = 0 1 2 3 4 5 6 7 8 9 zer = 1 0 0 0 0 0 1 0 2 1 x_lett = '71967' arr = [] arr = 0 arr = 0 0 arr = 0 0 1 arr = 0 0 1 1 arr = 0 0 1 1 0 y = 2

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

dig = 0 1 2 3 4 5 6 7 8 9 zer = 1 0 0 0 0 0 1 0 2 1 x_lett = '30276' arr = [] arr = 0 arr = 0 1 arr = 0 1 0 arr = 0 1 0 0 arr = 0 1 0 0 1 y = 2

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

dig = 0 1 2 3 4 5 6 7 8 9 zer = 1 0 0 0 0 0 1 0 2 1 x_lett = '45903' arr = [] arr = 0 arr = 0 0 arr = 0 0 1 arr = 0 0 1 1 arr = 0 0 1 1 0 y = 2

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

dig = 0 1 2 3 4 5 6 7 8 9 zer = 1 0 0 0 0 0 1 0 2 1 x_lett = '4803' arr = [] arr = 0 arr = 0 2 arr = 0 2 1 arr = 0 2 1 0 y = 3

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

dig = 0 1 2 3 4 5 6 7 8 9 zer = 1 0 0 0 0 0 1 0 2 1 x_lett = '38536' arr = [] arr = 0 arr = 0 2 arr = 0 2 0 arr = 0 2 0 0 arr = 0 2 0 0 1 y = 3

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

dig = 0 1 2 3 4 5 6 7 8 9 zer = 1 0 0 0 0 0 1 0 2 1 x_lett = '36172' arr = [] arr = 0 arr = 0 1 arr = 0 1 0 arr = 0 1 0 0 arr = 0 1 0 0 0 y = 1

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

dig = 0 1 2 3 4 5 6 7 8 9 zer = 1 0 0 0 0 0 1 0 2 1 x_lett = '28759' arr = [] arr = 0 arr = 0 2 arr = 0 2 0 arr = 0 2 0 0 arr = 0 2 0 0 1 y = 3

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

dig = 0 1 2 3 4 5 6 7 8 9 zer = 1 0 0 0 0 0 1 0 2 1 x_lett = '81672' arr = [] arr = 2 arr = 2 0 arr = 2 0 1 arr = 2 0 1 0 arr = 2 0 1 0 0 y = 3

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

dig = 0 1 2 3 4 5 6 7 8 9 zer = 1 0 0 0 0 0 1 0 2 1 x_lett = '45053' arr = [] arr = 0 arr = 0 0 arr = 0 0 1 arr = 0 0 1 0 arr = 0 0 1 0 0 y = 1

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

dig = 0 1 2 3 4 5 6 7 8 9 zer = 1 0 0 0 0 0 1 0 2 1 x_lett = '80664' arr = [] arr = 2 arr = 2 1 arr = 2 1 1 arr = 2 1 1 1 arr = 2 1 1 1 0 y = 5

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

dig = 0 1 2 3 4 5 6 7 8 9 zer = 1 0 0 0 0 0 1 0 2 1 x_lett = '79018' arr = [] arr = 0 arr = 0 1 arr = 0 1 1 arr = 0 1 1 0 arr = 0 1 1 0 2 y = 4

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

dig = 0 1 2 3 4 5 6 7 8 9 zer = 1 0 0 0 0 0 1 0 2 1 x_lett = '28296' arr = [] arr = 0 arr = 0 2 arr = 0 2 0 arr = 0 2 0 1 arr = 0 2 0 1 1 y = 4

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

dig = 0 1 2 3 4 5 6 7 8 9 zer = 1 0 0 0 0 0 1 0 2 1 x_lett = '6831' arr = [] arr = 1 arr = 1 2 arr = 1 2 0 arr = 1 2 0 0 y = 3

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

dig = 0 1 2 3 4 5 6 7 8 9 zer = 1 0 0 0 0 0 1 0 2 1 x_lett = '5494' arr = [] arr = 0 arr = 0 0 arr = 0 0 1 arr = 0 0 1 0 y = 1

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

dig = 0 1 2 3 4 5 6 7 8 9 zer = 1 0 0 0 0 0 1 0 2 1 x_lett = '63753' arr = [] arr = 1 arr = 1 0 arr = 1 0 0 arr = 1 0 0 0 arr = 1 0 0 0 0 y = 1

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

dig = 0 1 2 3 4 5 6 7 8 9 zer = 1 0 0 0 0 0 1 0 2 1 x_lett = '42429' arr = [] arr = 0 arr = 0 0 arr = 0 0 0 arr = 0 0 0 0 arr = 0 0 0 0 1 y = 1

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

dig = 0 1 2 3 4 5 6 7 8 9 zer = 1 0 0 0 0 0 1 0 2 1 x_lett = '90554' arr = [] arr = 1 arr = 1 1 arr = 1 1 0 arr = 1 1 0 0 arr = 1 1 0 0 0 y = 2

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

dig = 0 1 2 3 4 5 6 7 8 9 zer = 1 0 0 0 0 0 1 0 2 1 x_lett = '41733' arr = [] arr = 0 arr = 0 0 arr = 0 0 0 arr = 0 0 0 0 arr = 0 0 0 0 0 y = 0

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

dig = 0 1 2 3 4 5 6 7 8 9 zer = 1 0 0 0 0 0 1 0 2 1 x_lett = '15406' arr = [] arr = 0 arr = 0 0 arr = 0 0 0 arr = 0 0 0 1 arr = 0 0 0 1 1 y = 2

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

dig = 0 1 2 3 4 5 6 7 8 9 zer = 1 0 0 0 0 0 1 0 2 1 x_lett = '54000' arr = [] arr = 0 arr = 0 0 arr = 0 0 1 arr = 0 0 1 1 arr = 0 0 1 1 1 y = 3

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

dig = 0 1 2 3 4 5 6 7 8 9 zer = 1 0 0 0 0 0 1 0 2 1 x_lett = '93710' arr = [] arr = 1 arr = 1 0 arr = 1 0 0 arr = 1 0 0 0 arr = 1 0 0 0 1 y = 2

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

dig = 0 1 2 3 4 5 6 7 8 9 zer = 1 0 0 0 0 0 1 0 2 1 x_lett = '66096' arr = [] arr = 1 arr = 1 1 arr = 1 1 1 arr = 1 1 1 1 arr = 1 1 1 1 1 y = 5

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

dig = 0 1 2 3 4 5 6 7 8 9 zer = 1 0 0 0 0 0 1 0 2 1 x_lett = '39466' arr = [] arr = 0 arr = 0 1 arr = 0 1 0 arr = 0 1 0 1 arr = 0 1 0 1 1 y = 3

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

dig = 0 1 2 3 4 5 6 7 8 9 zer = 1 0 0 0 0 0 1 0 2 1 x_lett = '25900' arr = [] arr = 0 arr = 0 0 arr = 0 0 1 arr = 0 0 1 1 arr = 0 0 1 1 1 y = 3

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

dig = 0 1 2 3 4 5 6 7 8 9 zer = 1 0 0 0 0 0 1 0 2 1 x_lett = '84792' arr = [] arr = 2 arr = 2 0 arr = 2 0 0 arr = 2 0 0 1 arr = 2 0 0 1 0 y = 3

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

dig = 0 1 2 3 4 5 6 7 8 9 zer = 1 0 0 0 0 0 1 0 2 1 x_lett = '94506' arr = [] arr = 1 arr = 1 0 arr = 1 0 0 arr = 1 0 0 1 arr = 1 0 0 1 1 y = 3

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

dig = 0 1 2 3 4 5 6 7 8 9 zer = 1 0 0 0 0 0 1 0 2 1 x_lett = '37700' arr = [] arr = 0 arr = 0 0 arr = 0 0 0 arr = 0 0 0 1 arr = 0 0 0 1 1 y = 2

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

dig = 0 1 2 3 4 5 6 7 8 9 zer = 1 0 0 0 0 0 1 0 2 1 x_lett = '6729' arr = [] arr = 1 arr = 1 0 arr = 1 0 0 arr = 1 0 0 1 y = 2

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

dig = 0 1 2 3 4 5 6 7 8 9 zer = 1 0 0 0 0 0 1 0 2 1 x_lett = '18159' arr = [] arr = 0 arr = 0 2 arr = 0 2 0 arr = 0 2 0 0 arr = 0 2 0 0 1 y = 3

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

dig = 0 1 2 3 4 5 6 7 8 9 zer = 1 0 0 0 0 0 1 0 2 1 x_lett = '57575' arr = [] arr = 0 arr = 0 0 arr = 0 0 0 arr = 0 0 0 0 arr = 0 0 0 0 0 y = 0

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

dig = 0 1 2 3 4 5 6 7 8 9 zer = 1 0 0 0 0 0 1 0 2 1 x_lett = '18589' arr = [] arr = 0 arr = 0 2 arr = 0 2 0 arr = 0 2 0 2 arr = 0 2 0 2 1 y = 5

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

dig = 0 1 2 3 4 5 6 7 8 9 zer = 1 0 0 0 0 0 1 0 2 1 x_lett = '29145' arr = [] arr = 0 arr = 0 1 arr = 0 1 0 arr = 0 1 0 0 arr = 0 1 0 0 0 y = 1

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

dig = 0 1 2 3 4 5 6 7 8 9 zer = 1 0 0 0 0 0 1 0 2 1 x_lett = '46167' arr = [] arr = 0 arr = 0 1 arr = 0 1 0 arr = 0 1 0 1 arr = 0 1 0 1 0 y = 2

Suggested Problems

More from this Author56