I have a question which data structure is the best for particular situation.
we have one string "AAAAAAAAAAA", and we want to know this string contain in one data base column or not.
For example below database there is two column.
1. ID 2. Name
1 A
2 B
3 C
.....
49581 AAAAAAAAAAA
if it's match then, return true if not false.
I know I can use list<string>
but I don't think it's best way to searching
I want to know which data structure is best way to search in this case.