The easiest thing to do is wear earplugs.
It just might work. If that doesnt work, ask your roommate to sleep on their side. Also if you notice your roommate stops breathing in between snoring, you should alert them as they might sleep apnea
. In that case, they should see a sleep physician who could help and in turn help you.