Build repeat units from functional-group reactions and reverse the process to recover the monomers.
Two reactive ends allow a chain to keep growing
Condensation polymerisation joins monomers while eliminating small molecules. To produce a long linear chain, each monomer must supply two appropriately reactive functional groups overall. A diol can react with a dicarboxylic acid to form a polyester; a diamine can react with a dicarboxylic acid to form a polyamide.
The functional groups react by the same chemistry as small-molecule ester or amide formation. Each new link leaves another reactive end available, allowing further joining. A molecule with only one suitable group would tend to cap a chain rather than extend it indefinitely in this simple linear model.
A single monomer type can also polymerise if it contains both required groups: a hydroxycarboxylic acid can form a polyester and an amino acid can form a polyamide. Do not assume that condensation always requires two different monomers.
