FizzBuzz count
Java
Medium
5 views
Problem Description
Task: count how many numbers in 1..n would print FizzBuzz (div by 3 and 5).
Output Format
Return value
Constraints
n can be large.
Official Solution
static int fizzBuzzCount(int n){return n/15;}
Solutions (0)
No solutions submitted yet. Be the first!
No comments yet. Start the discussion!