Ayush7614 / Daily-Coding-DS-ALGO-Practice

A open source project🚀 for bringing all interview💥💥 and competative📘 programming💥💥 question under one repo📐📐
https://daily-ds-algo.github.io/DS-Algo-Website/
MIT License
321 stars 474 forks source link

Maximum for every window of size K . #161

Closed puneetkaur2929 closed 3 years ago

puneetkaur2929 commented 3 years ago

Maximum in each window of size K

Problem statement find the maximum for each and every contiguous subarray of size k Example: Given : Array a[]={2,5,1,8,3} & K (i.e. Window Size)=2 Output= 5 5 8 8

Hey @Ayush7614 I would like to solve this issue using sliding window technique + Deque.

Language : I am interested to work in C++.

please assign this issue to me under LGM-SOC 21.

github-actions[bot] commented 3 years ago

Hi thanks for creating your first issue at Daily-Coding-DS-ALGO-Practice, hope you followed the guideline.

Ayush7614 commented 3 years ago

Go Ahead @puneetkaur2929