Timeline for Determining if a palindrome exists in a linked list using recursion
Current License: CC BY-SA 3.0
17 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Sep 8, 2017 at 10:44 | comment | added | 301_Moved_Permanently | @Bex Yes, silly me, this is the right fix. | |
| Sep 8, 2017 at 10:21 | comment | added | Bex |
@MathiasEttinger - I just learned there is an integer division operator: //
|
|
| Sep 8, 2017 at 10:20 | history | edited | Bex | CC BY-SA 3.0 |
added 6 characters in body
|
| Sep 6, 2017 at 7:43 | history | edited | Bex | CC BY-SA 3.0 |
added 149 characters in body
|
| Sep 5, 2017 at 23:23 | vote | accept | Kevin Chen | ||
| Sep 6, 2017 at 20:43 | |||||
| Sep 4, 2017 at 14:59 | comment | added | Daniel | Gets me every time. I'm used to Python 3 :P | |
| Sep 4, 2017 at 14:57 | comment | added | 301_Moved_Permanently |
@Coal_ Using integral division (Python 2, but OP is expecting integers at the end of its recursive call, so this might be Python 2), when you divide 1 by 2, the result is 0. @Bex Maybe using while not (length < 1): will make it Python 3 compatible too.
|
|
| Sep 4, 2017 at 14:50 | comment | added | Daniel |
I don't get what you mean by 1/2 == 0 and onwards. Can you explain?
|
|
| Sep 4, 2017 at 13:16 | comment | added | Bex | This is a great code review community! Thank you. Corrected as per your observations | |
| Sep 4, 2017 at 13:15 | history | edited | Bex | CC BY-SA 3.0 |
added 1 character in body
|
| Sep 4, 2017 at 12:55 | comment | added | wizzwizz4 | Also - missing a colon in that same function. | |
| Sep 4, 2017 at 12:13 | history | edited | Bex | CC BY-SA 3.0 |
added 2 characters in body
|
| Sep 4, 2017 at 11:10 | history | edited | Bex | CC BY-SA 3.0 |
edited body
|
| Sep 4, 2017 at 10:53 | comment | added | Charlie Harding |
Should the last example read length /= 2 not length =/ 2?
|
|
| Sep 4, 2017 at 10:38 | history | edited | Bex | CC BY-SA 3.0 |
added 7 characters in body
|
| Sep 4, 2017 at 10:16 | review | First posts | |||
| Sep 4, 2017 at 10:21 | |||||
| Sep 4, 2017 at 10:12 | history | answered | Bex | CC BY-SA 3.0 |