Compound 1: CS₂
Oxidation State of S = -2
Overall Charge on Molecule = 0
So,
C + (-2)₂ = 0
C -4 = 0
C = +4
Result:
O.S of C = +4
O.S of S = -2
Compound 2: CH₃S-S-CH₃ or H₆C₂S₂
Oxidation State of H = +1
Oxidation State of S = -2
Overall Charge on Molecule = 0
So,
(H)₆ + (C)₂ + (S)₂ = 0
(+1)₆ + (C)₂ + (-2)₂ = 0
+6 + (C)₂ -4 = 0
(C)₂ = -6 + 4
(C)₂ = -2
C = -1
Result:
O.S of C = -1
O.S of S = -2
O.S of H = +1