Does the 74LS09 have an adequate internal input pullup?
A floating TTL input can be considered 1.
Then again, one cannot rely on this. Neither switching speed nor the noise immunity will be the same.
Leaving a TTL input to pull itself is good only for &quot;try and see&quot; and nothing more.