9.1 Two Dimensional Arrays | 2D Arrays | C++ Placement Course

  Рет қаралды 566,958

Apna College

Apna College

Күн бұрын

Пікірлер: 558
@ApnaCollegeOfficial
@ApnaCollegeOfficial 4 жыл бұрын
Due to some technical glitch, we were not able to upload any video from the last 2 days.
@utkarshkumarsingh9012
@utkarshkumarsingh9012 4 жыл бұрын
Sir bas ek baar bta dia karo andar se daar lagne lgta hai😂
@sushilchaurasia
@sushilchaurasia 4 жыл бұрын
Nice ❤️💚 bhai
@Sams-jm3np
@Sams-jm3np 4 жыл бұрын
Webdev kab aayega bhiaya?
@jatingarg1897
@jatingarg1897 4 жыл бұрын
No problem bhaiya. Just upload those now immediately.
@snehilsinha5624
@snehilsinha5624 4 жыл бұрын
Koi baat nahi bhaiya. Your efforts are unmatched. Aur acha hi hua ki nhi dala video. Pichla 2 video karne me itna dimaag laga ki 2 din usi me lag gaya 🤣😂😂
@Ankit2940
@Ankit2940 8 ай бұрын
This is the first lecture from this channel that I didn't understand😢😢 otherwise all the videos are very helpful for me but this is...😢😢..😢😢
@pro8ballpoolpro8ballpool
@pro8ballpoolpro8ballpool 5 ай бұрын
Me too
@vidhanpatni8338
@vidhanpatni8338 Жыл бұрын
In spiral order traversal, those who are getting 29 twice in the output, actually you'll have to add a check before the inner last two for loops to prevent unnecessary iterations. Code: ``` #include using namespace std; using ll = long long; int main() { int n, m; cin >> n >> m; int arr[n][m]; for (int i = 0; i < n; i++) { for (int j = 0; j < m; j++) { cin >> arr[i][j]; } } // spiral order traversal int row_start = 0; int col_start = 0; int row_end = n - 1; int col_end = m - 1; int cnt = n * m; // To count total elements left for printing while (row_start
@EvenHeisenbergIsCertainAboutMe
@EvenHeisenbergIsCertainAboutMe Жыл бұрын
Thank you so much mate🫂❤️
@sharma_atul_06
@sharma_atul_06 6 ай бұрын
thanks for idea
@parthapratimghose173
@parthapratimghose173 3 жыл бұрын
yes i also got the repeat of 29 using the original code so a simple solution to this is use a count that is row*column and - it for every element printed and if count==0 stop loop break out and prevent any of the inner loops from running ! did the job !
@rohandeshmukh3989
@rohandeshmukh3989 3 жыл бұрын
thanks brother
@anchalmehandiratta8497
@anchalmehandiratta8497 3 жыл бұрын
Corrected last code(spiral traversal) #include using namespace std; int main() { int n,m; cin>>n>>m; int a[n][m]; for(int i=0;ia[i][j]; } } int row_start=0,col_start=0,row_end=n-1,col_end=m-1; while(row_start
@prateeksingh7832
@prateeksingh7832 3 жыл бұрын
i want to ask how did you think it that things might go wrong if you dont apply if conditions in 3rd ,4th 'for' loop
@adityasrivastava7563
@adityasrivastava7563 3 жыл бұрын
#include using namespace std; int main() { int n,m; cin>>n>>m; int a[n][m]; for(int i=0;ia[i][j]; } } //for spiral order print int row_start=0,row_end=n-1,column_start=0,column_end=m-1; while(row_start
@groundedgamer
@groundedgamer 3 жыл бұрын
well i think you should take a look at this a bit less complex to comprehend and solves the same bug that video's code had (that if we enter an array of sizes let's say r (odd num) and c (consecutive odd num) then it will provide r*c + x(unknown) number of elements as spiral output instead of r*c so here's my version but simpler than yours #include using namespace std; int main() { int r,c,minr=0,minc=0; cin>>r>>c; int maxr=r-1,maxc=c-1; int a[r][c]; for(int i=0;ia[i][j]; } } int count=0; while(count < r*c) { for(int i=minr;i
@quotedcaprio3895
@quotedcaprio3895 3 жыл бұрын
why didn't we dynamically input our 2d array here??
@anushthakumari2393
@anushthakumari2393 3 жыл бұрын
@@groundedgamer would u mind explaining your code once more. I am not able to understand your code.
@developerNik
@developerNik Жыл бұрын
2D array declare a[n][m] se krte hai aur n rows ke liye hota hai aur m columns ke liye input lene ke liye for(i=0 se n-1) ke andar for(j=o se m-1) me cin krenge similar for cout aur simple search ke liye bhi wahi karenge Now printing in spiral order me ham 4 parameters lete hai row_start=0 row_end= n-1 col_start=0 aur col_end= m-1 while(Rs
@pranjalbajpai156
@pranjalbajpai156 3 жыл бұрын
Karat karat abhayas te janmat hoye sujan...rasri avat jat te sil par pade Nishan..🔥✌
@pi17
@pi17 3 жыл бұрын
Keep up the hard work!
@aftabk1013
@aftabk1013 4 жыл бұрын
Rishabh Gupta - A peaceful soul 😂
@shambhavamchoudhary2867
@shambhavamchoudhary2867 3 жыл бұрын
🤣🤣🤣 sbse upar likha h
@aishwaryamishra5671
@aishwaryamishra5671 3 жыл бұрын
Thank you Apna College Team for making me understand the code so well. I am glad I found your channel. You guys are doing a great job. More power to you.
@shreyaschavhan5522
@shreyaschavhan5522 4 жыл бұрын
2D array declaration -\ 0:15 Taking and Printing Output -\ 2:03 Searching a Matrix -\ 5:15 Spiral Order Matrix Traversal -\ 7:45
@ProductionReadyApp
@ProductionReadyApp 4 жыл бұрын
There is a bug in Spiral matrix traverse code. You have to also use an if statement " if(row_start
@shivikabahri7113
@shivikabahri7113 3 жыл бұрын
hey! I dont think that an if statement is necessary here as the for loop itself checks the condition first. This code works perfectly fine with rectangular matrices.
@a_85_viveksinghyadav60
@a_85_viveksinghyadav60 3 жыл бұрын
@@shivikabahri7113 check for 6x3 matrix.
@extremesatyaiitjeeair1980
@extremesatyaiitjeeair1980 3 жыл бұрын
we can actually even put || instead of && and it still works perfectly
@sourabhsingh5731
@sourabhsingh5731 3 жыл бұрын
@@shivikabahri7113The code discussed in this video is not working for rectangular matrix. I submitted this code on gfg and it gave WA for testcase of 3*5 matrix
@Mohammad_ArshadAli
@Mohammad_ArshadAli 2 жыл бұрын
thank you.....u are correct .....now the code will work for big rectangular matrices also
@Special_moment_
@Special_moment_ Жыл бұрын
Thank you apna college team , following this amazing course has been a great experience , however some videos contains advanced level questions but I think they are required to boost up your level and thinking ability. Once again thanking you all for this amazing free content🙏
@abhinavsaxena9846
@abhinavsaxena9846 2 жыл бұрын
This approach is giving TLE on larger Inputs look for a better approach
@ayushaditya8951
@ayushaditya8951 3 жыл бұрын
I am a fresher and completed all programming courses from your channel. Thanks bhaiya ✌✌✌
@amanahmed6057
@amanahmed6057 3 жыл бұрын
naach AB
@chinmayadutta8207
@chinmayadutta8207 3 жыл бұрын
You need to put two conditions : After incrementing row_start an if condition should be there if(row_start > row_end) break; Similarly after decrementing the column_end check if(column_start>column_end) break;
@fatmazafar8006
@fatmazafar8006 3 жыл бұрын
When he check same condition at while loop, so why there's need of again if statement for checking same condition??
@enigmanarratives1
@enigmanarratives1 3 жыл бұрын
@@fatmazafar8006 assume row start and row end was same in the beginning so it passed while loop bt after first for loop start increased and it is still gonna go in the third for loop thats why we are checking the condition over there also.
@prajjawalkushwaha4352
@prajjawalkushwaha4352 4 жыл бұрын
@Apna College in the last code, the final output must also contain '29' after '30' . i code the same program in my lappy and it showed 29 after 30 cuz the "third" for loop inside while loop will execute one more time as the condition would hold true in the THIRD for loop. SEE BELOW for( int row=2; row>=2; row - -) { cout
@pranchalkushwaha7407
@pranchalkushwaha7407 4 жыл бұрын
haa mera bhi yahi problem hai...... 1 5 7 9 10 11 21 41 70 105 95 81 79 70 40 15 9 6 10 12 13 20 32 68 63 59 55 25 29 30 29 ye last waala 29 extra hai... Code same hai phir bhi....
@sunnyrawat931
@sunnyrawat931 3 жыл бұрын
@@pranchalkushwaha7407 code sahi ni h mai pura din dekhra tha aj sar drd kra dia kaha glti hui mjse lol
@nandk45523
@nandk45523 3 жыл бұрын
spiral order ki explanation super bhaiya:))
@ashokdalai4818
@ashokdalai4818 4 жыл бұрын
We tremendously appreciate aman bhaiya..You are doing a huge help to us thank you thank you very much..Bhaya we are eagerly waiting for web dev courses..
@rutvikrana512
@rutvikrana512 4 жыл бұрын
Extra must know points. You can not directly initialise 2D array as we do in simple array. So we can use memset to initialise it quickly. You can not pass 2d array address to function and use it. Ex. void fun(int & matrix[][] ) { } C++ don’t allow this. So if you want to give reference of 2D array than use different way to initialise it. By making pointer of pointer. int **matrix = new int *[ 10 ] ; for (int i = 0; i
@anubhavchauhan1485
@anubhavchauhan1485 4 жыл бұрын
Woah! Nice comment, Quite useful!
@ashishredhu2379
@ashishredhu2379 2 жыл бұрын
Shradha didi ki voice sabse clear aati h ! 😊😊
@soumilbanik1128
@soumilbanik1128 4 жыл бұрын
Bhaiya, At the end the video, you told us to practice Different types of programming and learn Algorithms. It'll be great if you recommend some sources to practice from.
@karanray6023
@karanray6023 4 жыл бұрын
Codechef
@trigunadityapnd
@trigunadityapnd 3 жыл бұрын
HackerRank is better for beginners
@ChaoticBeing-yj3ij
@ChaoticBeing-yj3ij Жыл бұрын
Leetcode
@ShubhamSharma-qv7ol
@ShubhamSharma-qv7ol 4 жыл бұрын
Bhaiya, Please turn on the monetization. It's a humble request. Pleaseeeeeeee.
@deepakchoudhary5908
@deepakchoudhary5908 4 жыл бұрын
Why
@omkarsulebhavikar1338
@omkarsulebhavikar1338 4 жыл бұрын
Yes, plzz u don't need to prove anything to anyone
@_rahulsain
@_rahulsain 4 жыл бұрын
@@omkarsulebhavikar1338 There is not only one way to earn money bhaiya knows what he is doing and how will he get back his investment
@St.LaurentDon
@St.LaurentDon 4 жыл бұрын
@@_rahulsain Hey I contributed in your git hub repository What a pleasant surprise Do you know I completed this year's hactoberFest challenge Thank you for approving my 2 pull request...
@_rahulsain
@_rahulsain 4 жыл бұрын
@@St.LaurentDon Hey, nice to hear I am glad
@Pratyush_Srivastava24
@Pratyush_Srivastava24 4 жыл бұрын
Amazing video, best course , but Missing her voice 💓.
@abhinavjoshi1902
@abhinavjoshi1902 3 жыл бұрын
padhle bhai
@sourabhsingh5731
@sourabhsingh5731 3 жыл бұрын
Men will be men
@devanshsingh4766
@devanshsingh4766 4 жыл бұрын
I am loving these videos seriously! Finally I am starting to spend the lockdown productively!
@devanshsingh7035
@devanshsingh7035 3 жыл бұрын
Hey there my earlier self, how far are you now in your coding journey?
@manoharsingh-rt9hi
@manoharsingh-rt9hi 3 жыл бұрын
how far who are now in codding bro!!!
@souravmaji4712
@souravmaji4712 4 жыл бұрын
Bhaiya ,please jald se jald saare videos upload kijiye na. It's a request from my side
@QWERTY-135
@QWERTY-135 4 жыл бұрын
Hitler reacting to IIT-JEE RESULTS:= kzbin.info/www/bejne/e5rSc2aLgJt8iK8
@TourismFunFriends
@TourismFunFriends Жыл бұрын
Thank u so much Before this video, matrix was hard for me
@mikansenpai2280
@mikansenpai2280 3 жыл бұрын
if i crack an interview; meri first salary to aman bhaiya aur team main jaigi thank you aman bhaiya ❤
@nandk45523
@nandk45523 3 жыл бұрын
selection pakka hai
@codingwithritik5319
@codingwithritik5319 2 жыл бұрын
Thankyou apna college for the wonderfull content
@AkibHussain
@AkibHussain 3 жыл бұрын
Dono bhaiya ne mast padhaya✌🏻🤝
@piyushbhagwat3119
@piyushbhagwat3119 3 жыл бұрын
Rishabh Gupta - A peaceful soul
@shivamsingh20
@shivamsingh20 3 жыл бұрын
usually, I don't write comments(in any type of content) but sir let me tell u, the explanation in today's video was the best, I ever had.
@ananjaygurjar
@ananjaygurjar 3 жыл бұрын
Check the last code for 3*4 matrix, it repeats one(second last) element.
@RaviShankar-ow9pu
@RaviShankar-ow9pu 3 жыл бұрын
yes buddy so how did u handle this bug!!!???
@yugpratapgupta7534
@yugpratapgupta7534 3 жыл бұрын
same doubt bro
@sameerraj5800
@sameerraj5800 3 жыл бұрын
Same is happening with me also. What to do?
@mufaddal110
@mufaddal110 3 жыл бұрын
Solution is simple check the condition of while loop inside before using for loop because for some for loops variable changes inside itself. #include using namespace std; int main() { int row, col; cin >> row >> col; //allocate the array int **arr = new int *[row]; for (int i = 0; i < row; i++) arr[i] = new int[col]; cout arr[i][j]; } } cout
@ayushgupta2537
@ayushgupta2537 3 жыл бұрын
@@sameerraj5800 Har for loop mei ">=" ya "
@couldbenimish
@couldbenimish 4 жыл бұрын
Good explanation, at least he was clear this time!✌
@prajjavalsrivastsva7037
@prajjavalsrivastsva7037 3 жыл бұрын
I'm getting SIGTERM in received output can you please help??
@vishesh_pandey
@vishesh_pandey 3 жыл бұрын
Toh is video series k 2 D array tak pahuchane k baad views bahut kam dikh rahe hai... Agar aap yaha tak pahuche toh well done..👍
@shailysoni2713
@shailysoni2713 3 жыл бұрын
Little bit difficult to understand ,btw you guys are amazing 👍
@sanketsonje8290
@sanketsonje8290 4 жыл бұрын
I think this algo prints more content when we have array= {{1,2, 3, 4 }, { 5, 6, 7, 8 }, {9,10,11,12}}; like this. and hence we have to add some conditions. Mu code for this is : - #include #include using namespace std; int main() { int row,col; row = 3; col = 4; int arr[row][col] = { { 1, 2, 3, 4 }, { 5, 6, 7, 8 }, { 9, 10, 11, 12 } }; int row_start = 0; int row_end = row - 1; int col_start = 0; int col_end = col - 1; /* 0 1 2 1 2 3 2 3 4 */ while(row_start
@notvishesh
@notvishesh 4 жыл бұрын
Yes, you're right. I too came across this case and found the same solution.
@ronitsingh9717
@ronitsingh9717 4 жыл бұрын
I was looking for this solution.In video its wrongly taught.Thank you.
@pradyumnmishra3459
@pradyumnmishra3459 4 жыл бұрын
Thanks aman bhaiya and team for your hardwork and efforts.🙏
@smilemakermanoj3866
@smilemakermanoj3866 3 жыл бұрын
Manoj kumar :) a peaceful soul🤗
@harshitsahu2704
@harshitsahu2704 4 ай бұрын
more effective way to take input or output for 2d array time complexity =O(n) int i = 0; int limit = 0; for (int x = 0; x < m * n; x++){ cout
@Riyanshu_07
@Riyanshu_07 3 ай бұрын
I actually enjoyed this concept..🙋🏻‍♂
@abhisheksahani4481
@abhisheksahani4481 4 жыл бұрын
You guys are killing it
@StoryGicRohit
@StoryGicRohit 3 жыл бұрын
Rishab Bhaiya OP .... Respect ++
@SakshiPatil_
@SakshiPatil_ 4 жыл бұрын
Bhaiya please daily upload Kiya karo and thanks for such great content ❤️❤️
@rohitgupta-sy7ps
@rohitgupta-sy7ps 3 жыл бұрын
Rishabh Gupta- a peaceful soul
@AbhishekKumar-eh1ed
@AbhishekKumar-eh1ed 4 жыл бұрын
The notes of the searching array are not yet uploaded and new videos are not coming frequently in this series, please upload soon. Regards Abhishek.
@QWERTY-135
@QWERTY-135 4 жыл бұрын
Hitler reacting to IIT-JEE RESULTS:= kzbin.info/www/bejne/e5rSc2aLgJt8iK8
@HarshKumar-kv3xs
@HarshKumar-kv3xs 4 жыл бұрын
it takes us some time to make the video. We are trying our best.
@lakshaykapoor7502
@lakshaykapoor7502 4 жыл бұрын
@@HarshKumar-kv3xs web d ka course kab tak ayega
@darshyadav6964
@darshyadav6964 3 жыл бұрын
The last code is giving some wrong output, try input: 1 3 1 2 3 The solution should be 1 2 3 ,but this code gives output 1 2 3 2 1
@vikassuthar3777
@vikassuthar3777 3 жыл бұрын
Two if statements are missing
@taiburay389
@taiburay389 4 жыл бұрын
Thanks you Aman bhaiya and your team. One day I will make app
@shivammaurya3451
@shivammaurya3451 4 жыл бұрын
Thank u sir and aman bhaiya best content and explanation😍
@_Deepak__Verma
@_Deepak__Verma 11 ай бұрын
Question was really quiet tough but help to build logic
@rishovbarai
@rishovbarai 3 жыл бұрын
Guys there is a bug for even number of columns, the logic is printing one extra cout at last.. coz as at last, condition col_end and col_start is true
@jatanverma984
@jatanverma984 3 жыл бұрын
Good video but you should scroll down before writing code so we can see it clearly
@captainayaan
@captainayaan 2 жыл бұрын
Who is the lecturer in this video ? He is quite the teacher.
@deepadixit5719
@deepadixit5719 3 жыл бұрын
A peaceful soul ❤️❤️
@adityabhansinghrathore
@adityabhansinghrathore 4 жыл бұрын
Why both the last videos are not available Aman Bhaiya? Any clue??
@ApnaCollegeOfficial
@ApnaCollegeOfficial 4 жыл бұрын
Don't worry, they were failed uploads of this lecture (9.1). We have now removed them from the playlist.
@rajeshjha6801
@rajeshjha6801 4 жыл бұрын
@@ApnaCollegeOfficial grateful
@shivprakashchaubey2721
@shivprakashchaubey2721 4 жыл бұрын
Matrix is most important for programming lovers❤❤❤
@TheAbhidugar
@TheAbhidugar 3 жыл бұрын
bhaiya thoda aur detail me expalin kariye; bahut tez ho raha sab kuch; AND THANK YOU SO MUCH FOR ALL YOUR EFFORTS.
@suvanshmahajan4683
@suvanshmahajan4683 3 жыл бұрын
The code given in video for spiral value problem is little incorrect. The correct code is #include #include #include using namespace std; /* */ int main(){ int rows,columns; coutrows; coutcolumns; int arr[rows][columns]; for(int i=0;i
@ibnebatuta4868
@ibnebatuta4868 Жыл бұрын
i,j are not initialized so, how will compiler accept them
@peeyushnaik5125
@peeyushnaik5125 5 ай бұрын
superb explanation
@upamadutta5741
@upamadutta5741 4 жыл бұрын
Yeeee,agyi video🤩🤩
@aryansharma-wf8sn
@aryansharma-wf8sn 4 жыл бұрын
How many of you saw Rishabh Gupta -a peaceful soul 😂😂😇😇😇😇
@computersciencelover3177
@computersciencelover3177 3 жыл бұрын
Thank you so much 💗💛 God bless you 🙏
@yashwanth8058
@yashwanth8058 4 жыл бұрын
When will you upload videos of web development course bhaiya ?? Please upload them..
@fatmazafar8006
@fatmazafar8006 3 жыл бұрын
Mostly cmmnt "there's missing if statement" But tell me guyzz When he check same condition at while loop, so why there's need of again if statement for checking same condition??...
@noorfatima972
@noorfatima972 Жыл бұрын
I have to make a final project in c++ for university.Can anyone guide me what should i make and which project will be impressive?
@1Ase
@1Ase 4 жыл бұрын
Why you removed numbering of the videos?Plz. number them again so that we can easily get an access to the old videos .
@vishalvermaa._
@vishalvermaa._ 4 жыл бұрын
Aman bhaiya python series kab se upload karoge🙏🙏🙏🙏🙏🙂
@dailylearning8386
@dailylearning8386 4 жыл бұрын
Best channel yr💖💖💖
@ritulbhatnagar1502
@ritulbhatnagar1502 3 жыл бұрын
#Rishab gupta == A peacefull soul 😎😎😎
@pavankumar-gp9zx
@pavankumar-gp9zx 3 жыл бұрын
0:20 2d array and questions 7:45 spiral order matrix traversal
@vengalrao5772
@vengalrao5772 2 жыл бұрын
🥲
@deepanshugupta4559
@deepanshugupta4559 3 жыл бұрын
2-3 baar lg gye code smajhne m 😂😂😂
@abhishekc3556
@abhishekc3556 4 жыл бұрын
Monetise kardo bhaiyya. Koi dikkat nahi
@amberafreen8385
@amberafreen8385 2 жыл бұрын
At the end of the video " SUB PHOD DO.......mee......cell phone phod Diya😂😂😀.......
@rohitbadgujjar937
@rohitbadgujjar937 Жыл бұрын
You have a great team sir and sir keep doing it😊😊😊😊
@h2oarindam789
@h2oarindam789 3 жыл бұрын
CONTENT WAS REALLY HELPFULL, AUDIO WAS NOT CLEAR THO
@bapanghosh166
@bapanghosh166 2 жыл бұрын
There is some error in the Spiral matrix : correct it : the code is Runtime: 0 ms, faster than 100.00% of Java online submissions for Spiral Matrix. in leetcode class Solution { public List spiralOrder(int[][] matrix) { int rowStrt = 0, columnStrt = 0, rowEnd = matrix.length-1, columnEnd = matrix[0].length-1; List list=new ArrayList(); while(rowStrt
@yogeshkumarpandey2343
@yogeshkumarpandey2343 4 жыл бұрын
Haters starts disliking the video.
@aplusentertainment3861
@aplusentertainment3861 3 жыл бұрын
mast explanation bhaiya
@itsmepiyushsaha
@itsmepiyushsaha 4 жыл бұрын
I think teaching is too fast and lacks explanation for beginners whose first course is this one. Please look into it, else everything is ♥️
@pratikraj9995
@pratikraj9995 3 жыл бұрын
bhaiya kv volume high ho jata he kv vol bhutt low ho jata hee ,sharee video me uhee same problem he, ,aur sbhh kuch bahutt hi achaa he
@jaysoni4180
@jaysoni4180 Жыл бұрын
Corrected code :- #include using namespace std; int main(){ int n,m; cin>>n; cin>>m; int arr[n][m]; for(int i=0;iarr[i][j]; } } //Spiral Order Traversal Code int row_Start=0; int col_Start=0; int row_End=n-1; int col_End=m-1; int count=m*n; while(row_Start
@TooStrongTNT
@TooStrongTNT Жыл бұрын
thx bud
@zeeshanazhar5909
@zeeshanazhar5909 Жыл бұрын
I am making a project about contact list but our instructor didn't tell about 2-D arrays so,plz give a exemple of contact with this
@sakhtizarurihai6909
@sakhtizarurihai6909 3 жыл бұрын
Dislikers are the ones who were making handwritten notes😂😂
@khumbharedeep2159
@khumbharedeep2159 3 жыл бұрын
superb sir very well explained
@rishabhsingh2745
@rishabhsingh2745 Жыл бұрын
Wao awesome..
@salahuddin13
@salahuddin13 Жыл бұрын
Correction: In this matrix print the last digit 29 after 30 because it gets equal instant. solve the problem we have to check every iteration for the last end_row and start_column: code: #include using namespace std; int main(){ int n,m; cin>>n>>m; int a[n][m]; for (int i = 0; i a[i][j]; } } int row_start=0,row_end=n-1,column_start=0,column_end=m-1; while (row_start
@gamermanpc9215
@gamermanpc9215 4 жыл бұрын
Nicely explained👍
@ghulammohiuddin2163
@ghulammohiuddin2163 Жыл бұрын
Yeh bnda zada sahii
@abhishekabhinav4140
@abhishekabhinav4140 4 жыл бұрын
Can anyone solve this plzz..??? int X( int N) { if(N < 3) return 1 ; else return X(N-1) + X(N-3) + 1 ; } How many times is the function X is called when (x (5)) is evaluated and what is the value?
@couldbenimish
@couldbenimish 4 жыл бұрын
Function is getting called 8 times, and the final value is 3
@AMaN-iq8nw
@AMaN-iq8nw 4 жыл бұрын
7 times run and answer is 7
@lovedsa3719
@lovedsa3719 4 жыл бұрын
Here u miss corner cases and a check at last 2 for loops
@ALEX-fp7mr
@ALEX-fp7mr 10 ай бұрын
vector spirallyTraverse(vector& v, int r, int c) { vector ans; int row_start = 0, row_end = r - 1; int col_start = 0, col_end = c - 1; while (row_start
@shivikabahri7113
@shivikabahri7113 3 жыл бұрын
can somebody please explain why the output of this code isn't printing 29 again after 30 since no if conditions are applied to the 3rd and 4th for loops? because when i run the same code in my IDE , its printing an extra 29 after 30.
@CodersHubYoutube
@CodersHubYoutube 3 жыл бұрын
m getting same issue
@GauravSharma-ij1ym
@GauravSharma-ij1ym 3 жыл бұрын
If statements are missing in the code given above
@lalitshah7867
@lalitshah7867 4 жыл бұрын
Bhaiya bahut achha hai
@swastikjain7373
@swastikjain7373 4 жыл бұрын
Last program so epic..
@srijanparia3552
@srijanparia3552 Жыл бұрын
There are some corner cases for which this spiral matrix code not gonna work.
@playwithcandles
@playwithcandles 4 жыл бұрын
hello sir some of your video is in private mode can you convert it to public
@calpolgaming828
@calpolgaming828 2 жыл бұрын
video is very helpful but your voice is not clear
@tanzeelahmed2055
@tanzeelahmed2055 3 жыл бұрын
Please give us some exercises to work on...
@kamalkumar7133
@kamalkumar7133 4 жыл бұрын
Missing Didi"s voice.
@ranjeet5806
@ranjeet5806 4 жыл бұрын
@@kumarharsh90 tera man waisa hai. tereko didi nai dikh rha but kuch aur samj jaroor aarha hai, nais.
@aaryannigam9552
@aaryannigam9552 3 жыл бұрын
can anyone of you explain why they have taken n-1 and m-1 instead of taking n and m, because n and m are the no of rows and columns respectively so why have they reduced it by 1?
@SchrodingerMan
@SchrodingerMan 3 жыл бұрын
because index is starting from 0
@aaryannigam9552
@aaryannigam9552 3 жыл бұрын
@@SchrodingerMan ok,thanks rahul
@sniperharshgaming3047
@sniperharshgaming3047 2 жыл бұрын
i m getting runtime bound in a[n][m] declaration what to do?? #include using namespace std; int main() { int n,m; cin>>n>>m; int a[n][m]; return 0; }
9.2 "2D Array" Challenges | Asked by Top MNC's | C++ Placement Course
24:03
Accompanying my daughter to practice dance is so annoying #funny #cute#comedy
00:17
Funny daughter's daily life
Рет қаралды 11 МЛН
За кого болели?😂
00:18
МЯТНАЯ ФАНТА
Рет қаралды 3,1 МЛН
Two-Dimensional (2D) Arrays in C++ ( Urdu/Hindi)
18:41
IT Series
Рет қаралды 29 М.
ASMR Programming - Spinning Cube - No Talking
20:45
Servet Gulnaroglu
Рет қаралды 4,2 МЛН
2nd year student cracks Paypal | Off-Campus selection | + PPI
31:29
Apna College
Рет қаралды 209 М.
How to STUDY so FAST it feels like CHEATING
8:03
The Angry Explainer
Рет қаралды 1,8 МЛН
The first 20 hours -- how to learn anything | Josh Kaufman | TEDxCSU
19:27
Web Development Complete RoadMap for 2025 | from Basics to Advanced
22:00
31 nooby C++ habits you need to ditch
16:18
mCoding
Рет қаралды 825 М.
11. Pointers in C++ | Guaranteed Placement Course
19:03
Apna College
Рет қаралды 673 М.
Lec-6: 2D Arrays | Addressing in 2D Arrays | Row Major Order
8:21
Gate Smashers
Рет қаралды 118 М.
Accompanying my daughter to practice dance is so annoying #funny #cute#comedy
00:17
Funny daughter's daily life
Рет қаралды 11 МЛН