---
title: "Discussion on \"53. Maximum Subarray\" | Hashnode"
description: "Discussion on \"53. Maximum Subarray\". link\nKey ideas\n\nWe can extend the subarray if the sum is still positive after adding the next number\nIf adding the next number makes the sum negative, it means adding the next number doesn't help us get the maximum, we definitely don't want to have i..."
url: "https://hashnode.com/posts/53-maximum-subarray/631b40a9f73f4734bc05152b"
---

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

Discussion

# [53\. Maximum Subarray](https://brianhu.hashnode.dev/53-maximum-subarray?utm_source=hashnode&utm_medium=feed)

link Key ideas We can extend the subarray if the sum is still positive after adding the next number If adding the next number makes the sum negative, it means adding the next number doesn't help us get the maximum, we definitely don't want to have i...

Sep 9, 2022 · 1 min read · brianhu.hashnode.dev  
Read the article

-   [#two-pointers](https://hashnode.com/tag/two-pointers)

## Written by

[Brian Hu](https://hashnode.com/@brianhu)

@brianhu

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

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
