Whoever explained matrix search, his way to explain the concept is so easy and smooth ,thanks 😊😊
@MuhammadAbdullah-vt4wx Жыл бұрын
It's very helpful for me thanks apna college 🤗
@anushkakumari53510 ай бұрын
She is shardha didi
@sandippaul468Ай бұрын
My child, these 3 questions itself were actually easy peasy.
@ojasahirrao32873 жыл бұрын
Instead of swapping, we can directly do- cout
@manashdas50043 жыл бұрын
yeah, that's true. But the method shown in video actually changing the matrix. And the way that you said, is changing the way of print.
@mahesh2483 жыл бұрын
@@manashdas5004 Right Bro
@lokeshkumarchaman11063 жыл бұрын
@@manashdas5004 bhai difference btween changing the matrix and only print??
@manashdas50043 жыл бұрын
@@lokeshkumarchaman1106 bhai changing the matrix will help you to do operation on swap matrix. But if you only print you can't do anything to the swap matrix. It is just like toy phone and real phone. Toy phone looks like phone but can't perform any operation like real phone. Hope you understand😊😊
@anujsaini44543 жыл бұрын
Can anyone tell me ? What is the use of k for loop and how it is work in multiplication of Matrix
@AvinashKumar-rj2zz3 жыл бұрын
Awaj Pehchan ke chehra bhi yaad aa gaya Off campus in Microsoft 😍
@UnKnown-by6pu3 жыл бұрын
Konsi video mein ?
@haiderali08013 жыл бұрын
Exactly brother!!
@shivanshupadhyay73563 жыл бұрын
shraddha di Meri neha ka naam v shraddha h
@ishankbansal92393 жыл бұрын
@@shivanshupadhyay7356 fir toh teri Neha bhi teri bhen huiii
@sarthakbehera83243 жыл бұрын
microsoft wali didi
@pavankumar-gp9zx3 жыл бұрын
0:20 transpose of matrix 7:05 matrix multiplication 16:45 matrix search
@ArvindKumar-iu3rt2 жыл бұрын
Tbkx
@sunnyroy28182 жыл бұрын
thank u
@uttamkarmakarece35343 жыл бұрын
This college is much much better than my actual college ❤️
@heplotile80163 жыл бұрын
Really ♥️
@uttamkarmakarece35343 жыл бұрын
@@DeepakKumar-uh9yn very true ☹️
@subhransusekhar75813 жыл бұрын
Agree bro
@SurajMapariPrivate3 жыл бұрын
💯 agreed
@mahvishfatima16922 жыл бұрын
Absolutely right
@vaibhavs2740 Жыл бұрын
The last problem's code would create a infinite loop because r0 would always be satisfied, so the loop will continue indefinitely.
@11.naghmamahtab.273 жыл бұрын
this c++ course is amazing ......i faced some problem on starting ... bcoz I am beginner...but now I am understanding properly.......thanks to aman sir and team....
@arushisinha67423 жыл бұрын
Great course!! It's unlike other courses on KZbin as you solved many questions.. Thank you for so much effort ☺
@AyushKumar-zs6gf2 жыл бұрын
Efficient code for Transpose of a matrix - After taking all inputs int col=0; while (col
@karanbisht74417 ай бұрын
🎉 nice
@smrtghosh5072Ай бұрын
Bhai tune to whi kiya h ki arr[j][i] ko print krya h, plus yaha matrix bhi change nhi hua h 🥂
@yadavji_official55483 жыл бұрын
In the matrix multiplication question , before the multiplication I think we should check the matrix multiplication rule first i.e if the number of column of the first matrix is equal to number of rows of the second matrix. By the way Thanks for the amazing series!
@aritrisaha59423 жыл бұрын
no bro he has already assumed that the two values are same ie n2
@aritrisaha59423 жыл бұрын
if he would have generalised the sizes of n1 n2 and n3 then he should have compared
@rameshmalhotra95252 жыл бұрын
kzbin.info/www/bejne/a3fWepRqgtVmntE
@ashishredhu23792 жыл бұрын
I thought the same thing.
@artirani38063 жыл бұрын
Bhaiya ko dher saara pyaar aur apni kaksha team ko bhi😘💖💖😘
@sadaysamnotra18143 жыл бұрын
I tried a solution of the order of O(n), here it is: int main() { int r,c; coutr>>c; int arr[r][c]; //Entering 2D array for(int i=0;iarr[i][j]; } } //Algo for transpose of a matrix int columnStart=0,columnEnd=c-1 ,rowStart=0,rowEnd=r-1; while(columnStart
@tedbundy87122 жыл бұрын
Sir frm which year u r ?
@tonystark8612 жыл бұрын
O(n^2) aa raha hain
@abhinandankainth3 жыл бұрын
Last wala ques toh boht hi bdia padhaya
@shaileshvashisth99733 жыл бұрын
bande ki salary toh badni chahiye jis tarike se badhiya samjhaya hai
@ayushgoel82773 жыл бұрын
Ha last question ne to maje dila die ❤️
@_dassi_3 жыл бұрын
Kainthcool
@ritikshrivastava94423 жыл бұрын
6:52 if in question written like print the transpose matrix then //transpose logic for(int j=0; j
@dopetechman79213 жыл бұрын
i cant be equal to 0 cause it will then exchange every no and the same matrix will show again. i should be equal to j
@ritikshrivastava94423 жыл бұрын
@@dopetechman7921 first run it then make any comments
@dopetechman79213 жыл бұрын
@@ritikshrivastava9442 oh sorry, got it now, hey do u wanna be my coding buddy as it will be helpful as we are learning from same resources. Would be great to learn together. If oke how can I connect with you? I m available on LinkedIn, instagram, twitter etc
@Harshil-Jani3 жыл бұрын
@@dopetechman7921 Can we Join ?
@dopetechman79213 жыл бұрын
@@Harshil-Jani ya sure, any id of u were i can connect with you
@snighdhagupta99113 жыл бұрын
Sir who taught Matrix multiplication question has taught with extensive explanation and the best explanation I have ever heard for such questions. Looking forward to learn more from you. Great job guys, keep enlightening students like me. Thank you team Apna College🙏
@kumarharsh903 жыл бұрын
He's best one according to me
@prakharjalan75463 жыл бұрын
hey i have doubt in that ques can you help me?
@kumarharsh903 жыл бұрын
@@prakharjalan7546 what?
@rameshmalhotra95252 жыл бұрын
kzbin.info/www/bejne/a3fWepRqgtVmntE
@kundanraj26902 жыл бұрын
we can also do for like arr[j][i] as a output it also take less memory and time complexcity is same 😀
@AliAhmad-if8hi Жыл бұрын
thought the same thing
@ankushbalhara4403 жыл бұрын
(16:00) 27+8=33😂😂 Op calculation. Kisko kya hi pta chalega😂😂🤭 By the way nice content bro❣️❣️
@ayushsarangi40953 жыл бұрын
CHOMU 25+8 BOLA H
@search_Adam_seeker3 жыл бұрын
@@ayushsarangi4095 cho p
@dabblu Жыл бұрын
I can't belive that I did the 1st Qn on my own...Thank you so much to the WHOLE TEAM of Apna College, I'm so proud of Myself. edit: you might think that the 1st Question was Easy...but I'm still proud of Myself
@vritantjain11613 жыл бұрын
Transpose wale mein j ko i+1 se start kre to less time lagega aur output bhi desired mil jayega
@tejasdubhir69353 жыл бұрын
Last question bhot badhiya samajh aaya. Un bhaiya ke aur videos lao please!!!!
@findyourself88063 жыл бұрын
Image Transformation Digital images are represented as a matrix and each element in the matrix represents the RGB value of a pixel. Given the pixel values of a nXn image. Write a code to transform the image into another image by alternate swap of edge pixels. That is for example, given a 4 X 4 image as follows: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 The edge elements of the above image are 1, 2, 3, 4, 8, 12, 16, 15, 14, 13, 9 and 5. The following steps are involved in the transformation: 1 and 3 are swapped 1 and 8 are swapped 1 and 16 are swapped 1 and 14 are swapped 1 and 9 are swapped After doing alternate swap of edge elements the pixel values of the image looks as follows: 3 2 8 4 5 6 7 16 1 10 11 12 13 9 15 14 And given an image of dimension 5 X 5 as follows: 2 4 5 6 3 3 11 12 7 9 7 15 13 8 1 2 21 25 13 14 17 10 16 19 3 Should transform as: 5 4 3 6 1 3 11 12 7 9 2 15 13 8 3 2 21 25 13 14 7 10 17 19 16 Input Format First line contains the dimension of the matrix, n Next nxn lines contain the elements of the matrix in row major order. That is the elements in the first row are given followed by second row and so on Output Format Print the transformed nxn matrix in ‘n’ lines Each line contains the elements of a row separated by a tab. Note: There is a tab at the end of each line
@snehilsinha46893 жыл бұрын
Urvi Goel didi, Rishabh Gupta bhaiya, Shraddha Khapra didi,... and the list goes on... 😁😁. Who's next? 🤔
@deveshshetkar81063 жыл бұрын
Top class faculties love you all❤️
@shivamaggarwal48872 жыл бұрын
6:00 would be more efficient if we start inner loop from j=i+1...because when i and j are equal then we dont require swapping
@arkachakraborty843 Жыл бұрын
Sorry to say but no it is valid only for the 1st row in second row we get i=j for 1 and hence you would check only the numbers beyond i=j=1 and for 3rd row numbers with index beyond i=j=2.
@vishalkarmakar4183 жыл бұрын
Last mein konse bhaiya ne smjhaya tha jo bhi h bhot mst smjhaya hain maza aagya 🔥🔥🔥
Sir, we can start from 0,0 or n,n for searching by forcing our search from either way and then checking the condition.
@Raghav_3623 жыл бұрын
last question can be done as --> only see diagonal elements and check which is dig element is greater than search then search in that rwo and column only
@anubhavgoyal24583 жыл бұрын
From O(n*2) to O(n) Love the optimization
@thespecuber13193 ай бұрын
Not really
@thespecuber13193 ай бұрын
Recognise he used a while loop as well
@UnKnown-id7ih3 жыл бұрын
Concept cleared and i think bhiya just listen our query about the speed of teaching and he improved is just mind blowing.
@a.s.nurrie52823 жыл бұрын
Last wali problem me second if ko agr replace krte hai else if se ton vode run kyo nhi hota🤔🤔🤔
@Go_D_Roger Жыл бұрын
6:30 in transpose matrix instead of swaping elements by temp, one can just cout arr[j][i]. it works and time complexity is less too
@manishchandrapaneru.o5 Жыл бұрын
That will not change original matrix...It only displays transpose
@aayush6991Ай бұрын
instead of swapping,we can also create new array to store the transpose here's the code for it #include using namespace std; int main(){ int n; cout
@vscreation21842 жыл бұрын
How he used and in while loop generally we && for checking conditions actually this works in python
@arka63023 жыл бұрын
instead of creating a loop for initializing the ans array in the multplication of matrices question we can just do for(int i=0;i
@sohamDevRel3 жыл бұрын
Please increase the frequency of uploading videos. The content is awesome!
@mdateeque39973 жыл бұрын
Hitler reacting to IIT-JEE RESULTS:- kzbin.info/www/bejne/e5rSc2aLgJt8iK8
@mdateeque39973 жыл бұрын
200 likes and 0 dislikes (all haters are asleep).
@yourbestie41383 жыл бұрын
at 20:49 bro try to got to 14 from 5...it is not possible ig..but u answerd my doubt at 21:45..thank you😂😂
@rajankpandey Жыл бұрын
the person at the end has explained really well
@LLTletslearn2 жыл бұрын
First of all I learned a lot from this channel thank you 🙏🏻 everyone behind it. Wanna add one more comment “I am in love with your voice “ mam. If the second one hurts you guys in any way please accept my apologies Else keep it. Happy coding ☺️☺️
@sagarmahajan17563 жыл бұрын
agar ye course 1 saal pahle aagaya hota to mere 5000/- rupaye bach jate but anyways thanks your content is more worthy than that 5000/- paid course!
@forprofessionalusage23 жыл бұрын
last guy voice is simple and complex xD very good last bhaiya xD
@abanerjee37043 жыл бұрын
The last approach was just mind blowing.
@prakharjalan75463 жыл бұрын
can you help me with the code i've commented
@abanerjee37043 жыл бұрын
@@prakharjalan7546 just saw it. See and do reply the problem.
@aditisharma8423 жыл бұрын
Just print a[j][i] to get transpose no need of swap operation
@ManishYadav-lg2qr3 жыл бұрын
Shradha Khapra is love. Great Explanation
@sahichezz39342 жыл бұрын
Give best explainer award to last bhaiya who teach us matrix search we have only one word for explaining beautifully- cout
@divyanshuarun71293 жыл бұрын
Last question bahot ache se explained kia hua hai❤️.
@priyanshukunwar3 жыл бұрын
Masterpiece course 🔥
@Shadowxgaming_3 жыл бұрын
bhaiya who is teaching inthis video is way better then all the previous one
@aryavbhola30662 жыл бұрын
Matrix Search Question and Explaination was a beauty to watch
@shreyansh27292 жыл бұрын
I did the matrix search problem by binary search on row and columns. But the method explained was way too smoother than binary search !!
@AbhishekKumar-td5zu3 жыл бұрын
Tqsm bhaiya ♥️♥️
@ujjawalmishra8583 жыл бұрын
Thank You so much bhaiya...and whole team #ApnaCollege
@piyushverma4153 жыл бұрын
first ques can be solved using a single while loop to decrease its time complexity...
@ayushgoel82773 жыл бұрын
Last question wale bhaiya ke lie to mene subscribe kardia hai
@mukulchambial3013 жыл бұрын
Thanks for this wonderful lecture 🙌🙌
@modern_gurukul_24x73 жыл бұрын
Epic Moment : When you saw that matrix search could be that simple. Meanwhile : Bhaiya's expression ye sab toh bacho ka khel hai.
@soumojitchowdhury1513 жыл бұрын
Last searching question me if statement ke andar ek break bhi hoga.. nahi to flag true karne ke baad toh woh loop break hi nahi hoga
@pragatigupta11592 жыл бұрын
Thankyou so much bhaiya for your valuable time , aap ke sath coding karna bahut simple hojata hai
@manavsharma142Ай бұрын
Last person explained so well
@sunilj35533 жыл бұрын
Webdevlopment ki classes kab se start hogi ?
@shivamchaturvedi43363 жыл бұрын
lgta h agla google tu hi bnayega
@eshaaislive57413 жыл бұрын
@@shivamchaturvedi4336Nice Joke... 🤣🤣
@rajansingh19193 жыл бұрын
top faculties is the world...👌👌👌👌
@syedmizbahuddin93903 жыл бұрын
Sir, What is the time complexity of second algorithm of matrix search problem...?? Is it O(m+n) ...?
@abhinandankainth3 жыл бұрын
Yes
@mostviewedreels8723 жыл бұрын
Yes
@shreyashagrawal22643 жыл бұрын
but for loop ke andar for loop lagaya hai to uska complexity O(nm) hoga na? Can any one explain why time complexity is O (n+m)
@abhishekanavekar11473 жыл бұрын
@ Syed Mizbahuddin, It's because we are traversing from top right corner to top left searching for the target by 'n' elements and if not found we go down by 'm' elements, and big O is for the worst case of algorithm so, O(m+n).
@rameshmalhotra95252 жыл бұрын
kzbin.info/www/bejne/a3fWepRqgtVmntE
@lifeoeshita3 жыл бұрын
Bhaiya ak telegram group bana do na. Jis par hum sab doubts puch sake. If you also want then hit like
@akshitsingh59123 жыл бұрын
Am I the only one who is spending ages on Bhaiya's Physics and Chemistry notes and really enjoying them? Bhaiya thanks for everything and please start Python on Apni Kaksha. You're the best Bhaiya!!
@abhinavchaudhary11863 жыл бұрын
Yes, you are the only one
@fitincubicles3 жыл бұрын
You are life saviour for students like me love you Apna College and Aman bhaiya😍
@HiteshKumar-si4ok3 жыл бұрын
For the first prb u can also simply do this for (int j = 0; j < n; j++) { for (int i = 0; i < m; i++) { cout
@trimbakrajitkar45362 жыл бұрын
u are just priting but original matx not changed
@vaibhavs2740 Жыл бұрын
damn
@divyaalakute54122 жыл бұрын
in the last cout>>a[i][j] is not give proper o/p instead that cout>>a[j][i] gives right ans
@shivansh74073 жыл бұрын
When is python course gonna upload on this channel... plz plz plz do it fast... if have to sit for placements and wanna learn the data structure and algo. from apna college channel. 🙏🙏🙏 Upload it asap🙂🙂🙂
@mdateeque39973 жыл бұрын
Hitler reacting to IIT-JEE RESULTS:- kzbin.info/www/bejne/e5rSc2aLgJt8iK8
@mdateeque39973 жыл бұрын
200 likes and 0 dislikes (all haters are asleep).
@ankursahoo36073 жыл бұрын
If its that much urgent for you go for a intigrrated 16hours video of python from youtube
@AKASHSHARMA-wy7mg3 жыл бұрын
bro is python more important than c++ ? i am juinor though...|
@shivansh74073 жыл бұрын
@@09.arkodevmukherjee24 sure
@yashwasalwar10313 жыл бұрын
when will we study stl sort? As per course index it was before 2D arrays
@vidheelgujarati29063 жыл бұрын
Kindly add an option of skip add for the add which is 9 mins long. 1 or 2 mins is okay, but isn't a 9 mins add too long?
@pavitragautam24483 жыл бұрын
THANKS FOR THE VIDEO.... AMAZING EXPLAINATION....
@sharma_atul_064 ай бұрын
last explanation was superb
@solvinglife66582 жыл бұрын
transpose wale me direct a [j][i] se karna better option hoga
@Justdoing1852 жыл бұрын
Matrix search bale bhaiya ap Neo ho In this field (Neo in matrix movie ) Sarbasaktiman Neo bale bhaiya ❤️
@kashishshukla233 жыл бұрын
that bhaiyaa (matrix search vaale) explains really well... ^_^
@karanchandak56672 жыл бұрын
Matrix Transpose- "THE EASIEST CODE YOU WOULD EVER FIND" #include using namespace std; int main() { int n; cin>>n; int a[n][n]; for(int i=0;ia[i][j]; } } // Transpose for(int i=0;i
@karanchandak56672 жыл бұрын
I was doing some random trial and found this🤣🤣 @Apna College
@deepanshsharma59703 жыл бұрын
Thank you bhaiya and all teachers 😍
@amalasebastian99683 жыл бұрын
Aare wah... The last guy was lit.. Seriously
@priyanshushekharpandey42353 жыл бұрын
Bhya 1 week of November hogya waiting for Python course u didn't upload it if it will take time I will study from Anuj bhya #pythonplease session are near sooo please replyyyy
@yashvarshney67613 жыл бұрын
it's your choice isse kisi ko koi nuksaan nahi hai.
@priyanshushekharpandey42353 жыл бұрын
@@yashvarshney6761 bhai ap kaun
@priyeshrajsingh22493 жыл бұрын
Yeh bhi theek hai
@priyanshushekharpandey42353 жыл бұрын
@@priyeshrajsingh2249 gjb khali ho bhai 😁
@nirbhaisai34212 жыл бұрын
in matrix searching .. the while loop is an infinite loop.. does this affect the time or space complexity?
@rankitgujjar803 жыл бұрын
in the first question just exchange i and j , you will get the transpose
@sajalgupta30493 жыл бұрын
sir if i use else if loop to check the condition a[i][j]>target ,then my code is not working and i m not getting the output and if i using if condition as mentioned in video then my code is running and getting right output
@himanshugautam91593 жыл бұрын
Same
@nikhilmehra6133 жыл бұрын
Ek exact time pr video daala kro plz.But thanks for that content ❤️
@dhairyashah41673 жыл бұрын
for transpose of matrix ig there is a mistake int j=0(i got required output by this one) and not j=i
@utkarshrai101cartoonwala2 жыл бұрын
Are yar ham search matrix me jaye to 17 element se bhi to start kar skte hai Akhir big , small no. To vha bhi hai n Jis se ki ham vha bhi traverse kar skte hai apni condition ke according
@sahilsawal3 жыл бұрын
Thank You Ma'am & Sir 😇🙏👍
@starkendeavours70723 жыл бұрын
@22:16 did anybody noticed? He is writing " and " in while loop instead "&&", still his code is running correctly, without any compilation error.😲😲😲 LOL...
@mukulchopra33783 жыл бұрын
i'm also thinking this ,.... how ??
@dhruvnaik53173 жыл бұрын
Can't make new matrix instead of swaping a =d but with same concept of ij=ji and then d matrix print kar denge
@012_mohdsameer73 жыл бұрын
i think Kainth Bhaiya is the best teacher for this placement course the last question in this video was done by him i read his name on VS CODE
@pritishpattnaik46743 жыл бұрын
give more questions from gfg , hacker rank , etc..
@SeotiSen3 жыл бұрын
Bhai, ye kaun hai🙄 jo 1:40am pei vdo mai dislike marne aya; jake soh jao.
@niladriroy16653 жыл бұрын
Vai tu 18 hrs Phle kaise comment kiya? Video premier pe tha kya?
@shaileshhacker2 жыл бұрын
0:00 - 7:00 Only Lengends know that this voice is Our Shradha Didi
@sourishdutta09992 жыл бұрын
4:20 Transpose #include using namespace std; int main(){ int n; coutn; cout
@manaspandey72432 жыл бұрын
Simply cout
@bat_man11383 жыл бұрын
I knew today that temp is for "temporary" lol man
@mehendisworld26062 жыл бұрын
is there any problem with time complexity? N:B: I am very beginner. i have some confusion in "time complexity". Can you please help me ? #include using namespace std; int main(){ int n; cin>>n; int a[n][n]; for(int i=0; ia[i][j]; } cout
@mohdbilal2 Жыл бұрын
no this one okay but only applicable for square matrix
@sampakhan28792 жыл бұрын
A little heads up if ur facing problems with the last code Add a break after found=true
@harshitmehra6712 жыл бұрын
Ohhhhhhhh swap 🤩 I thought it would be hard to transpose
@vikasmaurya39053 жыл бұрын
U R ALL AMAZING 😊😊, THANK U SO MUCH.....
@shivammaurya34513 жыл бұрын
Thank you mam and aman bhaiya best explanation best solution 😃❤🖤
@harshvardhanyadav79042 жыл бұрын
i have a doubt in optimized search in notes you have initialized r=0 but c=n-1 but i think it should be m-1 casue m no. of columns are there if n is not equal to m then this will be incorrect kindly correct this.