-
Notifications
You must be signed in to change notification settings - Fork 26
/
hexwords.html
35 lines (25 loc) · 1.25 KB
/
hexwords.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<!DOCTYPE html>
<html>
<head>
<title>Puzzle: Hex Words</title>
<link rel="stylesheet" type="text/css" href="style.css">
<body>
<p class="subtle"><a href="/">« Boston Python puzzles</a></p>
<h1>Hex Words</h1>
<p>Find the English hex() words. You know, the strings of hex digits that
appear to be English words.</p>
<p>For example...</p>
<ul>
<li>The word 'bee' in hex is 3054 in decimal.</li>
<li>The word 'face' in hex is 64206 in decimal.</li>
<li>The word 'decade' in hex is 14600926 in decimal.</li>
</ul>
<p>Forget about the '0x' prefix. That's computer stuff!
<a href="http://stackoverflow.com/questions/2670639/why-are-hexadecimal-prefixed-as-0x">http://stackoverflow.com/questions/2670639/why-are-hexadecimal-prefixed-as-0x</a></p>
<p>So, what is the largest hex word in English? (hint: You can eat some of them.)</p>
<h2>Solutions</h2>
<ul>
<li>Barry Flinn's solution is <a href="https://github.com/BostonPython/puzzles/blob/gh-pages/solutions/flinnb/hexwords.py">hexwords.py</a></li>
<li>Andrew Ross's solution is <a href="https://github.com/BostonPython/puzzles/blob/gh-pages/solutions/asross/hexwords.py">hexwords.py</a></li>
</ul>
<p>If you have a solution you'd like to share see the <a href="solutions.html">Solutions page</a> for instructions.</p>