Guys. He'll release strings eventually don't worry. Let him chill. He's done more than enough for us already. Thank u so so much bro
@RajNamdev_195 ай бұрын
Yeah We want it bro
@raviteja_v76 ай бұрын
There is a chance of runtime error if length of size array is greater than greed array and all the children got cookies before the loop ends. Ex. g= {1,2}, s= {1,2,3}. We can insert if(r==n) return n; condition after the existing if condition or we can modify the while condition to (l
@manavpatnaik2222 ай бұрын
Exactly. Thanks for pointing it out.
@IITian-NITian_03052 ай бұрын
brother by doing simple change in the while code we can remove it indexoutofbound exception like: while(l
@sujeetpawar51626 ай бұрын
correction in while add one codition for r
@ritikkumarsingh59026 ай бұрын
Striver, your DSA Sheet is absolutely phenomenal! It's been an invaluable resource for mastering data structures and algorithms. Looking forward to the remaining topics, especially the much-anticipated sections on strings and heaps. Thanks for all your hard work!
@sano96336 ай бұрын
bro why it's showing unauthorised after i sign in On takeuforward page
@ritikkumarsingh59025 ай бұрын
May be server issue
@bhuvaneswarjakka6 ай бұрын
Strings playlist please striver
@badcode81396 ай бұрын
Yup ++
@AkshitChaudhary-vx8iw6 ай бұрын
Next wahii h
@RajNamdev_195 ай бұрын
@@AkshitChaudhary-vx8iw aapko kaise pta bhai really. Shall I wait for it??
@AkshitChaudhary-vx8iw5 ай бұрын
@@RajNamdev_19 striver ne tweet Kiya tha👍
@KartikeyTT5 ай бұрын
@@AkshitChaudhary-vx8iw next stack and queue uske bad heap uske bad recursion aur last me string
@shibainu75006 ай бұрын
Thank you so much striver for these priceless premium lectures. Please release the strings series before the placement season begins.
@tharabhaigamer824 ай бұрын
The best thing about striver that no one talks about is that there are no adds on his channel in between .
@akshatchaturvedi74076 ай бұрын
I was watching one of your sliding window videos, and mom saw you and said ki kitni kamzor h ye ladka , 😅😅😅😂😂😂, then I told my mom about you and your achievements.❤
@emc2xenon466 ай бұрын
mom momy
@mehekswe5 ай бұрын
My mom is like, why do you watch him so much? What is he even teaching you? Can you please go to sleep 🙁😂😂😂
@moonlight-td8ed5 ай бұрын
@@mehekswe fr lol
@Jyotigupta-vs4mz3 ай бұрын
mom is mom😁,my mom is planning to marry with him 😆striver if you reading , i 'd love to accept the offer🤪💌
@Reyna-yj6vo3 ай бұрын
@@Jyotigupta-vs4mz im better than striver
@mohammadaseem78235 ай бұрын
We need to add the condition (r
@GungunSaluja-sy6br5 ай бұрын
yes we should
@ThakurCricket186 ай бұрын
STARTED A2Z-DSA COURSE : ->STARTED IN JUNE 2023: RECURSION & BACKTRACKING TREES GRAPH DP ARRAYS BINARY SEARCH TILL OCTOBER COMPLETED ALL ABOVE TOPICS ? WAITED ONE MONTH? DECEMBER->LINKEDLIST FEBRUARY->BITMANIPULATION MARCH,APRIL->ADVANCE ARRAY TOPICS MAY->GREEDY STRING & STACK QUEUES ARE DONE BUT STILL WAITING FOR STRIVER TO LAUNCH IT AS WELL: WAITING FOR SYSTEM DESIGN & COMPETITIVE PROGRAMMING VIDEOS AS WELL THAT IS TAUGHT BY YOU THANK YOU SO MUCH FOR THIS AMAZING CONTENT (striver)?
@jasvanth_AA6 ай бұрын
Yes sir, because of you we are doing extremely well 😊 Thank you so much ❤
@SowjanyaG-yk3cc4 ай бұрын
in the if statement , && r
@349_rahulbhattacharya62 ай бұрын
bhiaya the code in the article is not correct ...it should have been this while (l < m && r < n) { // If the current cookie can // satisfy the current child's greed if (greed[r]
@HarshKrSingh5 ай бұрын
strings playlist is the ultimate thing needed.
@srishtipandey60686 ай бұрын
Thank you sooo much @striver. Wanted this since long.....
@Logeshwar-s7m6 ай бұрын
thank u striver i've asked you many times.but finally the playlist is here.and also post stack and queue playlistand then please make more than 60 videos on greedy.Even my aim to hit the google.I hope you will help me out to crack it.
@_anteikuu_24006 ай бұрын
Babe wake up! Another striver playlist dropped 🗣️🗣️
@ParkersFact_Finder6 ай бұрын
Put string playlist also
@shreerangaraju10136 ай бұрын
Thank you so much! Was looking forward to greedy series
@peakyblinderzz6 ай бұрын
String playlist please
@yashhokte102015 күн бұрын
So i just came here understand the question and able to do it myself: Here is the code : class Solution { public int findContentChildren(int[] g, int[] s) { Arrays.sort(g); Arrays.sort(s); int i = 0, j = 0, size1 = g.length, size2 = s.length, res = 0; while (i < size1 && j < size2) { if (g[i]
@akshadpaithankar67402 ай бұрын
I think there's a mistake in the A2Z DSA sheet. This question has been added to the "DP on Subsequences" portion, that too in HARD category lol...
@Cool962676 ай бұрын
Thankyou so much Striver for all you efforts throughout in delivering us so much valuable content. Any student / working professional can now be able to transition their career without paying money for courses. Would also like your insights on the point : While preparing for interviews most of the aspirants are going through the videos solely and solving the question after completely watching the video. And also are feeling lazy trying to solve the question on our own. What is the best way to complete any topic without being lazy and how should an aspirant approach any topic/playlist?
@atulwadhwa1926 ай бұрын
Most awaited playlist for me :)
@Shishir.4356 ай бұрын
just a small correction in the while loop condition while(l
@riteshbisht946 ай бұрын
Strings playlist 💫
@KartikeyTT5 ай бұрын
Alternate recursive solution in C++ class Solution { public: int findContentChildren(vector& g, vector& s) { sort(g.begin(), g.end()); sort(s.begin(), s.end()); return maxContentChildren(g, s, 0, 0); } private: int maxContentChildren(const vector& g, const vector& s, int i, int j) { if (i == g.size() || j == s.size()) { return i; } if (s[j] >= g[i]) { // Either we give the current cookie to the current child return maxContentChildren(g, s, i + 1, j + 1); } else { // Or we skip the current cookie return maxContentChildren(g, s, i, j + 1); } } };
@shreedevimg4 ай бұрын
the first problem i solved before waching his vedio 😊
@Anandumbb5 ай бұрын
class Solution { public: int findContentChildren(vector& g, vector& s) { int m = g.size(); int n = s.size(); int l = 0, r = 0; sort(g.begin(), g.end()); sort(s.begin(), s.end()); while (r < m && l
@Lakshya-f4l5 ай бұрын
Thanks
@badcode81396 ай бұрын
Bhai takeuforward ke greedy playlist ko please update kar do as along u make video . Great content ❤
@shauryatomer1058Күн бұрын
Thanks for another great video
@niii57155 ай бұрын
Update these links in the the sheet as well striver. This is great
@RohitKumar-nx8pd2 ай бұрын
class Solution { public: int findContentChildren(vector& g, vector& s) { cin.tie(nullptr) -> sync_with_stdio(false); sort(g.begin(),g.end()); sort(s.begin(),s.end()); int count = 0; int p = 0; //g --> children int q = 0; //s --> cookie while(p
@mukeshrawat88166 ай бұрын
Lec 1 Done and Understood.
@MJBZG3 ай бұрын
solved it before watching
@abhishekkumar-fe8lw4 ай бұрын
why is video in the dynamic programming section on TUF
@Rohith__Dev3 ай бұрын
Is there any prerequesties to start this Greedy Algo's Playlist ?? help me out !!
@UECAshutoshKumar2 ай бұрын
Thank you 🙏
@59_sujatachandra766 ай бұрын
vhaiya tusi great ho.. thanks alot ..🥰
@pranithreddy6 ай бұрын
Bro is back 🤩🤩🥳
@raghavmanish245 ай бұрын
started today this playlist ......05/06/2024.....i will comment this comment when i complete this greedy algorithm series
@srishtipandey60685 ай бұрын
#striver heaps playlist is needed using Max heap within this week. Please....
@aviralsingh21636 ай бұрын
bhaiya please string ki nikal dijiye bhaut problem hoti solve karne me string me logic bhi nhi bnte please bhaiya
@kathakalisaha97354 ай бұрын
thanks sir the video was very helpful
@kaichang8186Ай бұрын
understood, thanks for the video
@jeelsojeetra64686 ай бұрын
You are awesome bro thank you so much ❤
@Adarsh_agrahari6 ай бұрын
I easily think about that problem may be due to doing cp.
@user-rdr17123 ай бұрын
var findContentChildren = function (g, s) { s.sort((a, b) => a - b); g.sort((a, b) => a - b); let i = g.length - 1, j = s.length - 1, count = 0; while (i >= 0 && j >= 0) { if (s[j] >= g[i]) { j--; count++; } i--; } return count; };
@samitkumar186 ай бұрын
Please string
@saimyousuf21083 ай бұрын
Strings please
@ITSuyashTiwari4 ай бұрын
we want heap playlist...😊
@Enigm.1.2 ай бұрын
y us this showing in a-z dp playlist????
@AvinashJha-zi5cz5 ай бұрын
Heap playlist please
@KartikeyTT5 ай бұрын
C++ solution of above video class Solution { public: int findContentChildren(vector& g, vector& s) { sort(g.begin(), g.end()); sort(s.begin(),s.end()); int left=0; int right=0; while(left
@teeyaojha43655 ай бұрын
please add link to this video in your a2z sheet, it is not there. only says coming soon
@vishalsagar14374 ай бұрын
it should be l < m && r < n
@MohitKumar-o3l1u3 ай бұрын
Understood !!
@SagarSharma-ys4lu6 ай бұрын
Make playlist on heap
@prerakunhale506 ай бұрын
please bring the string video first .A humble request from us
@mosalah1516 ай бұрын
🎉Thanks bro
@aashishsingune51386 ай бұрын
Best content ❤
@aggarwalsachin48545 ай бұрын
cpp solution #include #include #include using namespace std; class Solution { public: int findContentChildren(vector& g, vector& s) { sort(g.begin(), g.end()); sort(s.begin(), s.end()); int ans = 0, i = 0, j = 0; int n = g.size(), m = s.size(); while (i < n && j < m) { if (s[j] >= g[i]) { ans++; i++; j++; } else { j++; } } return ans; } };
@solvinglife66585 ай бұрын
You satisfied us
@parvahuja76185 ай бұрын
yo yo my man is back
@clintonpinto29255 ай бұрын
Greedy playlist making everyone Greedy for Strings
@parth_38566 ай бұрын
stack and queue......... btw thanks striver....................................................
@Manikaushaki5 ай бұрын
int findContentChildren(vector& g, vector& s) { int n=g.size(),m=s.size(); sort(g.begin(),g.end()); sort(s.begin(),s.end()); int r=0; int l = 0; while (r < n && l < m) { if (g[r]
@mohammadumaidansari50874 ай бұрын
Understood
@sanchitdeepsingh96635 ай бұрын
Thanks sir
@KartikeyTT5 ай бұрын
ty sir
@studystuff513 ай бұрын
Is there a heaps playlist I am missing?
@anushthasinghkushwah9545 ай бұрын
19th of June 2024 I started Today
@subee1285 ай бұрын
thanks
@StudyYuv4 ай бұрын
ty
@harshitjaiswal94395 ай бұрын
understood
@rahulhembram45193 ай бұрын
UnderStood
@purushottam1084 ай бұрын
Doing like the video is important, my one like make 1K, your one like can make 100k;👍🏼👍🏼