      "def calc_utopian_tree_height(cycles):\n",
      "    height = 1\n",
      "    if cycles == 0:\n",
      "        return height\n",
      "    for i in xrange(1, cycles+1):\n",
      "        if i % 2 == 1:\n",
      "            height *= 2\n",
      "        else:\n",
      "            height += 1\n",
      "    return height"
 
</s> remove     "    for i in xrange(0, len(data)):\n",
 </s> add     "    for i in range(0, len(data)):\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 i in xrange(size/2):\n",
 </s> add     "    for i in range(size/2):\n", </s> remove     "    for _ in xrange(n):\n",
 </s> add     "    for _ in range(n):\n", </s> remove     "        for _ in xrange(0, iterations_to_compare_half):\n",
 </s> add     "        for _ in range(0, iterations_to_compare_half):\n",
    "    for i in range(1, cycles+1):\n",
      "def calc_utopian_tree_height(cycles):\n",
      "    height = 1\n",
      "    if cycles == 0:\n",
      "        return height\n",
    "    for i in range(1, cycles+1):\n",
      "        if i % 2 == 1:\n",
      "            height *= 2\n",
      "        else:\n",
      "            height += 1\n",
      "    return height"
keep keep keep keep replace keep keep keep keep keep
 Changed xrange to range to be compatible with Python 3. 
online_judges/utopian_tree/utopian_tree_solution.ipynb