Count Subarrays with sum less than K | Interviewbit DSA Question | Explained with Python in Hindi

preview_player
Показать описание
Interviewbit - counting-subarrays

Timecodes:
0:00 Problem Statement
2:25 Brute force Aprroach O(n^2)
5:22 Implementing Brute force Approach
10:35 Two Pointer Approach O(n)
19:04 Implementing Two Pointer Approach

#dsa #competitiveprogramming #placement #iit #interview #leetcode #hackerrank #hindi #coding #competitivecoding #twopointer #slidingwindow #simple #efficiency
Рекомендации по теме
Комментарии
Автор

I was stuck in the question for so long, i referred every video for this but they simply asked to add j-i+1 in the counter but none explained the logic behind it. Thanks a lot for your comprehensive explanation. Eagerly waiting for the next video.

pankajkumar-dors
visit shbcf.ru