Need help in set.

Правка en1, от K_B_C_S, 2018-01-28 02:17:45

Given a set of pairs. Each pair represent a range of numbers. Example (5, 8) represents {5, 6, 7, 8}. I want to find in which pair an element x is present, it is sure that element x exits in at least one pair?

Can this be solved in logarithmic time? Thanks in advance!

Теги #set, #help, pair

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en1 Английский K_B_C_S 2018-01-28 02:17:45 292 Initial revision (published)