issues
search
fukatani
/
TreeSet
Python Binary-Tree set like java Treeset.
35
stars
11
forks
source link
Bugfixes for floor and ceiling
#5
Open
alanyee
opened
4 years ago
alanyee
commented
4 years ago
Fixes #1. Returns
None
since the Java equivalent returns
null
Due to Python indexing, if the
floor()
of a TreeSet does not exist, the last element of the set is returned. Now returns
None
if it does not exist
Added tests to check the above
Minor changes to make the codebase more
PEP 8
compliant
None
since the Java equivalent returnsnull
floor()
of a TreeSet does not exist, the last element of the set is returned. Now returnsNone
if it does not exist