Hexadecimals and probability [closed]
开发者_StackOverflow
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 11 years ago.
Improve this questionA numeric string ([0-9A-F]+
) is given. What's the probability that it's a hexadecimal number?
All strings of characters in the class [0-9A-F]
can be interpreted as hexadecimal numbers, so the answer is 100%.
精彩评论