tag:blogger.com,1999:blog-4146517583247291816.post7102845487949298672..comments2020-06-18T00:08:26.598-07:00Comments on Programmer Coach: Interview Pearls: Sliding WindowVladhttp://www.blogger.com/profile/05043047842260065661noreply@blogger.comBlogger3125tag:blogger.com,1999:blog-4146517583247291816.post-8329411447704752442020-06-18T00:08:26.598-07:002020-06-18T00:08:26.598-07:00can u explain by taking days,week,month data using...can u explain by taking days,week,month data using sliding window concept sir....<br />Eg: w1=(d1=40,d2=30,d3=42,d4=30,d5=60,d6=80,d7=120)..........SATHYENDRAKUMARhttps://www.blogger.com/profile/10528640418844674555noreply@blogger.comtag:blogger.com,1999:blog-4146517583247291816.post-14809741304025174382020-06-04T14:50:13.939-07:002020-06-04T14:50:13.939-07:00It can be easily solved using the fact you can cal...It can be easily solved using the fact you can calculate number of subarrays with <K and with <=K distinct elements. Which is very close to what you have described.NotImplementedhttps://www.blogger.com/profile/05623730830290360314noreply@blogger.comtag:blogger.com,1999:blog-4146517583247291816.post-55995545188076787022020-05-13T07:50:32.475-07:002020-05-13T07:50:32.475-07:00Very nice and intuitive explanation. I never thoug...Very nice and intuitive explanation. I never thought that I can include the logic of prefix into a sliding window problem. Could you let me know what led you to this thought process? katyayan vedanthttps://www.blogger.com/profile/04354853015022932686noreply@blogger.com