Puzzle Spree

Puzzle Spree

Numbers Without Zero

Count numbers that don’t contain the digit 0

Kuai Yu's avatar
Kuai Yu
Jan 31, 2025
∙ Paid

Problem Statement

Given two positive integers, x and y, count how many numbers in the inclusive range [x, y] do not contain the digit 0.

Keep reading with a 7-day free trial

Subscribe to Puzzle Spree to keep reading this post and get 7 days of free access to the full post archives.

Already a paid subscriber? Sign in
© 2025 Puzzle Spree · Privacy ∙ Terms ∙ Collection notice
Start your SubstackGet the app
Substack is the home for great culture