From da17058fed465cd8f12c0939b75c73fed028f900 Mon Sep 17 00:00:00 2001 From: Prerita Saini <149650718+preritasaini1@users.noreply.github.com> Date: Mon, 28 Oct 2024 15:07:52 +0530 Subject: [PATCH] Create SlidingWindow.java Added Sliding Window basic concept in java. --- Data Structures/SlidingWindow.java | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 Data Structures/SlidingWindow.java diff --git a/Data Structures/SlidingWindow.java b/Data Structures/SlidingWindow.java new file mode 100644 index 0000000..5811136 --- /dev/null +++ b/Data Structures/SlidingWindow.java @@ -0,0 +1,28 @@ +package com.company.basic; + +public class slidingwindow { + public static void main(String[] args) { + int arr[]= {5,10,1,88,6,10}; + int k=2 ; + int sum=0; + int maxm=0; + for(int i=0;i