Check it out Harry Potter fans: architect Gary Chang transformed his 345 square foot apartment into a real life room of requirement.
What's the room of requirement? One of the characters in the book describes it as "a room that a person can only enter when they have real need of it. Sometimes it is there, and sometimes it is not, but when it appears, it is always equipped for the seeker's needs" (Harry Potter and the Order of the Phoenix, Chapter 18)
Chang's tiny apartment can transform into 24 separate spaces, depending on his current need.
You can check out photos and all of the possible configurations in this article from designboom architecture.
I found out about this apartment in a new youth book in the library, Take Shelter, At Home Around the World, by Nikki Tate and Dani Tate-Stratton.