     "outputs": [],
     "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",
      "            curr = l ^ u\n",
      "            if result < curr:\n",
      "                result = curr\n",
      "    return result"
     ]
 
</s> remove     "    for i in xrange(start + 1, len(data)):\n",
 </s> add     "    for i in range(start + 1, len(data)):\n", </s> remove     "    for r in xrange(1, len(data)):\n",
    "        for l in xrange(0, r):\n",
 </s> add     "    for r in range(1, len(data)):\n",
    "        for l in range(0, r):\n", </s> remove     "    for _ in xrange(n):\n",
 </s> add     "    for _ in range(n):\n", </s> remove     "    for i in xrange(0, len(data) - 1):\n",
 </s> add     "    for i in range(0, len(data) - 1):\n", </s> remove     "        for _ in xrange(0, iterations_to_compare_half):\n",
 </s> add     "        for _ in range(0, iterations_to_compare_half):\n",
    "    for l in range(lower, upper + 1):\n",
    "        for u in range(lower, upper + 1):\n",
     "outputs": [],
     "source": [
      "def max_xor(lower, upper):\n",
      "    result = 0\n",
    "    for l in range(lower, upper + 1):\n",
    "        for u in range(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",
      "    return result"
     ]
keep keep keep keep replace replace keep keep keep keep keep
 Changed xrange to range to be compatible with Python 3. 
online_judges/maximizing_xor/maximizing_xor_solution.ipynb