Nuclear reactors, generally speaking, are huge. The same is true for submarine reactors. One way to assess their size is to examine a defueled reactor compartment (on the right side of the linked photograph) as it is separated from the rest of the submarine. During the Cold War, such reactors were located midship on American vessels and, typically, at both ends of Soviet vessels.
Since nuclear reactors do not need air to function properly, they can operate just as efficiently underwater as they do on the surface. That is only part of the reason nuclear power is frequently preferred for submarines.
As they created new ships for the fleet, Soviet engineers relied on the world’s first nuclear power station, in the town of Obninsk (60 miles south of Moscow), to assess nuclear reactor design issues. The country used enormous resources to quickly build a nuclear submarine fleet.
K-19 was from the "Hotel" class of Russian subs. But according to the handwritten memoirs of Captain Zateyev, as quoted in K-19: The Widowmaker, the Soviets were paying a price for building too many ships too soon:
...operating vessels that had to return from the sea because of technical malfunctions was positively shameful...I had argued quite vocally that we should first build one or two experimental subs, perfect all their systems and equipment to the point that we could guarantee their reliability, and only then launch serial production. But nothing doing. We continued building ships that were not combat worthy. (K-19, page 107)
On July 4, 1961, K-19 was one of those ships that was not combat worthy.