Last active
April 19, 2020 17:15
-
-
Save onelharrison/43d40ed3f9a7826c5bedab75ef0dcf2e to your computer and use it in GitHub Desktop.
Increment of a recursive function that reverses an empty linked list
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def reverse_linked_list_recursive(head): | |
if head is None: # handles empty linked list | |
return head |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment