mirror of
https://github.com/donnemartin/interactive-coding-challenges
synced 2026-01-11 20:08:04 +00:00
Fixed Python2 vs Python3 division compatibility.
This commit is contained in:
@@ -94,7 +94,7 @@
|
||||
" return data\n",
|
||||
" left = []\n",
|
||||
" right = []\n",
|
||||
" pivot_index = int(len(data) / 2)\n",
|
||||
" pivot_index = len(data) // 2\n",
|
||||
" pivot_value = data[pivot_index]\n",
|
||||
" \n",
|
||||
" # Build the left and right partitions\n",
|
||||
|
||||
Reference in New Issue
Block a user