I am also currently working on the Basic Algorithms. The first several were extremely difficult for me. I had to look at all the hints, use other websites, and sometimes even look at the full answer before I finally understood what I needed to do. But they become progressively easier as you begin to better grasp all the functions and logic. And it takes a little time for your brain to rewire itself to process this new way of thinking.
A week ago I was spending an entire evening or two working on just one challenge. Tonight, I finished two algorithm challenges fairly quickly, and didn’t even look at the hints or any extra resources to finish one of them. Just keep trying and you will get it.