---
title: "Discussion on \"Maximum Sum Contiguous Subarray - LeetCode\" | Hashnode"
description: "Discussion on \"Maximum Sum Contiguous Subarray - LeetCode\". The problem is taken from  53. Maximum Subarray.\nBrute force approach\nFor each element in the array we need to find all possible contiguous subarray to the right of it. \nCode - \nclass Solution {\npublic:\n    int maxSubArray(vector<int>& nums) {\n      ..."
url: "https://hashnode.com/posts/maximum-sum-contiguous-subarray-leetcode/61ab42fe95cbbe21d3116c8d"
---

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

Discussion

# [Maximum Sum Contiguous Subarray - LeetCode](https://suraj26.hashnode.dev/maximum-sum-contiguous-subarray-leetcode?utm_source=hashnode&utm_medium=feed)

The problem is taken from 53. Maximum Subarray. Brute force approach For each element in the array we need to find all possible contiguous subarray to the right of it. Code - class Solution { public: int maxSubArray(vector<int>& nums) { ...

Dec 4, 2021 · 3 min read · suraj26.hashnode.dev  
Read the article

-   [#interview](https://hashnode.com/tag/interview)
-   [#problem-solving-skills](https://hashnode.com/tag/problem-solving-skills)

## Written by

[Suraj Yadav](https://hashnode.com/@Suraj26)

@Suraj26

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

Crawling in the world of Computer Science.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
