Confusing Number II
A confusing number is a number that looks the same when rotated 180 degrees (0→0, 1→1, 6→9, 8→8, 9→6). Given N, count all confusing numbers from 1 to N.
A confusing number is a number that looks the same when rotated 180 degrees (0→0, 1→1, 6→9, 8→8, 9→6). Given N, count all confusing numbers from 1 to N.