Should I drop CS?

I am in my second year in cs and I feel more stupid than ever. I’m now talking algorithms and data structures and I have never felt more lost on the major (despite continuously feeling lost on a lot of classes). I feel like I am not able to fully understand what I code without help. So idk, pls help.