That's a great idea. I would love to be able to do that. If only I was not forced to live in the most expensive part of my country where one square meter costs more than half year salary of average person. At least from accounting point of view I'm a millionair, just without any ability to get my own space (because needs of family always come first). Life is strange.
You don't have to do the leetcode there. Can sit there for the whole time staring at the wall if you like.
But if you're doing anything there, it's leetcode. Your brain is a pattern matcher. It doesn't like boredom. Thus you can train it, a bit like a dog.