Skip to content

Commit

Permalink
Update skiplist.py
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhukovAlexander committed Sep 18, 2018
1 parent 94ccb53 commit ea6504f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions py_skiplist/skiplist.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ class NIL(object):
__slots__ = ()

def __cmp__(self, other):
# NIL is always greater than the other
return 1

def __str__(self):
Expand Down

0 comments on commit ea6504f

Please sign in to comment.