Would the US have much less of a problem with homelessness if building codes hadn't all but eliminated single room occupancy units? Pretty compelling case here.

How States and Cities Decimated Americans’ Lowest-Cost Housing Option
Low-cost micro-units, often called single-room occupancies, or SROs, were once a reliable form of housing for the United States’ poorest residents of, and newcomers to, New York, Chicago, San Francisco, and many other major U.S. cities.
pew.org