Need help in set.

Revision en1, by 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!

Tags #set, #help, pair

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English K_B_C_S 2018-01-28 02:17:45 292 Initial revision (published)