Professor told me the two spaces are homeomorphic if we consider them as subspaces of R equipped with the standard topology.
It's a bit surprising for me since I have already found Q is homeomorphic to the positive rationals and I know that the two spaces in the main question are homeomorphic, so how can the positive rationals and non-negative rationals be homeomorphic?