Probably is the case in this problem: Multiple tags the search query,
Different search method of time and space complexity is not the same? If many methods can only analyze the practical methods, such as space and is not too slow growth can accept method,