9.2 "2D Array" Challenges | Asked by Top MNC's | C++ Placement Course

  Рет қаралды 332,694

Apna College

Apna College

Күн бұрын

Пікірлер: 590
@nkjha6625
@nkjha6625 4 жыл бұрын
Whoever explained matrix search, his way to explain the concept is so easy and smooth ,thanks 😊😊
@MuhammadAbdullah-vt4wx
@MuhammadAbdullah-vt4wx Жыл бұрын
It's very helpful for me thanks apna college 🤗
@anushkakumari535
@anushkakumari535 11 ай бұрын
She is shardha didi
@sandippaul468
@sandippaul468 3 ай бұрын
My child, these 3 questions itself were actually easy peasy.
@pavankumar-gp9zx
@pavankumar-gp9zx 3 жыл бұрын
0:20 transpose of matrix 7:05 matrix multiplication 16:45 matrix search
@ArvindKumar-iu3rt
@ArvindKumar-iu3rt 2 жыл бұрын
Tbkx
@sunnyroy2818
@sunnyroy2818 2 жыл бұрын
thank u
@AvinashKumar-rj2zz
@AvinashKumar-rj2zz 4 жыл бұрын
Awaj Pehchan ke chehra bhi yaad aa gaya Off campus in Microsoft 😍
@UnKnown-by6pu
@UnKnown-by6pu 4 жыл бұрын
Konsi video mein ?
@haiderali0801
@haiderali0801 4 жыл бұрын
Exactly brother!!
@shivanshupadhyay7356
@shivanshupadhyay7356 4 жыл бұрын
shraddha di Meri neha ka naam v shraddha h
@ishankbansal9239
@ishankbansal9239 3 жыл бұрын
@@shivanshupadhyay7356 fir toh teri Neha bhi teri bhen huiii
@sarthakbehera8324
@sarthakbehera8324 3 жыл бұрын
microsoft wali didi
@uttamkarmakarece3534
@uttamkarmakarece3534 3 жыл бұрын
This college is much much better than my actual college ❤️
@heplotile8016
@heplotile8016 3 жыл бұрын
Really ♥️
@uttamkarmakarece3534
@uttamkarmakarece3534 3 жыл бұрын
@@DeepakKumar-uh9yn very true ☹️
@subhransusekhar7581
@subhransusekhar7581 3 жыл бұрын
Agree bro
@SurajMapariPrivate
@SurajMapariPrivate 3 жыл бұрын
💯 agreed
@mahvishfatima1692
@mahvishfatima1692 3 жыл бұрын
Absolutely right
@vaibhavs2740
@vaibhavs2740 Жыл бұрын
The last problem's code would create a infinite loop because r0 would always be satisfied, so the loop will continue indefinitely.
@ojasahirrao3287
@ojasahirrao3287 4 жыл бұрын
Instead of swapping, we can directly do- cout
@manashdas5004
@manashdas5004 4 жыл бұрын
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.
@mahesh248
@mahesh248 4 жыл бұрын
@@manashdas5004 Right Bro
@lokeshkumarchaman1106
@lokeshkumarchaman1106 3 жыл бұрын
@@manashdas5004 bhai difference btween changing the matrix and only print??
@manashdas5004
@manashdas5004 3 жыл бұрын
@@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😊😊
@anujsaini4454
@anujsaini4454 3 жыл бұрын
Can anyone tell me ? What is the use of k for loop and how it is work in multiplication of Matrix
@AyushKumar-zs6gf
@AyushKumar-zs6gf 2 жыл бұрын
Efficient code for Transpose of a matrix - After taking all inputs int col=0; while (col
@karanbisht7441
@karanbisht7441 8 ай бұрын
🎉 nice
@smrtghosh5072
@smrtghosh5072 3 ай бұрын
Bhai tune to whi kiya h ki arr[j][i] ko print krya h, plus yaha matrix bhi change nhi hua h 🥂
@sadaysamnotra1814
@sadaysamnotra1814 3 жыл бұрын
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
@tedbundy8712
@tedbundy8712 2 жыл бұрын
Sir frm which year u r ?
@tonystark861
@tonystark861 2 жыл бұрын
O(n^2) aa raha hain
@11.naghmamahtab.27
@11.naghmamahtab.27 3 жыл бұрын
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....
@arushisinha6742
@arushisinha6742 3 жыл бұрын
Great course!! It's unlike other courses on KZbin as you solved many questions.. Thank you for so much effort ☺
@artirani3806
@artirani3806 4 жыл бұрын
Bhaiya ko dher saara pyaar aur apni kaksha team ko bhi😘💖💖😘
@ritikshrivastava9442
@ritikshrivastava9442 3 жыл бұрын
6:52 if in question written like print the transpose matrix then //transpose logic for(int j=0; j
@dopetechman7921
@dopetechman7921 3 жыл бұрын
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
@ritikshrivastava9442
@ritikshrivastava9442 3 жыл бұрын
@@dopetechman7921 first run it then make any comments
@dopetechman7921
@dopetechman7921 3 жыл бұрын
@@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-Jani
@Harshil-Jani 3 жыл бұрын
@@dopetechman7921 Can we Join ?
@dopetechman7921
@dopetechman7921 3 жыл бұрын
@@Harshil-Jani ya sure, any id of u were i can connect with you
@yadavji_official5548
@yadavji_official5548 3 жыл бұрын
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!
@aritrisaha5942
@aritrisaha5942 3 жыл бұрын
no bro he has already assumed that the two values are same ie n2
@aritrisaha5942
@aritrisaha5942 3 жыл бұрын
if he would have generalised the sizes of n1 n2 and n3 then he should have compared
@rameshmalhotra9525
@rameshmalhotra9525 2 жыл бұрын
kzbin.info/www/bejne/a3fWepRqgtVmntE
@ashishredhu2379
@ashishredhu2379 2 жыл бұрын
I thought the same thing.
@vritantjain1161
@vritantjain1161 4 жыл бұрын
Transpose wale mein j ko i+1 se start kre to less time lagega aur output bhi desired mil jayega
@kundanraj2690
@kundanraj2690 2 жыл бұрын
we can also do for like arr[j][i] as a output it also take less memory and time complexcity is same 😀
@AliAhmad-if8hi
@AliAhmad-if8hi Жыл бұрын
thought the same thing
@shreyaschavhan5522
@shreyaschavhan5522 4 жыл бұрын
Matrix Transpose - == 0:10 == - Matrix Multiplication - == 7:01 == - Matrix Search - == 16:31 == -
@Raghav_362
@Raghav_362 4 жыл бұрын
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
@snighdhagupta9911
@snighdhagupta9911 4 жыл бұрын
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🙏
@kumarharsh90
@kumarharsh90 4 жыл бұрын
He's best one according to me
@prakharjalan7546
@prakharjalan7546 4 жыл бұрын
hey i have doubt in that ques can you help me?
@kumarharsh90
@kumarharsh90 4 жыл бұрын
@@prakharjalan7546 what?
@rameshmalhotra9525
@rameshmalhotra9525 2 жыл бұрын
kzbin.info/www/bejne/a3fWepRqgtVmntE
@abhinandankainth
@abhinandankainth 4 жыл бұрын
Last wala ques toh boht hi bdia padhaya
@shaileshvashisth9973
@shaileshvashisth9973 4 жыл бұрын
bande ki salary toh badni chahiye jis tarike se badhiya samjhaya hai
@ayushgoel8277
@ayushgoel8277 4 жыл бұрын
Ha last question ne to maje dila die ❤️
@_dassi_
@_dassi_ 4 жыл бұрын
Kainthcool
@findyourself8806
@findyourself8806 4 жыл бұрын
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
@tejasdubhir6935
@tejasdubhir6935 4 жыл бұрын
Last question bhot badhiya samajh aaya. Un bhaiya ke aur videos lao please!!!!
@ankushbalhara440
@ankushbalhara440 3 жыл бұрын
(16:00) 27+8=33😂😂 Op calculation. Kisko kya hi pta chalega😂😂🤭 By the way nice content bro❣️❣️
@ayushsarangi4095
@ayushsarangi4095 3 жыл бұрын
CHOMU 25+8 BOLA H
@search_ex_muslim_sahil_yt
@search_ex_muslim_sahil_yt 3 жыл бұрын
@@ayushsarangi4095 cho p
@Go_D_Roger
@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
@manishchandrapaneru.o5 Жыл бұрын
That will not change original matrix...It only displays transpose
@aayush6991
@aayush6991 3 ай бұрын
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
@arka6302
@arka6302 4 жыл бұрын
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
@shivamaggarwal4887
@shivamaggarwal4887 2 жыл бұрын
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
@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.
@deveshshetkar8106
@deveshshetkar8106 3 жыл бұрын
Top class faculties love you all❤️
@dabblu
@dabblu 2 жыл бұрын
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-id7ih
@UnKnown-id7ih 4 жыл бұрын
Concept cleared and i think bhiya just listen our query about the speed of teaching and he improved is just mind blowing.
@Shadowxgaming_
@Shadowxgaming_ 3 жыл бұрын
bhaiya who is teaching inthis video is way better then all the previous one
@abanerjee3704
@abanerjee3704 4 жыл бұрын
The last approach was just mind blowing.
@prakharjalan7546
@prakharjalan7546 4 жыл бұрын
can you help me with the code i've commented
@abanerjee3704
@abanerjee3704 4 жыл бұрын
@@prakharjalan7546 just saw it. See and do reply the problem.
@anubhavgoyal2458
@anubhavgoyal2458 4 жыл бұрын
From O(n*2) to O(n) Love the optimization
@thespecuber1319
@thespecuber1319 5 ай бұрын
Not really
@thespecuber1319
@thespecuber1319 5 ай бұрын
Recognise he used a while loop as well
@aryavbhola3066
@aryavbhola3066 2 жыл бұрын
Matrix Search Question and Explaination was a beauty to watch
@sahichezz3934
@sahichezz3934 3 жыл бұрын
Give best explainer award to last bhaiya who teach us matrix search we have only one word for explaining beautifully- cout
@rajankpandey
@rajankpandey Жыл бұрын
the person at the end has explained really well
@divyanshuarun7129
@divyanshuarun7129 3 жыл бұрын
Last question bahot ache se explained kia hua hai❤️.
@shreyansh2729
@shreyansh2729 2 жыл бұрын
I did the matrix search problem by binary search on row and columns. But the method explained was way too smoother than binary search !!
@snehilsinha4689
@snehilsinha4689 4 жыл бұрын
Urvi Goel didi, Rishabh Gupta bhaiya, Shraddha Khapra didi,... and the list goes on... 😁😁. Who's next? 🤔
@piyushverma415
@piyushverma415 4 жыл бұрын
first ques can be solved using a single while loop to decrease its time complexity...
@vscreation2184
@vscreation2184 2 жыл бұрын
How he used and in while loop generally we && for checking conditions actually this works in python
@aditisharma842
@aditisharma842 3 жыл бұрын
Just print a[j][i] to get transpose no need of swap operation
@sohamDevRel
@sohamDevRel 4 жыл бұрын
Please increase the frequency of uploading videos. The content is awesome!
@mdateeque3997
@mdateeque3997 4 жыл бұрын
Hitler reacting to IIT-JEE RESULTS:- kzbin.info/www/bejne/e5rSc2aLgJt8iK8
@mdateeque3997
@mdateeque3997 4 жыл бұрын
200 likes and 0 dislikes (all haters are asleep).
@forprofessionalusage2
@forprofessionalusage2 4 жыл бұрын
last guy voice is simple and complex xD very good last bhaiya xD
@vishalkarmakar418
@vishalkarmakar418 3 жыл бұрын
Last mein konse bhaiya ne smjhaya tha jo bhi h bhot mst smjhaya hain maza aagya 🔥🔥🔥
@HiteshKumar-si4ok
@HiteshKumar-si4ok 3 жыл бұрын
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
@trimbakrajitkar4536
@trimbakrajitkar4536 2 жыл бұрын
u are just priting but original matx not changed
@vaibhavs2740
@vaibhavs2740 Жыл бұрын
damn
@BTEEEHarshChauhan
@BTEEEHarshChauhan 3 жыл бұрын
Sir, we can start from 0,0 or n,n for searching by forcing our search from either way and then checking the condition.
@LLTletslearn
@LLTletslearn 2 жыл бұрын
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 ☺️☺️
@yourbestie4138
@yourbestie4138 4 жыл бұрын
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😂😂
@pragatigupta1159
@pragatigupta1159 2 жыл бұрын
Thankyou so much bhaiya for your valuable time , aap ke sath coding karna bahut simple hojata hai
@ayushgoel8277
@ayushgoel8277 4 жыл бұрын
Last question wale bhaiya ke lie to mene subscribe kardia hai
@priyanshukunwar
@priyanshukunwar 3 жыл бұрын
Masterpiece course 🔥
@sourishdutta0999
@sourishdutta0999 2 жыл бұрын
4:20 Transpose #include using namespace std; int main(){ int n; coutn; cout
@manaspandey7243
@manaspandey7243 2 жыл бұрын
Simply cout
@ujjawalmishra858
@ujjawalmishra858 4 жыл бұрын
Thank You so much bhaiya...and whole team #ApnaCollege
@mukulchambial301
@mukulchambial301 3 жыл бұрын
Thanks for this wonderful lecture 🙌🙌
@ManishYadav-lg2qr
@ManishYadav-lg2qr 3 жыл бұрын
Shradha Khapra is love. Great Explanation
@AbhishekKumar-td5zu
@AbhishekKumar-td5zu 4 жыл бұрын
Tqsm bhaiya ♥️♥️
@soumojitchowdhury151
@soumojitchowdhury151 3 жыл бұрын
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
@manavsharma142
@manavsharma142 2 ай бұрын
Last person explained so well
@rankitgujjar80
@rankitgujjar80 3 жыл бұрын
in the first question just exchange i and j , you will get the transpose
@pavitragautam2448
@pavitragautam2448 3 жыл бұрын
THANKS FOR THE VIDEO.... AMAZING EXPLAINATION....
@karanchandak5667
@karanchandak5667 2 жыл бұрын
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
@karanchandak5667
@karanchandak5667 2 жыл бұрын
I was doing some random trial and found this🤣🤣 @Apna College
@kashishshukla23
@kashishshukla23 3 жыл бұрын
that bhaiyaa (matrix search vaale) explains really well... ^_^
@solvinglife6658
@solvinglife6658 2 жыл бұрын
transpose wale me direct a [j][i] se karna better option hoga
@fitincubicles
@fitincubicles 3 жыл бұрын
You are life saviour for students like me love you Apna College and Aman bhaiya😍
@sharma_atul_06
@sharma_atul_06 6 ай бұрын
last explanation was superb
@rajansingh1919
@rajansingh1919 3 жыл бұрын
top faculties is the world...👌👌👌👌
@harjassingh8588
@harjassingh8588 3 жыл бұрын
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.
@onkarnagarkar4693
@onkarnagarkar4693 3 жыл бұрын
try finding target=3 in the below array with the same logic 1 2 3 4 5 6 7 8 9
@deepanshsharma5970
@deepanshsharma5970 4 жыл бұрын
Thank you bhaiya and all teachers 😍
@divyaalakute5412
@divyaalakute5412 2 жыл бұрын
in the last cout>>a[i][j] is not give proper o/p instead that cout>>a[j][i] gives right ans
@sahilsawal
@sahilsawal 4 жыл бұрын
Thank You Ma'am & Sir 😇🙏👍
@modern_gurukul_24x7
@modern_gurukul_24x7 3 жыл бұрын
Epic Moment : When you saw that matrix search could be that simple. Meanwhile : Bhaiya's expression ye sab toh bacho ka khel hai.
@amalasebastian9968
@amalasebastian9968 3 жыл бұрын
Aare wah... The last guy was lit.. Seriously
@vidheelgujarati2906
@vidheelgujarati2906 3 жыл бұрын
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?
@chetanwarrior3338
@chetanwarrior3338 3 жыл бұрын
Thanks bhaiya for explaining so well
@utkarshrai101cartoonwala
@utkarshrai101cartoonwala 3 жыл бұрын
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
@pritishpattnaik4674
@pritishpattnaik4674 4 жыл бұрын
give more questions from gfg , hacker rank , etc..
@rohinhodkasia3027
@rohinhodkasia3027 2 жыл бұрын
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_man1138
@bat_man1138 3 жыл бұрын
I knew today that temp is for "temporary" lol man
@lifeoeshita
@lifeoeshita 4 жыл бұрын
Bhaiya ak telegram group bana do na. Jis par hum sab doubts puch sake. If you also want then hit like
@starkendeavours7072
@starkendeavours7072 3 жыл бұрын
@22:16 did anybody noticed? He is writing " and " in while loop instead "&&", still his code is running correctly, without any compilation error.😲😲😲 LOL...
@mukulchopra3378
@mukulchopra3378 3 жыл бұрын
i'm also thinking this ,.... how ??
@dhairyashah4167
@dhairyashah4167 3 жыл бұрын
for transpose of matrix ig there is a mistake int j=0(i got required output by this one) and not j=i
@sunilj3553
@sunilj3553 4 жыл бұрын
Webdevlopment ki classes kab se start hogi ?
@shivamchaturvedi4336
@shivamchaturvedi4336 4 жыл бұрын
lgta h agla google tu hi bnayega
@eshaaislive5741
@eshaaislive5741 3 жыл бұрын
@@shivamchaturvedi4336Nice Joke... 🤣🤣
@shaileshhacker
@shaileshhacker 2 жыл бұрын
0:00 - 7:00 Only Lengends know that this voice is Our Shradha Didi
@dhruvnaik5317
@dhruvnaik5317 3 жыл бұрын
Can't make new matrix instead of swaping a =d but with same concept of ij=ji and then d matrix print kar denge
@Justdoing185
@Justdoing185 3 жыл бұрын
Matrix search bale bhaiya ap Neo ho In this field (Neo in matrix movie ) Sarbasaktiman Neo bale bhaiya ❤️
@nikhilmehra613
@nikhilmehra613 4 жыл бұрын
Ek exact time pr video daala kro plz.But thanks for that content ❤️
@012_mohdsameer7
@012_mohdsameer7 3 жыл бұрын
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
@vikasmaurya3905
@vikasmaurya3905 4 жыл бұрын
U R ALL AMAZING 😊😊, THANK U SO MUCH.....
@sagarmahajan1756
@sagarmahajan1756 3 жыл бұрын
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!
@shivammaurya3451
@shivammaurya3451 4 жыл бұрын
Thank you mam and aman bhaiya best explanation best solution 😃❤🖤
@deep90402
@deep90402 4 жыл бұрын
Nice video , plz try to share videos daily.
@sampakhan2879
@sampakhan2879 2 жыл бұрын
A little heads up if ur facing problems with the last code Add a break after found=true
@akashthoriya
@akashthoriya 4 жыл бұрын
Great efforts, thank you
@Roshansingh-yq9vb
@Roshansingh-yq9vb 3 жыл бұрын
explanation was greattt
@akshitsingh5912
@akshitsingh5912 4 жыл бұрын
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!!
@abhinavchaudhary1186
@abhinavchaudhary1186 3 жыл бұрын
Yes, you are the only one
@gamerzone1013
@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
@SeotiSen
@SeotiSen 4 жыл бұрын
Bhai, ye kaun hai🙄 jo 1:40am pei vdo mai dislike marne aya; jake soh jao.
@niladriroy1665
@niladriroy1665 4 жыл бұрын
Vai tu 18 hrs Phle kaise comment kiya? Video premier pe tha kya?
@pradnyamore7774
@pradnyamore7774 3 жыл бұрын
Excellent explanation mam🧡
@eduhub1095
@eduhub1095 4 жыл бұрын
Please increase frequency please I requeste you
@syedmizbahuddin9390
@syedmizbahuddin9390 4 жыл бұрын
Sir, What is the time complexity of second algorithm of matrix search problem...?? Is it O(m+n) ...?
@abhinandankainth
@abhinandankainth 4 жыл бұрын
Yes
@mostviewedreels872
@mostviewedreels872 4 жыл бұрын
Yes
@shreyashagrawal2264
@shreyashagrawal2264 3 жыл бұрын
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)
@abhishekanavekar1147
@abhishekanavekar1147 3 жыл бұрын
@ 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).
@rameshmalhotra9525
@rameshmalhotra9525 2 жыл бұрын
kzbin.info/www/bejne/a3fWepRqgtVmntE
10. Character Arrays | C++ Placement Course
12:53
Apna College
Рет қаралды 396 М.
Who's spending her birthday with Harley Quinn on halloween?#Harley Quinn #joker
01:00
Harley Quinn with the Joker
Рет қаралды 22 МЛН
When u fight over the armrest
00:41
Adam W
Рет қаралды 24 МЛН
14.2 BIT Manipulation Challenges | C++ Placement Course
15:30
Apna College
Рет қаралды 240 М.
2D Arrays in C++ | Part 1 | DSA Series by Shradha Ma'am
37:31
Apna College
Рет қаралды 24 М.
Two-Dimensional (2D) Arrays in C++ ( Urdu/Hindi)
18:41
IT Series
Рет қаралды 28 М.
8.5 Arrays - Q's asked by Top MNC's | C++ Placement Course
23:51
Apna College
Рет қаралды 590 М.
11. Pointers in C++ | Guaranteed Placement Course
19:03
Apna College
Рет қаралды 669 М.
Introduction to Two-Dimensional (2D) Arrays
10:20
Neso Academy
Рет қаралды 707 М.
13.2 Strings Challenges | C++ Placement Course
11:52
Apna College
Рет қаралды 323 М.
Lec-6: 2D Arrays | Addressing in 2D Arrays | Row Major Order
8:21
Gate Smashers
Рет қаралды 112 М.