Have 2 files File1.txt and file2.txt containing text values. Have to read both files and write unique values in to another file.
What is the best approach for doing this?
One Idea is to use HashMap for solving duplicate values. But in a interviews, thats not the expected answer.
Anyone has any other idea?