Let f:R→R be a function. Suppose that for every ε>0, there exists a function g:R→(0,∞) such that for every pair (x,y) of real numbers,
if∣x−y∣<min{g(x),g(y)},then∣f(x)−f(y)∣<ε.
Prove that f is the pointwise limit of a sequence of continuous R→R functions, i.e., there is a sequence h1,h2,… of continuous R→R functions such that n→∞limhn(x)=f(x) for every x∈R.