862. Shortest Subarray with Sum at Least K | 4 Approaches | Min Heap | Monotonic Deque

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

Aryan Mittal

Aryan Mittal

Күн бұрын

Пікірлер: 30
@amanpaliwalvlogs6860
@amanpaliwalvlogs6860 Ай бұрын
Radhe Radhe ❤
@ARYANMITTAL
@ARYANMITTAL Ай бұрын
Radhe radhe sir ❤️
@jainkumar3919
@jainkumar3919 Ай бұрын
Hi bro welcome back. I have a question why you changed code snippet from cpp to java in your recent videos? Any special reason? Plz answer.😊
@ARYANMITTAL
@ARYANMITTAL Ай бұрын
I also was very fond of cpp, due to its speed & easiness to write fast code. But when i started giving Interviews (videos coming soon), saw a new trend, companies now are asking LLD ( this LLd is not just simple oops, design pattern, parking lot kind of problems, nahh nahh) They are mixing LLD with DSA, design a splitwise app, design an LRU cache. Now you might say, okay Aryan, do oops in cpp, whats the big deal?? But then as a next follow up in the same LLD problem, they will have a follow up, now handle concurrency here, and i swear do to multithreading in cpp was a pain, like a real pain. While java has so many concurrent data structures, synchronized keyword, Semaphore by default, Futures, and list goes on and on and on. So i’ll break it down for you: Only DSA : Cpp > java = python Only LLD : Java > cpp > python Only Multithreading : Java >>> cpp > python Why in LLD, java is at the top, because of what everyone understands (when i say everyone, i actually mean the interviewer) You guys are young abhi, and haven’t faced LLD & HLD at that level, but just wanted to make you comfortable with Java (cuz its actually God😂) I also gave beginning interviews in cpp, but soon i got so fed up with cpp due to multi threading, i decided to jump to java & gave all interviews in java. (Everything) I know its long to write the code, but for that the only solution is increasing typing speed. Again, we have multiple other languages like Go, which are god in multi threading. But i wanted a middle ground, which can help me forever. Its the reason, i ended up switching to java, but i am not saying you guys should also do. (In a week’s time, i’ll also start posting all languages code, so code language will not be an issue anymore)🤗
@Flux-e4y
@Flux-e4y Ай бұрын
@@ARYANMITTAL ooh cool , crazy
@user-uw5xd2ih1i
@user-uw5xd2ih1i Ай бұрын
@@ARYANMITTAL If a beginner who codes in cpp wants to learn lld+hld in Java, which course or documentation should be preferred
@rajakumar9956
@rajakumar9956 Ай бұрын
I switched to java, 1 year ago, exactly for the same reason!
@chiraggill2940
@chiraggill2940 Ай бұрын
​@@ARYANMITTAL are you also planning to bring some amazing content wrt LLD for intern/job interviews in near future ???
@zoozoo24
@zoozoo24 Ай бұрын
Please take care of your mic. Apart from that great video. Welcome back
@Its_Shubham_Negi
@Its_Shubham_Negi Ай бұрын
aryan bhaiya todays's lc 4th q is way hard!!
@rishabhjain4446
@rishabhjain4446 Ай бұрын
Great video bro!
@user-bh9ts7db5r
@user-bh9ts7db5r 29 күн бұрын
@ARYANMITTAL Hello Aryan Welcome Back! This is a positive critique. First of all,you are moving the screen too much which is making it hard to understand it. I think it was better earlier,like you showed a complete screen and didn't change the focus so much coz most of the part you wanted to say was on the same screen (basically moving the screen too much) Secondly,your image,some of the things that you are writing are not visible coz of the image (same again I prefer the earlier version)
@vinsin4619
@vinsin4619 Ай бұрын
really helpful video, but why did you switch to java as in past videos you taught pbds and other features of cpp, although the logic remains same but reading these syntax is bit difficult that's all. Amazing to see you making videos again.
@ishmeetsinghsaluja4089
@ishmeetsinghsaluja4089 Ай бұрын
Hi, can you explain why we considering the prefix sum with the lowest value?. If we are at prefix[j], we have to calculate prefix[i] such that prefix[j] - prefix[i] >= k which means prefix[i]
@RamakrishnaFM-he6rs
@RamakrishnaFM-he6rs Ай бұрын
first person to view
@ARYANMITTAL
@ARYANMITTAL Ай бұрын
🫡🫡🙏
@groot257
@groot257 Ай бұрын
Only thing I was not able to think of was, once an index is used it already gave its optimal solution and cant by used later.
@Anonymous____________A721
@Anonymous____________A721 29 күн бұрын
We dont want java We want in cpp only 💘
@rishurana9655
@rishurana9655 29 күн бұрын
why we require the smallest value of ps[x] and why not greatest value such that ps[j]-ps[x]>=k , can somebody explain?
@abhimanyuambastha2595
@abhimanyuambastha2595 Ай бұрын
Your video is blocking some stuff in the video, noticed this is your newer videos. Please see we might miss something important
@sandeepyadav-es9yz
@sandeepyadav-es9yz Ай бұрын
change the mic bro its too distracting
@ARYANMITTAL
@ARYANMITTAL Ай бұрын
Ohh shoot😢, thank you so much for pointing it out, i am really sorry, i realized that this dji mic when used & charged simultaneously gives this kind of noise, apologies for this video, next time i’ll for sure take care of this🫂❤️
@satendra6200
@satendra6200 Ай бұрын
Aare are you alive? password bhol gya tha kya bhai youtube kaa?
@ARYANMITTAL
@ARYANMITTAL Ай бұрын
😂😂❤
@harshalyallewar
@harshalyallewar Ай бұрын
pleaes dont increase speed of video by yourself in while editing
@dakshchandore6435
@dakshchandore6435 Ай бұрын
annoying backgroud music.
Леон киллер и Оля Полякова 😹
00:42
Канал Смеха
Рет қаралды 4,7 МЛН
Cat mode and a glass of water #family #humor #fun
00:22
Kotiki_Z
Рет қаралды 41 МЛН
Shortest Subarray with Sum at Least K - Leetcode 862 - Python
27:57
When Optimisations Work, But for the Wrong Reasons
22:19
SimonDev
Рет қаралды 1,1 МЛН
523. Continuous Subarray Sum | Prefix Sums | Hash Map
11:52
Aryan Mittal
Рет қаралды 7 М.
Shortest Subarray with Sum at Least K | Leetcode 862
21:31
Techdose
Рет қаралды 38 М.
Леон киллер и Оля Полякова 😹
00:42
Канал Смеха
Рет қаралды 4,7 МЛН