Frage im Vorstellungsgespräch bei Snap

File diff. How would you design it?

Antworten zu Vorstellungsgespräch

Anonym

4. Feb. 2015

Hash.

1

Anonym

17. Okt. 2018

with open('some_file_1.txt', 'r') as file1: with open('some_file_2.txt', 'r') as file2: same = set(file1).intersection(file2) same.discard('\n') with open('some_output_file.txt', 'w') as file_out: for line in same: file_out.write(line)