All plants require the same elements/nutrients, just in differing amounts from one another (Three elements, Carbon, Oxygen, Hydrogen and 14 nutrients including three primary macronutrients (NPK), three secondary macronutrients (Calcium, Magnesium and Sulphur) and eight micronutrients. A macronutrient is a nutrient that the plant uses large quantities of, whereas a micronutrient is only used in trace amounts.
Genetics may play a small part on whether they need more or less of specific nutrients, but they all need the same nutrients nonetheless. This isn't just for cannabis, either.