AppNexus Interview Question

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

Interview Answer

Anonymous

Oct 30, 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).