Top "Sortedset" questions

Represents a collection of unique objects that is maintained in sorted order.

ordering a hashset example?

I need an example on how to use a comparable class on a HashSet to get an ascending order. Let’…

java data-structures hashset comparable sortedset
Why are there no sorted containers in Python's standard libraries?

Is there a Python design decision (PEP) that precludes a sorted container from being added to Python? (OrderedDict is not …

python language-design sortedset sortedmap
How to find the index of an element in a TreeSet?

I'm using a TreeSet<Integer> and I'd quite simply like to find the index of a number in …

java algorithm data-structures treeset sortedset
Difference between NavigableSet, SortedSet and TreeSet in Java

A TreeSet puts an element in natural ordering or by the provided comparator. A SortedSet is also keeps the element …

java set treeset sortedset
maintaining TreeSet sort as object changes value

I've got a object that defines a 'natural sort order' using Comparable<>. These are being stored in TreeSets. …

java collections refresh treeset sortedset
How to iterate over a SortedSet to modify items within

lets say I have an List. There is no problem to modify list's item in for loop: for (int i = 0; …

java iterator sortedset
how to get a member with maximum (or minimum ) score from redis sorted set given a subset of members?

I am writing a algo for deducing the user with the least amount of work load. Based on the type/…

redis sortedset
Convert List of Ints to a SortedSet in Scala

If I have a List of Ints like: val myList = List(3,2,1,9) what is the right/preferred way to create a …

scala sortedset
Add to SortedSet<T> and its complexity

MSDN states the following SortedSet(T).Add Method : If Count is less than the capacity of the internal array, this …

c# time-complexity sortedset
how to get data based on date range in redis

I have a log data in mysql id | value | date 1 | 10.2 | 2017-07-20 18:00:00 2 | 10.5 | 2017-07-20 18:00:01 3 | 10.3 | 2017-07-20 18:00:03 then transformed it into …

hash redis sortedset zset