SarthakKeshari / Java-Questions-and-Solutions

This repository aims to solve and create new problems from different spheres of coding. A path to help students to get access to solutions and discuss their doubts.
MIT License
46 stars 95 forks source link

Maximum Subarray #391

Closed nik132-eng closed 2 years ago

nik132-eng commented 2 years ago

Enter your question -

Given an integer array nums, find the contiguous subarray (containing at least one number) which has the largest sum and return its sum.

A subarray is a contiguous part of an array.

Enter link to the question(if question belongs to any online platform) -

https://leetcode.com/problems/maximum-subarray/

Tags for the question(eg - Array, Basic, Stack, etc.) -

Array

SarthakKeshari commented 2 years ago

@nik132-eng, Kindly go through the probable folders of the repository to check if this has already been addressed.

nik132-eng commented 2 years ago

ok sir