Daily-Coding-DS-ALGO-Practice icon indicating copy to clipboard operation
Daily-Coding-DS-ALGO-Practice copied to clipboard

Sliding Window maximum using Deque

Open KushagraJain58-cmd opened this issue 3 years ago • 3 comments

Aim

Want to add a solution of "Sliding Window maximum using Deque" Kindly assign me this problem. I would like to add my solution to this problem in C++ easily and efficiently using Deque. Link to the problem: https://www.geeksforgeeks.org/sliding-window-maximum-maximum-of-all-subarrays-of-size-k/

Details

Given an array and an integer K, find the maximum for each and every contiguous subarray of size k.

Examples :

Input: arr[] = {1, 2, 3, 1, 4, 5, 2, 3, 6}, K = 3 Output: 3 3 4 5 5 5 6

Programming language

  • [ ] C
  • [ ] C++
  • [ ] Java
  • [ ] Python

KushagraJain58-cmd avatar Jul 17 '21 12:07 KushagraJain58-cmd

lease assign me this issue under LGM-SOC'21 @ravikr126

KushagraJain58-cmd avatar Jul 17 '21 12:07 KushagraJain58-cmd

Please assign me this issue under LGM-SOC'21 @ravikr126

KushagraJain58-cmd avatar Jul 19 '21 13:07 KushagraJain58-cmd

PLEASE ASSIGN ME THIS ISSUE @ravikr126 @Saurabh4626 @Ayush7614 in java

Rounak-chauhan avatar Jul 20 '21 18:07 Rounak-chauhan