Pergunta de entrevista da empresa Google

How do you build an algorithm to check for two files with identical content in the most efficient way

Respostas da entrevista

Sigiloso

16 de out. de 2013

Check size and checksum.

2

Sigiloso

22 de out. de 2012

use Signature method such as MD5 or SHA-1, and compare the result:)

6

Sigiloso

14 de mar. de 2013

Use a checksum ?

Sigiloso

18 de set. de 2012

First compare the size of the file. If the size is same then compare the contents of the files

2