Are you using the original adapter/charger that came with the laptop when new?
That's a good question.
If it is the original OEM charger for your model, then it sounds like the power brick is failing. Try another outlet, and if the same problem occurs, you may need to replace the charger. On the off chance this continues happening, you may have a problem with the laptop's DC jack or main board.