Cody

Problem 322. Number of Circles in a Number

Solution 2825961

Submitted on 12 Aug 2020
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   Fail
assert(isequal(ncircles(50237),1))

y = 0 y = 0

Error using count First argument must be a string array, character vector, or cell array of character vectors. Error in ncircles (line 6) y = y + count(x,'9') Error in Test1 (line 1) assert(isequal(ncircles(50237),1))

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

y = 0 y = 0

Error using count First argument must be a string array, character vector, or cell array of character vectors. Error in ncircles (line 6) y = y + count(x,'9') Error in Test2 (line 1) assert(isequal(ncircles(56774),1))

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

y = 0 y = 0

Error using count First argument must be a string array, character vector, or cell array of character vectors. Error in ncircles (line 6) y = y + count(x,'9') Error in Test3 (line 1) assert(isequal(ncircles(18828),6))

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

y = 0 y = 0

Error using count First argument must be a string array, character vector, or cell array of character vectors. Error in ncircles (line 6) y = y + count(x,'9') Error in Test4 (line 1) assert(isequal(ncircles(32420),1))

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

y = 0 y = 0

Error using count First argument must be a string array, character vector, or cell array of character vectors. Error in ncircles (line 6) y = y + count(x,'9') Error in Test5 (line 1) assert(isequal(ncircles(71604),2))

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

y = 0 y = 0

Error using count First argument must be a string array, character vector, or cell array of character vectors. Error in ncircles (line 6) y = y + count(x,'9') Error in Test6 (line 1) assert(isequal(ncircles(55293),1))

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

y = 0 y = 0

Error using count First argument must be a string array, character vector, or cell array of character vectors. Error in ncircles (line 6) y = y + count(x,'9') Error in Test7 (line 1) assert(isequal(ncircles(14229),1))

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

y = 0 y = 0

Error using count First argument must be a string array, character vector, or cell array of character vectors. Error in ncircles (line 6) y = y + count(x,'9') Error in Test8 (line 1) assert(isequal(ncircles(38037),3))

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

y = 0 y = 0

Error using count First argument must be a string array, character vector, or cell array of character vectors. Error in ncircles (line 6) y = y + count(x,'9') Error in Test9 (line 1) assert(isequal(ncircles(39657),2))

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

y = 0 y = 0

Error using count First argument must be a string array, character vector, or cell array of character vectors. Error in ncircles (line 6) y = y + count(x,'9') Error in Test10 (line 1) assert(isequal(ncircles(57675),1))

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

y = 0 y = 0

Error using count First argument must be a string array, character vector, or cell array of character vectors. Error in ncircles (line 6) y = y + count(x,'9') Error in Test11 (line 1) assert(isequal(ncircles(1941),1))

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

y = 0 y = 0

Error using count First argument must be a string array, character vector, or cell array of character vectors. Error in ncircles (line 6) y = y + count(x,'9') Error in Test12 (line 1) assert(isequal(ncircles(57759),1))

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

y = 0 y = 0

Error using count First argument must be a string array, character vector, or cell array of character vectors. Error in ncircles (line 6) y = y + count(x,'9') Error in Test13 (line 1) assert(isequal(ncircles(93220),2))

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

y = 0 y = 0

Error using count First argument must be a string array, character vector, or cell array of character vectors. Error in ncircles (line 6) y = y + count(x,'9') Error in Test14 (line 1) assert(isequal(ncircles(10688),6))

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

y = 0 y = 0

Error using count First argument must be a string array, character vector, or cell array of character vectors. Error in ncircles (line 6) y = y + count(x,'9') Error in Test15 (line 1) assert(isequal(ncircles(73215),0))

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

y = 0 y = 0

Error using count First argument must be a string array, character vector, or cell array of character vectors. Error in ncircles (line 6) y = y + count(x,'9') Error in Test16 (line 1) assert(isequal(ncircles(97053),2))

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

y = 0 y = 0

Error using count First argument must be a string array, character vector, or cell array of character vectors. Error in ncircles (line 6) y = y + count(x,'9') Error in Test17 (line 1) assert(isequal(ncircles(60889),7))

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

y = 0 y = 0

Error using count First argument must be a string array, character vector, or cell array of character vectors. Error in ncircles (line 6) y = y + count(x,'9') Error in Test18 (line 1) assert(isequal(ncircles(71967),2))

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

y = 0 y = 0

Error using count First argument must be a string array, character vector, or cell array of character vectors. Error in ncircles (line 6) y = y + count(x,'9') Error in Test19 (line 1) assert(isequal(ncircles(30276),2))

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

y = 0 y = 0

Error using count First argument must be a string array, character vector, or cell array of character vectors. Error in ncircles (line 6) y = y + count(x,'9') Error in Test20 (line 1) assert(isequal(ncircles(45903),2))

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

y = 0 y = 0

Error using count First argument must be a string array, character vector, or cell array of character vectors. Error in ncircles (line 6) y = y + count(x,'9') Error in Test21 (line 1) assert(isequal(ncircles(4803),3))

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

y = 0 y = 0

Error using count First argument must be a string array, character vector, or cell array of character vectors. Error in ncircles (line 6) y = y + count(x,'9') Error in Test22 (line 1) assert(isequal(ncircles(38536),3))

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

y = 0 y = 0

Error using count First argument must be a string array, character vector, or cell array of character vectors. Error in ncircles (line 6) y = y + count(x,'9') Error in Test23 (line 1) assert(isequal(ncircles(36172),1))

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

y = 0 y = 0

Error using count First argument must be a string array, character vector, or cell array of character vectors. Error in ncircles (line 6) y = y + count(x,'9') Error in Test24 (line 1) assert(isequal(ncircles(28759),3))

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

y = 0 y = 0

Error using count First argument must be a string array, character vector, or cell array of character vectors. Error in ncircles (line 6) y = y + count(x,'9') Error in Test25 (line 1) assert(isequal(ncircles(81672),3))

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

y = 0 y = 0

Error using count First argument must be a string array, character vector, or cell array of character vectors. Error in ncircles (line 6) y = y + count(x,'9') Error in Test26 (line 1) assert(isequal(ncircles(45053),1))

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

y = 0 y = 0

Error using count First argument must be a string array, character vector, or cell array of character vectors. Error in ncircles (line 6) y = y + count(x,'9') Error in Test27 (line 1) assert(isequal(ncircles(80664),5))

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

y = 0 y = 0

Error using count First argument must be a string array, character vector, or cell array of character vectors. Error in ncircles (line 6) y = y + count(x,'9') Error in Test28 (line 1) assert(isequal(ncircles(79018),4))

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

y = 0 y = 0

Error using count First argument must be a string array, character vector, or cell array of character vectors. Error in ncircles (line 6) y = y + count(x,'9') Error in Test29 (line 1) assert(isequal(ncircles(28296),4))

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

y = 0 y = 0

Error using count First argument must be a string array, character vector, or cell array of character vectors. Error in ncircles (line 6) y = y + count(x,'9') Error in Test30 (line 1) assert(isequal(ncircles(6831),3))

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

y = 0 y = 0

Error using count First argument must be a string array, character vector, or cell array of character vectors. Error in ncircles (line 6) y = y + count(x,'9') Error in Test31 (line 1) assert(isequal(ncircles(5494),1))

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

y = 0 y = 0

Error using count First argument must be a string array, character vector, or cell array of character vectors. Error in ncircles (line 6) y = y + count(x,'9') Error in Test32 (line 1) assert(isequal(ncircles(63753),1))

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

y = 0 y = 0

Error using count First argument must be a string array, character vector, or cell array of character vectors. Error in ncircles (line 6) y = y + count(x,'9') Error in Test33 (line 1) assert(isequal(ncircles(42429),1))

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

y = 0 y = 0

Error using count First argument must be a string array, character vector, or cell array of character vectors. Error in ncircles (line 6) y = y + count(x,'9') Error in Test34 (line 1) assert(isequal(ncircles(90554),2))

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

y = 0 y = 0

Error using count First argument must be a string array, character vector, or cell array of character vectors. Error in ncircles (line 6) y = y + count(x,'9') Error in Test35 (line 1) assert(isequal(ncircles(41733),0))

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

y = 0 y = 0

Error using count First argument must be a string array, character vector, or cell array of character vectors. Error in ncircles (line 6) y = y + count(x,'9') Error in Test36 (line 1) assert(isequal(ncircles(15406),2))

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

y = 0 y = 0

Error using count First argument must be a string array, character vector, or cell array of character vectors. Error in ncircles (line 6) y = y + count(x,'9') Error in Test37 (line 1) assert(isequal(ncircles(54000),3))

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

y = 0 y = 0

Error using count First argument must be a string array, character vector, or cell array of character vectors. Error in ncircles (line 6) y = y + count(x,'9') Error in Test38 (line 1) assert(isequal(ncircles(93710),2))

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

y = 0 y = 0

Error using count First argument must be a string array, character vector, or cell array of character vectors. Error in ncircles (line 6) y = y + count(x,'9') Error in Test39 (line 1) assert(isequal(ncircles(66096),5))

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

y = 0 y = 0

Error using count First argument must be a string array, character vector, or cell array of character vectors. Error in ncircles (line 6) y = y + count(x,'9') Error in Test40 (line 1) assert(isequal(ncircles(39466),3))

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

y = 0 y = 0

Error using count First argument must be a string array, character vector, or cell array of character vectors. Error in ncircles (line 6) y = y + count(x,'9') Error in Test41 (line 1) assert(isequal(ncircles(25900),3))

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

y = 0 y = 0

Error using count First argument must be a string array, character vector, or cell array of character vectors. Error in ncircles (line 6) y = y + count(x,'9') Error in Test42 (line 1) assert(isequal(ncircles(84792),3))

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

y = 0 y = 0

Error using count First argument must be a string array, character vector, or cell array of character vectors. Error in ncircles (line 6) y = y + count(x,'9') Error in Test43 (line 1) assert(isequal(ncircles(94506),3))

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

y = 0 y = 0

Error using count First argument must be a string array, character vector, or cell array of character vectors. Error in ncircles (line 6) y = y + count(x,'9') Error in Test44 (line 1) assert(isequal(ncircles(37700),2))

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

y = 0 y = 0

Error using count First argument must be a string array, character vector, or cell array of character vectors. Error in ncircles (line 6) y = y + count(x,'9') Error in Test45 (line 1) assert(isequal(ncircles(6729),2))

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

y = 0 y = 0

Error using count First argument must be a string array, character vector, or cell array of character vectors. Error in ncircles (line 6) y = y + count(x,'9') Error in Test46 (line 1) assert(isequal(ncircles(18159),3))

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

y = 0 y = 0

Error using count First argument must be a string array, character vector, or cell array of character vectors. Error in ncircles (line 6) y = y + count(x,'9') Error in Test47 (line 1) assert(isequal(ncircles(57575),0))

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

y = 0 y = 0

Error using count First argument must be a string array, character vector, or cell array of character vectors. Error in ncircles (line 6) y = y + count(x,'9') Error in Test48 (line 1) assert(isequal(ncircles(18589),5))

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

y = 0 y = 0

Error using count First argument must be a string array, character vector, or cell array of character vectors. Error in ncircles (line 6) y = y + count(x,'9') Error in Test49 (line 1) assert(isequal(ncircles(29145),1))

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

y = 0 y = 0

Error using count First argument must be a string array, character vector, or cell array of character vectors. Error in ncircles (line 6) y = y + count(x,'9') Error in Test50 (line 1) assert(isequal(ncircles(46167),2))

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!