Parallel structure is when you use clauses or verbs in the same tense, to add flow to your sentence and emphasize certain points. To rewrite the sentence, you can use:
It is better studying for an exam over time than cramming the night before.
Notice how <u>cramming</u> and<u> studying </u>have the same tense.