Number of Subsequences That Satisfy the Given Sum Condition (LeetCode)

  Рет қаралды 4,617

Jyotinder Singh

Jyotinder Singh

Күн бұрын

Пікірлер: 14
@2radix774
@2radix774 Жыл бұрын
At first I didnt understand those exponents, why for example for nums = [2, 3, 4, 4, 6 ,7] and target =12 you add 32 to the count at first iteration but now I understand that point is that since 2+7 is less than 12, you take number of all possible subsequences of [3, 4, 4, 6 ,7] (including the empty set) and then you add elemnt "2" to each of them, which makes the empty set now equal to [2], and you are guarenteed that each of the subsequences has the smallest elemnt of 2 and biggest at most 7 (there is 32 of them) really helpfull video, thank you,
@crosswalker45
@crosswalker45 Жыл бұрын
no.. empty set is not accepted.
@akshitmangotra5370
@akshitmangotra5370 Жыл бұрын
Liked the precomputation part and loved the explanation. Small, short and crisp Thankyou
@ogoubah
@ogoubah Жыл бұрын
Really great explanation!! Thank you
@amitchaudhary7745
@amitchaudhary7745 2 жыл бұрын
best explanation available on yt
@RiteshKumar-sx7ng
@RiteshKumar-sx7ng 9 ай бұрын
thank you very much!! Bhaiya.
@paritoshkulk
@paritoshkulk 4 жыл бұрын
Saved my interview! Thanks man!
@maneeshapanu
@maneeshapanu Жыл бұрын
Very beautifully explained sir !!
@yuhaokong
@yuhaokong 4 жыл бұрын
really like the explanation on the permutation part, good job!
@JyotinderSingh
@JyotinderSingh 4 жыл бұрын
Thank you! I'm glad this helped! Be sure to subscribe for more content :D
@shrirambalaji2915
@shrirambalaji2915 Жыл бұрын
Thank you
@gourabbhattacharjee2128
@gourabbhattacharjee2128 Жыл бұрын
Solid ans superb explanation!
@17_it_sidhartsingh58
@17_it_sidhartsingh58 Жыл бұрын
I am missing something, would anyone explain... Did you count the '8', the last element from the explained example? after decreasing the right pointer ... We need to count it as one subsequence of sum
@EmiNBega
@EmiNBega Жыл бұрын
bro, min element is 8 and the max element is 8, 8+8 is greater than 10, and we dont take it.
I solved 541 Leetcode problems. But you need only 150.
7:42
Sahil & Sarra
Рет қаралды 2,4 МЛН
Remove K Digits - Leetcode 402 - Python
14:36
NeetCode
Рет қаралды 64 М.
Players push long pins through a cardboard box attempting to pop the balloon!
00:31
coco在求救? #小丑 #天使 #shorts
00:29
好人小丑
Рет қаралды 59 МЛН
Add Binary (LeetCode) | Adding Binary Numbers as Strings Explained
12:43
2 Years of C++ Programming
8:20
Zyger
Рет қаралды 4,1 М.
How to STUDY so FAST it feels like CHEATING
8:03
The Angry Explainer
Рет қаралды 1,9 МЛН
Fast Inverse Square Root - A Quake III Algorithm
20:08
Nemean
Рет қаралды 5 МЛН
5 Math Skills Every Programmer Needs
9:08
Sahil & Sarra
Рет қаралды 1,1 МЛН
Profitable Schemes - Leetcode 879 - Python
21:32
NeetCodeIO
Рет қаралды 8 М.
Continuous Subarray Sum - Leetcode 523 - Python
14:56
NeetCode
Рет қаралды 72 М.
Number of 1 Bits - Leetcode 191 - Python
11:59
NeetCode
Рет қаралды 138 М.
Players push long pins through a cardboard box attempting to pop the balloon!
00:31