Police are trying to figure out if two deadly shootings in the same Brooklyn building are linked.

Basil Gray was found dead with multiple gunshot wounds to the torso Sunday in his apartment at the Bushwick Houses in Williamsburg.

Investigators believe he had been dead since Friday.

That's the day officers found Gray's next-door neighbor bound and shot in the head.

"We are in the process of conducting a door to door search of every apartment inside 140 Moore Street to ensure the safety of all residents in this building," said NYPD Deputy Chief Charles McEvoy.

Police say there were no signs of forced entry to either apartment.