Revisiting Basic Algorithms

Algorithms are always tricky. That’s what they’re made for. Thankfully they can be learned by starting with the basics.

Basic algorithms for me are the most basic: reverse a string, sum all even numbers. They’re easy for someone whose been doing them for a couple years, but they are great for when you need a refresher.

I’d been working on algos for coding interviews for a while, and I decided to take a break to work on a few projects. Recently I’ve switched back to algos, and I decided to revisit the basics first. There are always different ways to solve problems. When you’re comfortable solving one way, try another.

Soon I was recalling language tricks and new ways to think of simple problems. Solving the big problems requires some serious mental malleability. If you were able to be more flexible with your strategies, you might find new answers and better solutions.