Smarter Engineers 💡

Smarter Engineers 💡

Share this post

Smarter Engineers 💡
Smarter Engineers 💡
Maximum Subarray Sum
Copy link
Facebook
Email
Notes
More
💡 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
17

Share this post

Smarter Engineers 💡
Smarter Engineers 💡
Maximum Subarray Sum
Copy link
Facebook
Email
Notes
More
5
Share

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.

Keep reading with a 7-day free trial

Subscribe to Smarter Engineers 💡 to keep reading this post and get 7 days of free access to the full post archives.

Already a paid subscriber? Sign in
© 2025 Alberto Gonzalez
Privacy ∙ Terms ∙ Collection notice
Start writingGet the app
Substack is the home for great culture

Share

Copy link
Facebook
Email
Notes
More