Landlocked Malawi ranks among the world 's most densely populated and least developed countries .