// java public int NumberOf1Between1AndN_Solution(int n) { int cnt = 0; for (int m = 1; m <= 1="" 10="" n;="" m="" *="10)" {="" int="" a="n" m,="" b="n" %="" m;="" cnt="" +="(a" 8)="" (a="" ?="" :="" 0);="" }="" return="" cnt;=""Leetcode : 233. Number of Digit One-C++JavaPython)