Explanation: Hydrogen Bond Interactions are formed between those molecules which has hydrogen atoms covalently bonded to most electronegative atoms like Fluorine, Oxygen and Nitrogen. This direct attachment of Hydrogen to electronegative atom makes it partial positive resulting in hydrogen bonding with neighbor's partial negative most electronegative atom. So, in above selected compounds it can be seen that both compounds contain hydrogen atoms directly attached to Nitrogen atoms, Therefore, allowing them to form Hydrogen Bonding Interactions.
Potassium(an alkali metal) belongs to element in group 1 and period 4 in the periodic table. It has to release one electron to attain noble configuration.