ThịThúy Hiền
New member
How do you find the common lines between two large files?
Answer
When you have more than 2 files, iterate over one file and build a new trie from the matches.
…
Answer
When you have more than 2 files, iterate over one file and build a new trie from the matches.
…
- Sort just 1 file (#1).
- Walk through each line of the next file (#2) and do a binary search on the #1 file (based on the number of lines).
- If you find the string; write it on another temp file (#temp1).