If your laptop has trouble charging have the charger and power socket checked. Holding the plug at an angle (which might seem like good a temporary fix) can cause the long term problems.
Corrosion caused by a spill. Corrosion caused by a small spill.
A bent motherboard and power socket.