Recovery of Algebraic Numbers from their $p$-adic Approximations