filmov
tv
Find the Number of Contiguous Subarrays With a Given Sum in Python
![preview_player](https://i.ytimg.com/vi/HsA2gWVIOx0/maxresdefault.jpg)
Показать описание
This video shows you how to use prefix sums and sliding windows to count the number of subarrays with a given sum in Python 3.
Be sure to like, comment, and subscribe!
0:00 Explaining the algorithm
4:52 Implementing the algorithm
7:26 Testing the algorithm
Adapted from CSES:
Be sure to like, comment, and subscribe!
0:00 Explaining the algorithm
4:52 Implementing the algorithm
7:26 Testing the algorithm
Adapted from CSES: