mirror of
https://github.com/donnemartin/interactive-coding-challenges
synced 2026-01-07 09:58:03 +00:00
Changed xrange to range to be compatible with Python 3.
This commit is contained in:
@@ -82,8 +82,8 @@
|
||||
"source": [
|
||||
"def max_xor(lower, upper):\n",
|
||||
" result = 0\n",
|
||||
" for l in xrange(lower, upper + 1):\n",
|
||||
" for u in xrange(lower, upper + 1):\n",
|
||||
" for l in range(lower, upper + 1):\n",
|
||||
" for u in range(lower, upper + 1):\n",
|
||||
" curr = l ^ u\n",
|
||||
" if result < curr:\n",
|
||||
" result = curr\n",
|
||||
|
||||
Reference in New Issue
Block a user