As with all decorative matters this is a matter of personal taste.
Wooden floors are more durable and require less maintenance. Carpets can give a warmer cosier feel to a property but are not as durable. They do however absorb noise better.
A common approach taken by many landlords is to put wooden floors in the downstairs rooms and carpets upstairs.
Some apartment buildings do not permit wooden floors in order to prevent noise travelling between apartments.