I have a question about the following exercise from Hartshorne's book 'Algebraic geometry':
Let $X$ be a curve of genus $g$. Show that there is a finite morphism $f:X\rightarrow \mathbb P^1$ with degree $\leq g+1$.
My idea is the following: We choose $g+1$ points $P_i$ in $X$. This gives us by a previous exercise (4.1.2) a rational function $r=\frac g h$ with poles at the $P_i$ and nowhere else. Now we define the map on closed points to be $x \mapsto [h(x):g(x)]$. As this map is non-constant, it is finite.
The fibre of $f^{-1}([1:0] )$ contains exactly the $P_i$ and hence the degree of $f$ is smaller than g+1. What obstructs us from choosing less than g+1 points in the beginning?
Sincerely
slin0