Pergunta de entrevista da empresa AppNexus

Write a function that returns the number of contiguous bits in an adjacency matrix,

Resposta da entrevista

Sigiloso

30 de out. de 2016

Use Depth First Search on a starting point of the matrix to find same values, and increment by one where those values are found (and mark elements as visited).