The stitch before the yarn over depends on what pattern you are knitting. If you were knitting the entire row, the stitch before the yarn over will be a knit stitch. If you were purling the entire row, the stitch before the yarn over will be a purl stitch. If you were doing a rib or seed pattern, the stitch is simply the last stitch you did—either a knit or purl.