This is one of the most commonly used interview question solution techniques. In this video I tried to implement window sliding technique on a commonly asked coding interview question which is:
"Given an array of integers of size ‘n’. Calculate the maximum sum possible for ‘k’ consecutive elements in the array."
The code is at: https://gist.github.com/scaryguy/289f...
You can find similar questions from "Recommended Posts" section of this link: https://www.geeksforgeeks.org/first-n...
I highly recommend this article:
Coding Interviews and Snake (the game) Have This One Thing in Common - https://blog.pramp.com/coding-intervi...