523. Continuous Subarray Sum | Prefix Sums | Hash Map

  Рет қаралды 6,704

Aryan Mittal

Aryan Mittal

Күн бұрын

Пікірлер: 20
@ARYANMITTAL
@ARYANMITTAL 5 ай бұрын
When are you ready for FAANG (Don't repeat these mistakes) - kzbin.info/www/bejne/nmiUiWSMgtRogJI
@italk-gj5kk
@italk-gj5kk 5 ай бұрын
thanks bro for providing understable solution in 10-20 mins everyday... helps a lot
@adnanemezrag3809
@adnanemezrag3809 15 күн бұрын
Bro you really explained it very well. Thank you very much.
@AnilKumar-d6y1l
@AnilKumar-d6y1l 5 ай бұрын
This Channel Deserves a lot of subscribers , but don't know , why it is on 41K , the quality of content is top notch in a short video length , without a lag , lots of respect brother.
@youtubeuserlovesyoutube2207
@youtubeuserlovesyoutube2207 5 ай бұрын
love you aryan, always love your intuitive solutions where you are not just explaining the code but arriving there ...
@Aditya-tz5pi
@Aditya-tz5pi 5 ай бұрын
I tried the recursive and backtracking method but was able to pass only 94/99 testcases after that i thought for the hashing method but was clueless so landed here to know the intuition and was surprised to see the way you have explained it .
@benzene___
@benzene___ 5 ай бұрын
too good
@ajayc815
@ajayc815 5 ай бұрын
✌✌✌✌
@IK-xk7ex
@IK-xk7ex 5 ай бұрын
The brute force approach won't work here because `nums.count == 1e9`, and we will receive TLE because of `n^2` time complexity.
@lavanya_m01
@lavanya_m01 5 ай бұрын
this solution is not brute force btw
@SIDDHANTJAIN-tx7bo
@SIDDHANTJAIN-tx7bo 5 ай бұрын
i stored the remainder inside the map and then checked
@Samtoosoon
@Samtoosoon 5 ай бұрын
Cont subarray sum
@HarizibamV
@HarizibamV 5 ай бұрын
Hi, Kindly share codeforce contest solution.
@ARYANMITTAL
@ARYANMITTAL 5 ай бұрын
Yes sir, i really really wanted too, but truely speaking codeforces contests are mostly on weekdays at 8pm & i come back from office at 11pm, thus even if i plan to start it, it will be impossible to continue, as i can't cover everything in 1 weekend (and that too, it will be too late) 🥺🥹
@dharyajasuja11
@dharyajasuja11 5 ай бұрын
@@ARYANMITTAL can you please share good resources for solutions instead of tutorial because its hard get intuition from tutorials of cf
@NishantVerma-fj6sp
@NishantVerma-fj6sp 5 ай бұрын
Hi, Kindly check this out also class Solution { public: bool checkSubarraySum(vector& nums, int k) { int n = nums.size(), prefixSum=0; unordered_map mp; mp[0]=0; for(int i =0;i
@abhiiiman
@abhiiiman 5 ай бұрын
Worst explanation
@ITACHIUCHIHA-dr8sz
@ITACHIUCHIHA-dr8sz 5 ай бұрын
skill issue
@jevinmakwana6811
@jevinmakwana6811 5 ай бұрын
bro don't take me wrong but if you practice dsa daily, at least your intuition regarding the topic is matched then no explanation will be Bouncer anymore. jump to solution only after getting little intuition else watch the video 2-3 times until you get it. Ya He's a bit level ahead of us so he has missed some basic explanations :)
@abhiiiman
@abhiiiman 5 ай бұрын
@@jevinmakwana6811 thanks for this suggestion man, I do appreciate it. Also I've solved this on my own using prefix sum got 93/99 test case passed at first 10 mins of solving but I was missing the corner cases and got to know about the map approach too which is really helpful but the way this guy has explained I didn't liked it at all tbh that's why I felt commenting generally I don't do it often.
974. Subarray Sums Divisible by K | PrefSum | Not an Easy Problem
17:19
Симбу закрыли дома?! 🔒 #симба #симбочка #арти
00:41
Симбочка Пимпочка
Рет қаралды 5 МЛН
БУ, ИСПУГАЛСЯ?? #shorts
00:22
Паша Осадчий
Рет қаралды 3 МЛН
Continuous Subarray Sum - Leetcode 523 - Python
14:56
NeetCode
Рет қаралды 72 М.
525. Contiguous Array | Prefix Sums | Hash Tables | 3 Approaches
18:30
Subarray Sum Equals K - Prefix Sums - Leetcode 560 - Python
15:19
Kadane's Algorithm | Maximum Subarray Sum | Finding and Printing
20:09
take U forward
Рет қаралды 491 М.
TCP/IP for Programmers
3:03:31
Eli the Computer Guy
Рет қаралды 229 М.