The higher the bond order is, the shorter is the bond length and shorter bond is a stronger bond. So, a double bond has a bond order of 2 while a triple bond has a bond order of 3. From here, the triple bond has the higher bond order than the double bond, So, the triple bond will have shorter length and the stronger bond.
A triple bond between nitrogen atoms is stronger than a double bond between oxygen atoms primarily due to its higher bond order, shorter bond length, and the greater energy needed to break it. The triple bond has three pairs of shared electrons, making it stronger than the two pairs found in a double bond. Overall, more shared electron pairs result in a stronger attraction between the atoms involved.
;