"""
return node at begining of a cricularly linked list
"""


@@ -54,8 +54,247 @@
 st%0A%22%22%22%0A%0A
+def findBeginning(linkedlist):%0A    slow = linkedlist.head%0A    fast = linkedlist.head%0A    while (fast != None) and (fast.next != None):%0A        slow = slow.next%0A        fast = fast.next.next%0A        if fast == slow:%0A            return fast%0A

Update 2.6_circularlinkedlist.py