Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi test

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

MATLAB Academy

New to MATLAB?

Learn MATLAB today!

Problem 322. Number of Circles in a Number

Created by @bmtran

Given a number, return the number of closed 'circles' in the base 10 numerical representation.

Note: the number 4 has no circles


    8819 -> 5


Problem Group

Solution Statistics

162 correct solutions 71 incorrect solutions
Last solution submitted on Jul 12, 2016

Problem Comments

Solution Comments