K
kasthurirangan.balaji
Hello,
I have a string list of the format
rangeA rangeB 001
rangeA rangeB1002
rangeA rangeC 003
rangeB rangeC 004
This list is sorted according to the ranges in column 1. Now i have a
value rangeA1B. What is the efficient way to search this value? I need
to select all the three rangeA in the search. Using std::search or
std::find is a best choice here? Or if i need to write any algorithm,
what is that?
Though this seems like a programming question, i have posted here
because i need to write the solution in c++.
Thanks,
Balaji.
I have a string list of the format
rangeA rangeB 001
rangeA rangeB1002
rangeA rangeC 003
rangeB rangeC 004
This list is sorted according to the ranges in column 1. Now i have a
value rangeA1B. What is the efficient way to search this value? I need
to select all the three rangeA in the search. Using std::search or
std::find is a best choice here? Or if i need to write any algorithm,
what is that?
Though this seems like a programming question, i have posted here
because i need to write the solution in c++.
Thanks,
Balaji.