Smarter Engineers πŸ’‘

Smarter Engineers πŸ’‘

πŸ’‘ Algorithmia

Maximum Subarray Sum

Algorithmically Speaking - #9: Let's explore up to four different solutions to the same problem.

Alberto Gonzalez's avatar
Alberto Gonzalez
Jul 07, 2023
βˆ™ Paid

Hello there!

Today we are going to be diving into one of the most classic algorithmic problems we face when learning how to code: the Maximum Subarray Sum problem.

This problem is the perfect excuse for me to introduce you to the Divide & Conquer paradigm and it will serve as a very complete example of how to optimize for memory and time when creating a solution.

At the end of the post, you will find some algorithmic challenges so you can try and apply some of the topics that I will explain today. Feel free to skip to that part if you think you already have the necessary skills to solve them.

Let’s begin!

Algorithmically Speaking is a reader-supported publication. To receive new posts and support my work, consider becoming a free or paid subscriber.

User's avatar

Continue reading this post for free, courtesy of Alberto Gonzalez.

Or purchase a paid subscription.
Β© 2026 Alberto Gonzalez Β· Privacy βˆ™ Terms βˆ™ Collection notice
Start your SubstackGet the app
Substack is the home for great culture