      "def reverse_string_alt(string):\n",
      "    return string[::-1]\n",
      "\n",
      "def reverse_string_alt2(string):\n",
      "    return ''.join(reversed(string))"
     ]
    }
   ],
   "metadata": {
    "kernelspec": {
 
</s> remove     "* Based on the function signature, it seems you have to implement this in C/C++?\n",
    "    * Yes\n",
    "* Can you use additional data structures?\n",
    "    * No, do the operation in-place"
 </s> add     "* Can I use the slice operator or the reversed function?\n",
    "    * No\n",
    "* Since Python string are immutable, can I use a list instead?\n",
    "    * Yes" </s> remove    "execution_count": null,
 </s> add    "execution_count": 7, </s> remove     "## Code"
 </s> add     "## C Code" </s> remove     "## Pythonic-Code: Not In-Place\n",
 </s> add     "## Pythonic-Code\n",
    "    if string is None:\n",
    "        return None    \n",
    "    return ''.join(reversed(string))\n",
    "\n",
    "run_tests(reverse_string_alt)\n",
    "run_tests(reverse_string_alt2)"
      "def reverse_string_alt(string):\n",
      "    return string[::-1]\n",
      "\n",
      "def reverse_string_alt2(string):\n",
    "    if string is None:\n",
    "        return None    \n",
    "    return ''.join(reversed(string))\n",
    "\n",
    "run_tests(reverse_string_alt)\n",
    "run_tests(reverse_string_alt2)"
     ]
    }
   ],
   "metadata": {
    "kernelspec": {
keep keep keep keep replace keep keep keep keep keep
 Added python solution to the following: Implement a function to reverse a string. 
arrays-strings/reverse_string.ipynb