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

Example:

    8819 -> 5

Tags

Problem Group

54 solvers submitted 114 solutions (2.11 solutions/solver).

Problem Comments

Solution Comments