In the periodic table, nitrogen, oxygen, and fluorine typically have oxidation states of -3, -2, and -1 respectively. Sulfur usually has an oxidation state of -2 if it is the more electronegative element.
Potassium has an oxidation state of +1, hydrogen has an oxidation state of +1, carbon has an oxidation state of +4, oxygen has an oxidation state of -2
The more electronegative element typically takes the natural oxidation state from the periodic table, the less electronegative element has its oxidation state determined