From d08032fa81059598a8a4026394f2f04c693d9b52 Mon Sep 17 00:00:00 2001 From: Tanseer Saji Date: Thu, 4 Oct 2018 15:36:35 +0530 Subject: [PATCH] SkipList.py: Added SkipList Data Structure Implementation This adds the implementation of Skip List Data Structure in python, this also adds the operation that can be done in a SkipList Data Structure like Insertion, Deletion, Traversal. Closes https://github.com/NITSkmOS/Algorithms/issues/234 --- skip_list/Python/SkipList.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/skip_list/Python/SkipList.py b/skip_list/Python/SkipList.py index 4d6abd1c..611ca133 100644 --- a/skip_list/Python/SkipList.py +++ b/skip_list/Python/SkipList.py @@ -93,9 +93,9 @@ def printList(self): for i in range(len(self.head.next)-1, -1, -1): x=self.head while(x.next[i]!=None): - print x.next[i].elem, + print(x.next[i].elem,) x=x.next[i] - print '' + print('') if __name__ == "__main__": skipList = SkipList() print("Insertion Started")