Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

why is a tree set sorted

TreeSets, are datastructures that require unique elements and are sorted. This is because treeset is a mix of binary tree(sorted) and a set which cannot contain unique elements.
 
PREVIOUS NEXT
Tagged: #tree #set #sorted
ADD COMMENT
Topic
Name
2+5 =