How are we checking if a vehicle can fit or not?

Author: praveenksgvCreated Nov 18, 2025Updated Nov 21, 2025

https://github.com/ashishps1/awesome-low-level-design/blob/43017e5e22eeedcf74234e6b80fcbec3a7554ab5/solutions/java/src/parkinglot/entities/ParkingSpot.java#L50

Shouldn't it be: return spotSize = VehicleSize.SMALL || spotSize == VehicleSize.MEDIUM || spotSize == VehicleSize.LARGE;

Source: ashishps1/awesome-low-level-design