Created
May 24, 2017 18:36
-
-
Save nhuntwalker/45107fdad9d2fa1ed38f6085ef01a1dd to your computer and use it in GitHub Desktop.
looped list
This file contains 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
[1] -> [2] -> [3] - | |
^ | | |
| v | |
----------- | |
write a function that takes a linked list as an argument and returns a boolean telling | |
whether or not that list has a loop in it. | |
email to: nicholas@codefellows.com | |
def func(arg): | |
pass | |
linked_list = LinkedList([1,2,3]) | |
func(linked_list) ---> False | |
Due: 11:53am |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment