My old HP laptop did that kind of, it was a battery problem. At first I just couldn't unplug the charger or it would die instantly but then it evolved to where I had to have the charger at a certain position for it to not die and then it just got to the point where it could barely start. After that I just bought a new laptop, got Lenovo and it's pretty nice
I tried to start my old laptop the other day and it took like 30 minutes to get the charger at the right angle lol