Last updated 1 month ago
In python, you may use library.
from sortedcontainers import SortedList
JAVA can use TreeSet or TreeMap.