Do not buy in advance! You can walk right up to the counter and buy your ticket when you are ready to go up. And your ticket is good for use all day long. That way you can go up and return, then go up again when you remember that you forgot to buy a souvenir at the shop at the top.