For ceramic and porcelain tiled floors, sweep or vacuum, and then mop using a hot water and vinegar mix. The ideal ratio is one cup of vinegar to a gallon of hot water.
Neutral-pH cleaners are ideal for hardwood because they're neither acid nor base and are gentle enough not to cause damage to either the finish or the wood itself.
If your floors are made of marble or limestone, the vinegar will react with the calcium carbonate in the stone and cause etching. Use a neutral-pH agent.