Question is it dc jack , battery or charger

May 24, 2020
I have a dell 15 7759 and it recently stopped charging. When i plug in the charger it charges for a little then it stops and keeps flicking on and off. I tried the charger with another computer and it works fine. I also replaced the battery with a new one and same thing. Then finally i replaced the dc jack and still same thing. I dont know what to try next. It does the same thing with the new parts, charge for a little then stop.