Blog website folder and pages organization

I create a blog with some categories and subcategories. So there are hundreds of pages.

It is better to have ALL pages in the root folder (/mysite/page.html) or into the subfolders (/mysite/category/subcategory/page.html)?

What's better for the URLs of my site and for Google indexing?