Given a string, output the range of ASCII values.
Let's say we have the string
We get the ASCII values:
Now, we get the range (
max - min):
- 111 - 72 = 39
Our answer is 39.
Input Output Hello, World! 82 aaaaa 0 Code Golf 79 Stack Exchange 88 ASCII 18
For scoring, we will get the range of ASCII/Unicode values of your program source code, and add that to the length of your code in bytes.
For example, with the program
abc, the score would be:
- 3 (the length of the program) + 2 (the ASCII range of the program) = 5
You can use this TIO link to get your score.
- There will be no non-ASCII characters in the input (but your program source code may contain non-ASCII characters)
- There will be no newline characters in the input (but your program source code may include newlines)
- Lowest score wins