Пікірлер
@VishalSingh-bo2ow
@VishalSingh-bo2ow 22 күн бұрын
Very less people have shown this solution, most of them then to insert a smaller loop, inside the outer loop, to decrease one count, instead of traversing the array only once !! Thanks
@thesologuy14
@thesologuy14 29 күн бұрын
why we need swap function , we can swap inside convertToWave function right?
@user-zj9yb1bb1h
@user-zj9yb1bb1h Ай бұрын
No Need to use limit() because after sorting in reverse order we already know that 2nd number will be 2nd largest no.
@dipakkale2723
@dipakkale2723 Ай бұрын
Thank for explaining, I find lot of related videos but this is too good
@vinitjain7
@vinitjain7 2 ай бұрын
ye solution video hai ... galti meri thi samajh ne aaya ..
@manasranjan7894
@manasranjan7894 2 ай бұрын
Asked in my recent interview
@srinivasreddy552
@srinivasreddy552 3 ай бұрын
How do we get such an idea man ? @19:14 pe, nice explanation.
@naveenprajapati5547
@naveenprajapati5547 4 ай бұрын
increase sound please.....!!!
@csea_37_shayoribhowmick53
@csea_37_shayoribhowmick53 4 ай бұрын
❤❤❤❤
@RAVIKUMAR-qg1yp
@RAVIKUMAR-qg1yp 6 ай бұрын
Gajab bhai gajab
@rickykumar2675
@rickykumar2675 7 ай бұрын
Sir best method.. Wow seriously
@starkpanther4471
@starkpanther4471 8 ай бұрын
best explanation ❤
@Me123-m4k
@Me123-m4k 8 ай бұрын
Bolna kya chah rhe ho samajh hi NH aa rha :|
@Me123-m4k
@Me123-m4k 8 ай бұрын
Faltu explanation
@myvillagelife855
@myvillagelife855 9 ай бұрын
Thank you sir!! 🙏🙏
@shailendraraj4951
@shailendraraj4951 10 ай бұрын
Now it's cleared to me. Thanks a lot
@abhishekkr8077
@abhishekkr8077 10 ай бұрын
Thanks bhaiya bahut badhiyaa video hai..hindi me samjhane k liye dhanyawad
@KinjalMukherjee
@KinjalMukherjee 10 ай бұрын
Normal video acha tha
@KinjalMukherjee
@KinjalMukherjee 10 ай бұрын
Wor low volume main kar bhai😂
@krishnakantsoni573
@krishnakantsoni573 10 ай бұрын
nice bro thanks..
@code_with_saurabh
@code_with_saurabh 10 ай бұрын
your code is not optimal ,it gives TLE problem ,this approach is not good for O(N) time complexity
@samruddhiychachar5913
@samruddhiychachar5913 10 ай бұрын
But what if the array elements are only in increasing order then in that case also it will not be mountain array but u haven't provide any condition for that?
@akashmukherjee1995
@akashmukherjee1995 10 ай бұрын
Good explanation
@satyareddy8671
@satyareddy8671 11 ай бұрын
dont known english??
@jagdeepsingh-vj2mv
@jagdeepsingh-vj2mv Жыл бұрын
nice explanation, totally understandable thanks @PrepareYourself
@rajnishsingh2864
@rajnishsingh2864 Жыл бұрын
Recursion solution looks very complicated to me .
@ayushgupta80
@ayushgupta80 Жыл бұрын
please yaar bhai , request hai aisi videos mat banaya karo
@prepareyourself7992
@prepareyourself7992 Жыл бұрын
sorry to hear that you didnt like the way of teaching. If you can provide constructive feedback we can improve from our side.
@ayushgupta80
@ayushgupta80 Жыл бұрын
@@prepareyourself7992 see man , everything was fine , but you directly told that it is formula and we will discuss this in another video ; so I would like to add that provide all the necessary things in that particular video only
@prepareyourself7992
@prepareyourself7992 Жыл бұрын
@@ayushgupta80 noted
@inderjeet09
@inderjeet09 2 ай бұрын
@@ayushgupta80 true , we didn't get from where does this formula come
@BNavdeepKaur
@BNavdeepKaur Жыл бұрын
Nice :)
@rockstarnandini1677
@rockstarnandini1677 Жыл бұрын
great explaination
@ashishkumar-fg7ph
@ashishkumar-fg7ph Жыл бұрын
bhai maja aa gaya itna acha to gfg ke founder n b nahi samjaya
@prepareyourself7992
@prepareyourself7992 Жыл бұрын
Glad , able to help you
@BNavdeepKaur
@BNavdeepKaur Жыл бұрын
Great explanation !
@prepareyourself7992
@prepareyourself7992 Жыл бұрын
great to know that you liked
@KomalKumarn
@KomalKumarn Жыл бұрын
@fffooccc9801
@fffooccc9801 Жыл бұрын
bool solve(int i,int j,string &s,string goal){ //i=0 j=s.length()-1 if(i==j) return false; char temp; temp=s[i]; //change it s[i]=s[j]; s[j]=temp; if(s==goal){ fount=true; return true; } temp=s[i]; s[i]=s[j]; //undo it s[j]=temp; solve(i+1,j,s,goal); //don't move j it might swap and return true with new i solve(i,j-1,s,goal); // "" return false; } can anybody please tell me that why my solution is returning false resuts in some cases.
@user-up1oh2vp4n
@user-up1oh2vp4n Жыл бұрын
Hello bro,tumne else me jo while loop use ki h wo hmesa hi true hogi to wo likhne ka koi v mtlb nhi banta h.Aap direct ye likh sakte ho else { res += Math.max(sum1,sum2)+ar1[i]; sum1 = 0; sum2 = 0; i++; j++; }
@rekhakalasare4910
@rekhakalasare4910 Жыл бұрын
Great explanation! But how did you frame this formula? Cant we directly return countofOne variable?
@amanmotghare7196
@amanmotghare7196 Жыл бұрын
good explaination
@Lipunknb
@Lipunknb Жыл бұрын
Nicely described. Note : link for CyclicBarrier in the description is wrong. please correct it.
@prepareyourself7992
@prepareyourself7992 Жыл бұрын
Thank you, Pratyush. Corrected.
@sharmaji...9107
@sharmaji...9107 Жыл бұрын
Sir please, you upload one or more videos daily. We have subscribed your channel.
@prepareyourself7992
@prepareyourself7992 Жыл бұрын
sure sharma ji, Noted
@yuvraj_das
@yuvraj_das Жыл бұрын
thanks brother
@triprjt7857
@triprjt7857 Жыл бұрын
bhai to the point banaoge tab subscribers karenge na. Time waste karoge toh kaise karein subscribe.
@sahilsayyed4177
@sahilsayyed4177 Жыл бұрын
ExecuterService ke case mein cyclic barrier kaise use karen.
@ahn360
@ahn360 Жыл бұрын
Nice Explanation
@sudipasamanta1502
@sudipasamanta1502 Жыл бұрын
Very nice explanation sir , I found only this video where explain this problem better in java.
@pratikgawali
@pratikgawali Жыл бұрын
A very genuine conversation with great insights 👍
@prepareyourself7992
@prepareyourself7992 Жыл бұрын
Thanks a lot Pratik !
@rajnishsingh2864
@rajnishsingh2864 Жыл бұрын
Pls make some video on microservices and kafka.
@prepareyourself7992
@prepareyourself7992 Жыл бұрын
Thanks for the request, Will soon work on it with understandable examples
@rajnishsingh2864
@rajnishsingh2864 Жыл бұрын
@prepareyourself7992 thank you 🙏
@mrunknown4526
@mrunknown4526 Жыл бұрын
bhaiya aap japfu me rehte the ya tiyi me
@prepareyourself7992
@prepareyourself7992 Жыл бұрын
tiyi
@A_CupOf_Life
@A_CupOf_Life Жыл бұрын
👌👌💯
@vickygoyal7987
@vickygoyal7987 Жыл бұрын
👍
@spideranup
@spideranup Жыл бұрын
Thanks yrr good effort
@anuragshekhawat2541
@anuragshekhawat2541 Жыл бұрын
Thanks bro it helped a lot 🤟🤟🤟