No video

Count Number of Nice Subarrays | Leetcode 1248

  Рет қаралды 780

Ayushi Sharma

Ayushi Sharma

Күн бұрын

Пікірлер: 7
@_hustler_boy
@_hustler_boy 3 сағат бұрын
aapne kitne coding questions kre the and kya important topic pe jyada focus kiya tha
@097mazharsaifi8
@097mazharsaifi8 2 ай бұрын
Hey ma'am, I have a doubt about the code you posted for finding a subarray with sum 𝑘. Why are you checking if the sum is present in the map before or not, and then initializing it with 1 if it's not present and incrementing it if it is? There's no need to initialize it; just increment it without checking because the map already maps it to 0. i solved this one doing this and finds no error...if(m.find(sum)!=m.end()){ m[sum]++; }else{ m[sum]=1; } here's your code
@yashmundra8497
@yashmundra8497 2 ай бұрын
Was waiting for your video, but had solved on my town this time🤭🔥🔥
@AyushiSharmaDSA
@AyushiSharmaDSA 2 ай бұрын
that's awesome :)
@rushidesai2836
@rushidesai2836 2 ай бұрын
Congrats for Microsoft Ayushi!
@AyushiSharmaDSA
@AyushiSharmaDSA 2 ай бұрын
thank you :)
@rishiraj2548
@rishiraj2548 2 ай бұрын
👍👍
12. Sort Colors | Arrays - Medium | Learn DSA | Leetcode 75
13:34
Depth First search | C++ | Java | Python | Graphs Algorithm
31:55
КТО ЛЮБИТ ГРИБЫ?? #shorts
00:24
Паша Осадчий
Рет қаралды 4,3 МЛН
Maximum Distance in Arrays | Leetcode 624 | Greedy
10:39
Ayushi Sharma
Рет қаралды 1 М.
USA Nice Olympiad Exponential Equation | Solve for X
6:38
Learncommunolizer
Рет қаралды 10 М.