Answers for "is a hashset slower than a treeset"

0

is a hashset slower than a treeset

HashSet is much faster than TreeSet (constant-time versus log-time for most operations like add, remove and contains) but offers no ordering guarantees like TreeSet.
Posted by: Guest on October-26-2020

Browse Popular Code Answers by Language