AlgoMaster Logo

Numbers At Most N Given Digit Set

digits=[3, 4, 5],n=345
0 / 13
algomaster.io
Step:Count positive integers ≤ 345 whose digits all come from {3, 4, 5} (repeats allowed).