We’re continuing our common coding interview patterns series by focusing on the sliding window pattern.
Check out our video intro on this pattern: • Cracking Common Interv...
The Challenge:
Given an array of positive numbers and a positive number s, find the length of the smallest contiguous subarray whose sum is greater than or equal to s. Return 0 if no such subarray exists.
Video Overview:
1:24 Overview of what it is
2:54 The problem
5:28 An example
14:42 Algorithm summary
16:55 Coding a javascript implementation
32:52 Recap
Please subscribe to our channel!
What types of videos would you like to see next? Let us know in the comments.
Additional Resources:
* Practice hundreds of real coding challenges at coderbyte.com/
* Need more practice? Check out our channel for more videos on preparing for a coding interview / coderbytedevelopers
2 окт 2024