Last updated
Was this helpful?
Last updated
Was this helpful?
Yet another poorly specced, poorly named, trivial task.
How many integers in base 16 cannot be written without using a hexadecimal digit? All of them. Or none of them.
Base 16 is not hexadecimal. Hexadecimal is an implementation of base 16.
How many of those glyphs are decimal digits? And yet it is in base 16, albeit with non-standard digit glyphs. So they all can be written without using a hexadecimal digit.
But wait a minute; is 2 a hexadecimal digit? Why yes, yes it is. So none of them can be written in hexadecimal without using a hexadecimal digit.
Bah. Show which when written in base 16, contain a digit glyph with a value greater than 9:
But wait a minute. Let's take another look at the the task title. Base-16 representation. It isn't talking about Base 16 at all. It's talking about Base**-16**... so let's do it in base -16.
Of course, if you are looking for the count of the hexadecimal numbers up to some threshold that only use "decimal" digits, it is silly and counter-productive to iterate through them and check each when you really only need to check one.