---
title: "Discussion on \"Maximum Subarray Sum using Kadane's Algorithm\" | Hashnode"
description: "Discussion on \"Maximum Subarray Sum using Kadane's Algorithm\". This is part 1 of the DSA series where we will be going through the Kadane's Algorithm to solve the 'Maximum Subarray Sum' problem.\nLet us first understand what a subarray is. Consider the following array of integers:\nint arr[] = {7,2,0,5};\nA subarra..."
url: "https://hashnode.com/posts/maximum-subarray-sum-using-kadanes-algorithm/66b705570719e8eceb809a5c"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Maximum Subarray Sum using Kadane's Algorithm](https://rshaurya.hashnode.dev/maximum-subarray-sum-using-kadanes-algorithm?utm_source=hashnode&utm_medium=feed)

This is part 1 of the DSA series where we will be going through the Kadane's Algorithm to solve the 'Maximum Subarray Sum' problem. Let us first understand what a subarray is. Consider the following array of integers: int arr\[\] = {7,2,0,5}; A subarra...

Aug 10, 2024 · 4 min read · rshaurya.hashnode.dev  
Updated Nov 24, 2025  
Read the article

-   [#java](https://hashnode.com/tag/java)
-   [#dsa](https://hashnode.com/tag/dsa)
-   [#problem-solving](https://hashnode.com/tag/problem-solving)

## Written by

[Shaurya Pethe](https://hashnode.com/@rshaurya)

@rshaurya

  
[View profile](https://hashnode.com/@rshaurya)

1st year student @ VIT Bhopal, CSE with AI/ML | Passionate to explore new technologies and contribute

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
