There are several arrays of names in a text file. It is necessary to separate and display the names that are in all arrays. The complexity of the program should not exceed Const*O(n log n) . n is the size of the array itself in the file ... The number of arrays in the file is random. The program must be written in C ++ .
What algorithm to use?