
Explore brute force and sliding window approaches to compute averages of all contiguous subsets of size three in an input array, and implement the Python solution.
Explore finding the maximum sum of a fixed-size sliding window, updating the max as you slide through the input, with pseudocode and Python code illustrating how to compute the result.
Explore sliding window techniques for string problems, expanding from earlier number-input tasks to string inputs and string-based challenges.
Explore the longest substring with m unique characters using a sliding window and a hash map to track counts, updating the max length as the pointers move.
Tackle a challenge section problem labeled fruit problem, read the problem and try to solve it, with solution discussion in the next section and guidance from previous videos.
Apply the sliding window technique to the fruit problem, using the same solution as the longest substring problem to maximize the number of fruit in a list.
Explore how to find the length of the longest substring without repeating characters using a sliding window and a hash map, updating the start pointer and indices.
Find all anagrams of a given pattern in a string using the permutation approach and return their starting indices, as shown by examples like 0 and 6.
Identify all substrings formed by concatenating the given equal-length words and return their starting indices, using a sliding window and hash map to enforce exact word frequencies.
Join the solve together section to tackle a mix of problems beyond strings and numbers and practice solving them collaboratively after attempting the question on your own.
Apply a sliding window approach to the best time to buy and sell stock, maximizing profit by tracking the minimum price before a future maximum, returning zero if no profit.
Apply the sliding window approach to count subarrays with exactly k distinct integers by computing at most k and subtracting at most k-1 using two-pointer techniques.
Apply a sliding window strategy to minimize swaps by grouping all ones in a binary array, with window size equal to the ones count and zeros counted for swapping.
Apply a sliding window approach to replace the shortest substring so that each of the four characters q, w, e, r appears equally n/4 times, balancing the string.
Learn to count subarrays with exactly k odd numbers using a sliding window approach, counting at most k and subtracting at most k-1 to obtain precise results.
It's usually difficult to start preparing for coding interviews immediately with limited knowledge of Data Structures and Algorithms. Through grinding on leetcode for FAANG interviews, candidates have started decoding the patterns behind the questions which instantaneously directs them to apply the most efficient logic interviewer is testing us on. Understanding the interview questions based on the patterns and practicing problems having the same patterns helps prepare for interviews faster, with less effort, more confidence, with less chance of forgetting and/or getting confused during the interviews. Interviewers usually test us on multiple patterns of coding interviews. This course covers one type of pattern where we discuss most types of problems that can be solved using sliding window. It’s a very common pattern asked in interview questions. The plan is to create a series of such courses which will cover all the patterns asked in the interview. Completing this course will strong foundation for sliding window. I have tried to make this course brief and have divided the course to 4 hours of video lectures and 4 hours of self-practice assignments, since there are quite a few patterns and candidate may not want to dedicate all time to learning just one pattern.