China solves the homeless problem for democratically run states.
Sadly, the core intractable homeless problem consists of mental health and substance abuse cases. The squalor and grifting of homeless encampments are the result.