TreeSet icon indicating copy to clipboard operation
TreeSet copied to clipboard

Bugfixes for floor and ceiling

Open alanyee opened this issue 5 years ago • 0 comments

  • 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

alanyee avatar Sep 30 '20 17:09 alanyee