← ALL NOTES
Array

1267. Count Servers that Communicate

A grid of servers (1) and empties (0); two servers communicate if they share a row or column. Count servers that communicate with at least one other. The clean observation: a server is isolated iff…

Loading…