Skip to content

Commit

Permalink
SkipList.py: Added SkipList Data Structure Implementation
Browse files Browse the repository at this point in the history
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 #234
  • Loading branch information
tanseersaji committed Oct 4, 2018
1 parent ec315c7 commit d08032f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions skip_list/Python/SkipList.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

1 comment on commit d08032f

@sangamcse

This comment was marked as outdated.

Please sign in to comment.