Both are equally effective. However, cardio is more effective if you're looking to bulk up faster.
Cardio burns far more calories per min than strength training. It also burns fat more efficiently.
Strength training builds muscle mass, but it takes longer to achieve this goal than cardio.