First passage time problems for one-dimensional random walks