Suggestions for acclimatzing:

Take a couple days and spend them as high as you can practically go. Around the Whitney area, this means getting up to 10,000+ft in the days before you go. Also properly resting the day before your hike up helps the success ratio for the big day.

Alta Peak is a nice warm up and great way get some elevation. Whitney will be +2500ft more net gain on top of that and 8 more miles. If you felt 100% on/after Alta peak, that's a good sign, if Alta peak wore you out then consider carefully what doing Whitney in a day will mean for your body.

While there might be a tendency to get AMS based on genetics, I firmly believe you can influence your probability of getting it with the things you do before heading up high and monitoring how you feel (ie maybe push your climb a day later if you're not feeling it). Assuming you have a good aerobic base, hydration is one of the most important things you can do(some people wll say aerobic fitness and AMS are unrelated, but I don't agree). Mix in an electrolyte drink with water, don't just drink all water.

Experiment with what you eat also; ie works and what doesn't higher up. A cheesburger sounds great in town, might not work for you at 13,000ft. Same thing for energy bars. What tastes good at home will taste different as you push on towards the summit exerting yourself.

One suggestion to help combat AMS once clibing is to start out slower than you feel you can hike. This means starting a bit earlier; targeting to be off the summit by noon is a good rule.