To succeed, you must practice. To practise, you must have strong determination.
You should keep practising on forums like hackerearth.com, hackerrank.com, codechef.com, etc. Also get yourself updated about the latest events going on the interview preparation forums like geeksforgeeks.com, carrerup.com, etc. Keep yourself familiar with at least 1-2 programming languages well. Topics like DPP, Greedy, graph and string processing are the common stuff asked in the interview.
Refer good books/content always. For algorithms, you can refer "Intro to Alogrithms" by Cormen.