the type of rock is limestone. they form when redeposited minerals build up after countless water droplets. if the rain droplets drop to the floor, it can deposit more dissolved calcite there, forming a stalagmite. they all form at varying rates as calcite crystals build up.