Curious to know how distance fn. work on set!!

Правка en1, от TARS, 2020-09-27 07:41:19

I'm solving a problem called number of smaller elements on the right side of an array. I saw stl solution based on the set they've used "distance(s.begin(), it)" I know how distance fn works on linear data structure but I don't know how it goes with a hierarchal structure like a set, etc.. Do you have an idea about how it works on trees?

Теги #set, #trees, #distance

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en1 Английский TARS 2020-09-27 07:41:19 387 Initial revision (published)