I am trying to solve a question from Pugh's Real Mathematical Analysis 2nd ed. The question seemed a little bit odd to me, and is as follows;
Construct a subset A ⊂ $\mathbb{R}$ and a continuous bijection $f: A → A$ that is not a homeomorphism.
Since the question does not imply anything about using different metrics, I suppose A is equipped with the usual metric of $\mathbb{R}$. In addition, I know that A must be noncompact. But I cannot go further to construct such a subset.