+ 1

Maximum Subarray Sum

I need help to solve Maximum Subarray Sum , I tried using python but it's showing timeout. You can check my code and all your suggestions is much appreciated😊🙏❤ https://code.sololearn.com/ce1xQIGD2eXR/?ref=app

17th Nov 2020, 4:10 AM
Mohd Aadil
Mohd Aadil - avatar
1 Odpowiedź
+ 3
Here's an example of max subarray sum of size k. If this isn't what you're after exactly you should be able to modify it to work with what you need. You should look into the sliding window techniques (including growing and shrinking). https://code.sololearn.com/cPSvHrRnQ7bB/?ref=app
17th Nov 2020, 7:46 AM
ChaoticDawg
ChaoticDawg - avatar