Astrodevil / Programming-Basics

This Repository Contains source codes of various programming languages. Please Contribute to make this Useful.
https://astrodevil.github.io/Programming-Basics/
MIT License
72 stars 121 forks source link

Create Maximum sum subarray of size k (sliding window).cpp #339

Closed blaze116 closed 3 years ago

blaze116 commented 3 years ago

Hello, I've added code for the problem - finding the maximum sum of a subarray of size k using the sliding window approach. Kindly merge this PR under hacktoberfest accepted tag. Let me know if there are any issues. Thank you!!

blaze116 commented 3 years ago

Yeah, I've checked, this question is not there. So I'll add there and make a PR.