Cody

# Problem 322. Number of Circles in a Number

Solution 1761961

Submitted on 26 Mar 2019 by Abdelfatah Teamah
• Size: 7
• This is the leading solution.
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))

[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.] [> In unix (line 32) In ncircles (line 2) In ScoringEngineTestPoint1 (line 1) In solutionTest (line 3)]

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

[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.] [> In unix (line 32) In ncircles (line 2) In ScoringEngineTestPoint2 (line 1) In solutionTest (line 5)]

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

[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.] [> In unix (line 32) In ncircles (line 2) In ScoringEngineTestPoint3 (line 1) In solutionTest (line 7)]

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

[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.] [> In unix (line 32) In ncircles (line 2) In ScoringEngineTestPoint4 (line 1) In solutionTest (line 9)]

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

[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.] [> In unix (line 32) In ncircles (line 2) In ScoringEngineTestPoint5 (line 1) In solutionTest (line 11)]

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

[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.] [> In unix (line 32) In ncircles (line 2) In ScoringEngineTestPoint6 (line 1) In solutionTest (line 13)]

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

[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.] [> In unix (line 32) In ncircles (line 2) In ScoringEngineTestPoint7 (line 1) In solutionTest (line 15)]

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

[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.] [> In unix (line 32) In ncircles (line 2) In ScoringEngineTestPoint8 (line 1) In solutionTest (line 17)]

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

[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.] [> In unix (line 32) In ncircles (line 2) In ScoringEngineTestPoint9 (line 1) In solutionTest (line 19)]

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

[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.] [> In unix (line 32) In ncircles (line 2) In ScoringEngineTestPoint10 (line 1) In solutionTest (line 21)]

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

[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.] [> In unix (line 32) In ncircles (line 2) In ScoringEngineTestPoint11 (line 1) In solutionTest (line 23)]

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

[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.] [> In unix (line 32) In ncircles (line 2) In ScoringEngineTestPoint12 (line 1) In solutionTest (line 25)]

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

[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.] [> In unix (line 32) In ncircles (line 2) In ScoringEngineTestPoint13 (line 1) In solutionTest (line 27)]

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

[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.] [> In unix (line 32) In ncircles (line 2) In ScoringEngineTestPoint14 (line 1) In solutionTest (line 29)]

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

[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.] [> In unix (line 32) In ncircles (line 2) In ScoringEngineTestPoint15 (line 1) In solutionTest (line 31)]

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

[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.] [> In unix (line 32) In ncircles (line 2) In ScoringEngineTestPoint16 (line 1) In solutionTest (line 33)]

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

[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.] [> In unix (line 32) In ncircles (line 2) In ScoringEngineTestPoint17 (line 1) In solutionTest (line 35)]

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

[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.] [> In unix (line 32) In ncircles (line 2) In ScoringEngineTestPoint18 (line 1) In solutionTest (line 37)]

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

[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.] [> In unix (line 32) In ncircles (line 2) In ScoringEngineTestPoint19 (line 1) In solutionTest (line 39)]

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

[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.] [> In unix (line 32) In ncircles (line 2) In ScoringEngineTestPoint20 (line 1) In solutionTest (line 41)]

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

[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.] [> In unix (line 32) In ncircles (line 2) In ScoringEngineTestPoint21 (line 1) In solutionTest (line 43)]

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

[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.] [> In unix (line 32) In ncircles (line 2) In ScoringEngineTestPoint22 (line 1) In solutionTest (line 45)]

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

[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.] [> In unix (line 32) In ncircles (line 2) In ScoringEngineTestPoint23 (line 1) In solutionTest (line 47)]

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

[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.] [> In unix (line 32) In ncircles (line 2) In ScoringEngineTestPoint24 (line 1) In solutionTest (line 49)]

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

[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.] [> In unix (line 32) In ncircles (line 2) In ScoringEngineTestPoint25 (line 1) In solutionTest (line 51)]

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

[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.] [> In unix (line 32) In ncircles (line 2) In ScoringEngineTestPoint26 (line 1) In solutionTest (line 53)]

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

[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.] [> In unix (line 32) In ncircles (line 2) In ScoringEngineTestPoint27 (line 1) In solutionTest (line 55)]

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

[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.] [> In unix (line 32) In ncircles (line 2) In ScoringEngineTestPoint28 (line 1) In solutionTest (line 57)]

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

[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.] [> In unix (line 32) In ncircles (line 2) In ScoringEngineTestPoint29 (line 1) In solutionTest (line 59)]

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

[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.] [> In unix (line 32) In ncircles (line 2) In ScoringEngineTestPoint30 (line 1) In solutionTest (line 61)]

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

[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.] [> In unix (line 32) In ncircles (line 2) In ScoringEngineTestPoint31 (line 1) In solutionTest (line 63)]

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

[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.] [> In unix (line 32) In ncircles (line 2) In ScoringEngineTestPoint32 (line 1) In solutionTest (line 65)]

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

[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.] [> In unix (line 32) In ncircles (line 2) In ScoringEngineTestPoint33 (line 1) In solutionTest (line 67)]

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

[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.] [> In unix (line 32) In ncircles (line 2) In ScoringEngineTestPoint34 (line 1) In solutionTest (line 69)]

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

[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.] [> In unix (line 32) In ncircles (line 2) In ScoringEngineTestPoint35 (line 1) In solutionTest (line 71)]

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

[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.] [> In unix (line 32) In ncircles (line 2) In ScoringEngineTestPoint36 (line 1) In solutionTest (line 73)]

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

[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.] [> In unix (line 32) In ncircles (line 2) In ScoringEngineTestPoint37 (line 1) In solutionTest (line 75)]

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

[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.] [> In unix (line 32) In ncircles (line 2) In ScoringEngineTestPoint38 (line 1) In solutionTest (line 77)]

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

[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.] [> In unix (line 32) In ncircles (line 2) In ScoringEngineTestPoint39 (line 1) In solutionTest (line 79)]

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

[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.] [> In unix (line 32) In ncircles (line 2) In ScoringEngineTestPoint40 (line 1) In solutionTest (line 81)]

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

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

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

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

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

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

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

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

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

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