We deal with the inverse spectral problem of the discontinuous Sturm - Liouville operator. The aim is we to determine the potential $q(x)$ and the boundary constant $h$ by a given spectral data. We provide the algorithm for reconstructing the potential $q(x)$ from the spectral data.