HCN : In HCN molecule C−atom is sp−hybridised orbital. One of the sphybrid orbital overlap with the 1s orbital of H−atom, while the other mixes with one of the 3 atomic p−orbitals of N−atom.
H−C≡N: It is a linear molecule.
C[He]2s22p2
H1s1
N[He]2s22p3
HN3 :
Octet rule states that most stable structure assure 8 electrons around every atom.
∴ stable structure of HN3 is
⋅⋅N⋅⋅=N=⋅⋅N−H
Here the central N−atom is sp−hybridised where as outer N−atoms play sp2 hybridisation.