Tap here to switch tabs
Problem
Submissions

Problem: Count the Digits That Divide a Number

med
30 min
Try to solve the Count the Digits That Divide a Number problem.

Statement

Given an integer num, return the number of digits in num that divide num.

An integer valval divides num if the remainder of num divided by valval is equal to 00.

Constraints:

  • 1≤1 \leq num ≤109\leq 10^9

  • num does not contain 00 as one of its digits.

⋮
Tap here to switch tabs
Problem
Submissions

Problem: Count the Digits That Divide a Number

med
30 min
Try to solve the Count the Digits That Divide a Number problem.

Statement

Given an integer num, return the number of digits in num that divide num.

An integer valval divides num if the remainder of num divided by valval is equal to 00.

Constraints:

  • 1≤1 \leq num ≤109\leq 10^9

  • num does not contain 00 as one of its digits.