I need a little explanation, please. Seymour Lipschutz - General Topology, Chapter 7, page 110:
Let $X,Y,Z$ be topological spaces and let $f:X\longrightarrow Y$ and $g:Y\longrightarrow Z$ be continuous. Show that if $g\circ f:X\longrightarrow Z$ is a homemorphism, then $g$ one-one (or $f$ onto) implies that $f$ and $g$ are homeomorphisms.
To show that two functions $f$ and $g$ are homeomorphisms we need to show that there exists an one-to-one correspondence, and $f,f^{-1},g,g^{-1}$ are continuous. As $f$ and $g$ are already continuous by hypothesis, and $g$ one-one (or $f$ onto), we only have to show that $g$ onto (or $f$ one-one), $f^{-1}$, and $g^{-1}$ are continuous. Am I right?