mirror of
https://github.com/donnemartin/interactive-coding-challenges
synced 2026-01-10 03:18:02 +00:00
Changed xrange to range to be compatible with Python 3.
This commit is contained in:
@@ -120,7 +120,7 @@
|
||||
" iterations_to_compare_half = length / 2\n",
|
||||
" curr = self.head\n",
|
||||
" curr_reversed = reversed_list.head\n",
|
||||
" for _ in xrange(0, iterations_to_compare_half):\n",
|
||||
" for _ in range(0, iterations_to_compare_half):\n",
|
||||
" if curr.data != curr_reversed.data:\n",
|
||||
" return False\n",
|
||||
" curr = curr.next\n",
|
||||
|
||||
Reference in New Issue
Block a user