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 🤗
@anushkakumari53511 ай бұрын
She is shardha didi
@sandippaul4683 ай бұрын
My child, these 3 questions itself were actually easy peasy.
@pavankumar-gp9zx3 жыл бұрын
0:20 transpose of matrix 7:05 matrix multiplication 16:45 matrix search
@ArvindKumar-iu3rt2 жыл бұрын
Tbkx
@sunnyroy28182 жыл бұрын
thank u
@AvinashKumar-rj2zz4 жыл бұрын
Awaj Pehchan ke chehra bhi yaad aa gaya Off campus in Microsoft 😍
@UnKnown-by6pu4 жыл бұрын
Konsi video mein ?
@haiderali08014 жыл бұрын
Exactly brother!!
@shivanshupadhyay73564 жыл бұрын
shraddha di Meri neha ka naam v shraddha h
@ishankbansal92393 жыл бұрын
@@shivanshupadhyay7356 fir toh teri Neha bhi teri bhen huiii
@sarthakbehera83243 жыл бұрын
microsoft wali didi
@uttamkarmakarece35343 жыл бұрын
This college is much much better than my actual college ❤️
@heplotile80163 жыл бұрын
Really ♥️
@uttamkarmakarece35343 жыл бұрын
@@DeepakKumar-uh9yn very true ☹️
@subhransusekhar75813 жыл бұрын
Agree bro
@SurajMapariPrivate3 жыл бұрын
💯 agreed
@mahvishfatima16923 жыл бұрын
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.
@ojasahirrao32874 жыл бұрын
Instead of swapping, we can directly do- cout
@manashdas50044 жыл бұрын
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.
@mahesh2484 жыл бұрын
@@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
@AyushKumar-zs6gf2 жыл бұрын
Efficient code for Transpose of a matrix - After taking all inputs int col=0; while (col
@karanbisht74418 ай бұрын
🎉 nice
@smrtghosh50723 ай бұрын
Bhai tune to whi kiya h ki arr[j][i] ko print krya h, plus yaha matrix bhi change nhi hua h 🥂
@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
@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 ☺
@artirani38064 жыл бұрын
Bhaiya ko dher saara pyaar aur apni kaksha team ko bhi😘💖💖😘
@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
@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.
@vritantjain11614 жыл бұрын
Transpose wale mein j ko i+1 se start kre to less time lagega aur output bhi desired mil jayega
@kundanraj26902 жыл бұрын
we can also do for like arr[j][i] as a output it also take less memory and time complexcity is same 😀
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
@snighdhagupta99114 жыл бұрын
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🙏
@kumarharsh904 жыл бұрын
He's best one according to me
@prakharjalan75464 жыл бұрын
hey i have doubt in that ques can you help me?
@kumarharsh904 жыл бұрын
@@prakharjalan7546 what?
@rameshmalhotra95252 жыл бұрын
kzbin.info/www/bejne/a3fWepRqgtVmntE
@abhinandankainth4 жыл бұрын
Last wala ques toh boht hi bdia padhaya
@shaileshvashisth99734 жыл бұрын
bande ki salary toh badni chahiye jis tarike se badhiya samjhaya hai
@ayushgoel82774 жыл бұрын
Ha last question ne to maje dila die ❤️
@_dassi_4 жыл бұрын
Kainthcool
@findyourself88064 жыл бұрын
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
@tejasdubhir69354 жыл бұрын
Last question bhot badhiya samajh aaya. Un bhaiya ke aur videos lao please!!!!
@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_ex_muslim_sahil_yt3 жыл бұрын
@@ayushsarangi4095 cho p
@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
@aayush69913 ай бұрын
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
@arka63024 жыл бұрын
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
@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.
@deveshshetkar81063 жыл бұрын
Top class faculties love you all❤️
@dabblu2 жыл бұрын
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
@UnKnown-id7ih4 жыл бұрын
Concept cleared and i think bhiya just listen our query about the speed of teaching and he improved is just mind blowing.
@Shadowxgaming_3 жыл бұрын
bhaiya who is teaching inthis video is way better then all the previous one
@abanerjee37044 жыл бұрын
The last approach was just mind blowing.
@prakharjalan75464 жыл бұрын
can you help me with the code i've commented
@abanerjee37044 жыл бұрын
@@prakharjalan7546 just saw it. See and do reply the problem.
@anubhavgoyal24584 жыл бұрын
From O(n*2) to O(n) Love the optimization
@thespecuber13195 ай бұрын
Not really
@thespecuber13195 ай бұрын
Recognise he used a while loop as well
@aryavbhola30662 жыл бұрын
Matrix Search Question and Explaination was a beauty to watch
@sahichezz39343 жыл бұрын
Give best explainer award to last bhaiya who teach us matrix search we have only one word for explaining beautifully- cout
@rajankpandey Жыл бұрын
the person at the end has explained really well
@divyanshuarun71293 жыл бұрын
Last question bahot ache se explained kia hua hai❤️.
@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 !!
@snehilsinha46894 жыл бұрын
Urvi Goel didi, Rishabh Gupta bhaiya, Shraddha Khapra didi,... and the list goes on... 😁😁. Who's next? 🤔
@piyushverma4154 жыл бұрын
first ques can be solved using a single while loop to decrease its time complexity...
@vscreation21842 жыл бұрын
How he used and in while loop generally we && for checking conditions actually this works in python
@aditisharma8423 жыл бұрын
Just print a[j][i] to get transpose no need of swap operation
@sohamDevRel4 жыл бұрын
Please increase the frequency of uploading videos. The content is awesome!
@mdateeque39974 жыл бұрын
Hitler reacting to IIT-JEE RESULTS:- kzbin.info/www/bejne/e5rSc2aLgJt8iK8
@mdateeque39974 жыл бұрын
200 likes and 0 dislikes (all haters are asleep).
@forprofessionalusage24 жыл бұрын
last guy voice is simple and complex xD very good last bhaiya xD
@vishalkarmakar4183 жыл бұрын
Last mein konse bhaiya ne smjhaya tha jo bhi h bhot mst smjhaya hain maza aagya 🔥🔥🔥
@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
@BTEEEHarshChauhan3 жыл бұрын
Sir, we can start from 0,0 or n,n for searching by forcing our search from either way and then checking the condition.
@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 ☺️☺️
@yourbestie41384 жыл бұрын
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😂😂
@pragatigupta11592 жыл бұрын
Thankyou so much bhaiya for your valuable time , aap ke sath coding karna bahut simple hojata hai
@ayushgoel82774 жыл бұрын
Last question wale bhaiya ke lie to mene subscribe kardia hai
@priyanshukunwar3 жыл бұрын
Masterpiece course 🔥
@sourishdutta09992 жыл бұрын
4:20 Transpose #include using namespace std; int main(){ int n; coutn; cout
@manaspandey72432 жыл бұрын
Simply cout
@ujjawalmishra8584 жыл бұрын
Thank You so much bhaiya...and whole team #ApnaCollege
@mukulchambial3013 жыл бұрын
Thanks for this wonderful lecture 🙌🙌
@ManishYadav-lg2qr3 жыл бұрын
Shradha Khapra is love. Great Explanation
@AbhishekKumar-td5zu4 жыл бұрын
Tqsm bhaiya ♥️♥️
@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
@manavsharma1422 ай бұрын
Last person explained so well
@rankitgujjar803 жыл бұрын
in the first question just exchange i and j , you will get the transpose
@pavitragautam24483 жыл бұрын
THANKS FOR THE VIDEO.... AMAZING EXPLAINATION....
@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
@kashishshukla233 жыл бұрын
that bhaiyaa (matrix search vaale) explains really well... ^_^
@solvinglife66582 жыл бұрын
transpose wale me direct a [j][i] se karna better option hoga
@fitincubicles3 жыл бұрын
You are life saviour for students like me love you Apna College and Aman bhaiya😍
@sharma_atul_066 ай бұрын
last explanation was superb
@rajansingh19193 жыл бұрын
top faculties is the world...👌👌👌👌
@harjassingh85883 жыл бұрын
One more approach to the last question- If we traverse along the diagonal from top left to bottom right(because that is also increasing because of the condition)and the element we are searching becomes smaller than the element that we are currently traversing through, then we can linear search it along the current element's row or column.
@onkarnagarkar46933 жыл бұрын
try finding target=3 in the below array with the same logic 1 2 3 4 5 6 7 8 9
@deepanshsharma59704 жыл бұрын
Thank you bhaiya and all teachers 😍
@divyaalakute54122 жыл бұрын
in the last cout>>a[i][j] is not give proper o/p instead that cout>>a[j][i] gives right ans
@sahilsawal4 жыл бұрын
Thank You Ma'am & Sir 😇🙏👍
@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.
@amalasebastian99683 жыл бұрын
Aare wah... The last guy was lit.. Seriously
@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?
@chetanwarrior33383 жыл бұрын
Thanks bhaiya for explaining so well
@utkarshrai101cartoonwala3 жыл бұрын
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
@pritishpattnaik46744 жыл бұрын
give more questions from gfg , hacker rank , etc..
@rohinhodkasia30272 жыл бұрын
i have tried this #include using namespace std; int main() { int n,m; coutn>>m; int array[n][m] ; for(int i = 0 ; i< n ; i++) { for(int j = 0 ;j>array[i][j]; } } cout
@bat_man11383 жыл бұрын
I knew today that temp is for "temporary" lol man
@lifeoeshita4 жыл бұрын
Bhaiya ak telegram group bana do na. Jis par hum sab doubts puch sake. If you also want then hit like
@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 ??
@dhairyashah41673 жыл бұрын
for transpose of matrix ig there is a mistake int j=0(i got required output by this one) and not j=i
@sunilj35534 жыл бұрын
Webdevlopment ki classes kab se start hogi ?
@shivamchaturvedi43364 жыл бұрын
lgta h agla google tu hi bnayega
@eshaaislive57413 жыл бұрын
@@shivamchaturvedi4336Nice Joke... 🤣🤣
@shaileshhacker2 жыл бұрын
0:00 - 7:00 Only Lengends know that this voice is Our Shradha Didi
@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
@Justdoing1853 жыл бұрын
Matrix search bale bhaiya ap Neo ho In this field (Neo in matrix movie ) Sarbasaktiman Neo bale bhaiya ❤️
@nikhilmehra6134 жыл бұрын
Ek exact time pr video daala kro plz.But thanks for that content ❤️
@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
@vikasmaurya39054 жыл бұрын
U R ALL AMAZING 😊😊, THANK U SO MUCH.....
@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!
@shivammaurya34514 жыл бұрын
Thank you mam and aman bhaiya best explanation best solution 😃❤🖤
@deep904024 жыл бұрын
Nice video , plz try to share videos daily.
@sampakhan28792 жыл бұрын
A little heads up if ur facing problems with the last code Add a break after found=true
@akashthoriya4 жыл бұрын
Great efforts, thank you
@Roshansingh-yq9vb3 жыл бұрын
explanation was greattt
@akshitsingh59124 жыл бұрын
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
@gamerzone1013 Жыл бұрын
Matrix Multiplication #include using namespace std; int main(){ int r1,r2,c1,c2; coutr1>>c1; coutr2>>c2; int a[r1][c1],b[r2][c2]; int c[r1][c2]; if(c1!=r2){ cout
@SeotiSen4 жыл бұрын
Bhai, ye kaun hai🙄 jo 1:40am pei vdo mai dislike marne aya; jake soh jao.
@niladriroy16654 жыл бұрын
Vai tu 18 hrs Phle kaise comment kiya? Video premier pe tha kya?
@pradnyamore77743 жыл бұрын
Excellent explanation mam🧡
@eduhub10954 жыл бұрын
Please increase frequency please I requeste you
@syedmizbahuddin93904 жыл бұрын
Sir, What is the time complexity of second algorithm of matrix search problem...?? Is it O(m+n) ...?
@abhinandankainth4 жыл бұрын
Yes
@mostviewedreels8724 жыл бұрын
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).