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

Поділитися
Вставка
  • Опубліковано 18 жов 2024

КОМЕНТАРІ • 557

  • @ApnaCollegeOfficial
    @ApnaCollegeOfficial  4 роки тому +395

    Due to some technical glitch, we were not able to upload any video from the last 2 days.

    • @utkarshkumarsingh9012
      @utkarshkumarsingh9012 4 роки тому +34

      Sir bas ek baar bta dia karo andar se daar lagne lgta hai😂

    • @sushilchaurasia
      @sushilchaurasia 4 роки тому +6

      Nice ❤️💚 bhai

    • @Sams-jm3np
      @Sams-jm3np 4 роки тому +12

      Webdev kab aayega bhiaya?

    • @jatingarg1897
      @jatingarg1897 4 роки тому +7

      No problem bhaiya. Just upload those now immediately.

    • @snehilsinha5624
      @snehilsinha5624 4 роки тому +10

      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 6 місяців тому +12

    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...😢😢..😢😢

  • @vidhanpatni8338
    @vidhanpatni8338 Рік тому +11

    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

  • @parthapratimghose173
    @parthapratimghose173 3 роки тому +15

    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 !

  • @anchalmehandiratta8497
    @anchalmehandiratta8497 3 роки тому +181

    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 роки тому +7

      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 роки тому +2

      #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 роки тому +22

      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 роки тому +1

      why didn't we dynamically input our 2d array here??

    • @anushthakumari2393
      @anushthakumari2393 3 роки тому +2

      @@groundedgamer would u mind explaining your code once more. I am not able to understand your code.

  • @developerNik
    @developerNik Рік тому +1

    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

  • @ProductionReadyApp
    @ProductionReadyApp 3 роки тому +81

    There is a bug in Spiral matrix traverse code. You have to also use an if statement " if(row_start

    • @shivikabahri7113
      @shivikabahri7113 3 роки тому +10

      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 роки тому +2

      @@shivikabahri7113 check for 6x3 matrix.

    • @extremesatyaiitjeeair1980
      @extremesatyaiitjeeair1980 3 роки тому +2

      we can actually even put || instead of && and it still works perfectly

    • @sourabhsingh5731
      @sourabhsingh5731 3 роки тому +4

      @@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 роки тому +1

      thank you.....u are correct .....now the code will work for big rectangular matrices also

  • @aishwaryamishra5671
    @aishwaryamishra5671 3 роки тому +17

    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.

  • @aftabk1013
    @aftabk1013 4 роки тому +80

    Rishabh Gupta - A peaceful soul 😂

  • @shreyaschavhan5522
    @shreyaschavhan5522 3 роки тому +16

    2D array declaration -\ 0:15
    Taking and Printing Output -\ 2:03
    Searching a Matrix -\ 5:15
    Spiral Order Matrix Traversal -\ 7:45

  • @pranjalbajpai156
    @pranjalbajpai156 3 роки тому +12

    Karat karat abhayas te janmat hoye sujan...rasri avat jat te sil par pade Nishan..🔥✌

    • @pi17
      @pi17 3 роки тому

      Keep up the hard work!

  • @abhinavsaxena9846
    @abhinavsaxena9846 2 роки тому

    This approach is giving TLE on larger Inputs look for a better approach

  • @prajjawalkushwaha4352
    @prajjawalkushwaha4352 3 роки тому +7

    @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 3 роки тому +1

      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

  • @devanshsingh4766
    @devanshsingh4766 4 роки тому +35

    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!!!

  • @Riyanshu_07
    @Riyanshu_07 2 місяці тому +1

    I actually enjoyed this concept..🙋🏻‍♂

  • @ashokdalai4818
    @ashokdalai4818 4 роки тому +18

    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..

  • @soumilbanik1128
    @soumilbanik1128 4 роки тому +15

    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.

  • @Special_moment_
    @Special_moment_ Рік тому +3

    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🙏

  • @nandk45523
    @nandk45523 3 роки тому

    spiral order ki explanation super bhaiya:))

  • @codingwithritik5319
    @codingwithritik5319 2 роки тому

    Thankyou apna college for the wonderfull content

  • @TourismFunFriends
    @TourismFunFriends Рік тому

    Thank u so much
    Before this video, matrix was hard for me

  • @ashishredhu2379
    @ashishredhu2379 2 роки тому

    Shradha didi ki voice sabse clear aati h ! 😊😊

  • @piyushbhagwat3119
    @piyushbhagwat3119 3 роки тому

    Rishabh Gupta - A peaceful soul

  • @rutvikrana512
    @rutvikrana512 4 роки тому +3

    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

  • @ananjaygurjar
    @ananjaygurjar 3 роки тому +19

    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?

    • @androrealm6659
      @androrealm6659 3 роки тому +6

      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 "

  • @chinmayadutta8207
    @chinmayadutta8207 3 роки тому +5

    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.

  • @ayushaditya8951
    @ayushaditya8951 3 роки тому +3

    I am a fresher and completed all programming courses from your channel. Thanks bhaiya ✌✌✌

  • @Pratyush_Srivastava24
    @Pratyush_Srivastava24 4 роки тому +11

    Amazing video, best course , but Missing her voice 💓.

  • @ShubhamSharma-qv7ol
    @ShubhamSharma-qv7ol 4 роки тому +83

    Bhaiya, Please turn on the monetization. It's a humble request. Pleaseeeeeeee.

    • @deepakchoudhary5908
      @deepakchoudhary5908 4 роки тому +2

      Why

    • @omkarsulebhavikar1338
      @omkarsulebhavikar1338 4 роки тому +5

      Yes, plzz u don't need to prove anything to anyone

    • @_rahulsain
      @_rahulsain 4 роки тому +7

      @@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 3 роки тому +3

      @@_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 3 роки тому +4

      @@St.LaurentDon Hey, nice to hear I am glad

  • @abhisheksahani4481
    @abhisheksahani4481 3 роки тому +2

    You guys are killing it

  • @couldbenimish
    @couldbenimish 4 роки тому +4

    Good explanation, at least he was clear this time!✌

  • @sanketsonje8290
    @sanketsonje8290 4 роки тому +1

    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 роки тому +1

      Yes, you're right.
      I too came across this case and found the same solution.

    • @ronitsingh9717
      @ronitsingh9717 3 роки тому

      I was looking for this solution.In video its wrongly taught.Thank you.

  • @_Deepak__Verma
    @_Deepak__Verma 10 місяців тому

    Question was really quiet tough but help to build logic

  • @peeyushnaik5125
    @peeyushnaik5125 4 місяці тому

    superb explanation

  • @rohitgupta-sy7ps
    @rohitgupta-sy7ps 3 роки тому

    Rishabh Gupta- a peaceful soul

  • @SakshiPatil_
    @SakshiPatil_ 4 роки тому +2

    Bhaiya please daily upload Kiya karo and thanks for such great content ❤️❤️

  • @AbhishekKumar-eh1ed
    @AbhishekKumar-eh1ed 4 роки тому +16

    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.

    • @mdateeque3997
      @mdateeque3997 4 роки тому +1

      Hitler reacting to IIT-JEE RESULTS:= ua-cam.com/video/EioB3UK6IRM/v-deo.html

    • @HarshKumar-kv3xs
      @HarshKumar-kv3xs 4 роки тому +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

  • @mikansenpai2280
    @mikansenpai2280 3 роки тому +16

    if i crack an interview; meri first salary to aman bhaiya aur team main jaigi
    thank you aman bhaiya ❤

  • @vishesh_pandey
    @vishesh_pandey 3 роки тому +5

    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..👍

  • @smilemakermanoj3866
    @smilemakermanoj3866 3 роки тому

    Manoj kumar :) a peaceful soul🤗

  • @souravmaji4712
    @souravmaji4712 4 роки тому +5

    Bhaiya ,please jald se jald saare videos upload kijiye na. It's a request from my side

    • @mdateeque3997
      @mdateeque3997 4 роки тому

      Hitler reacting to IIT-JEE RESULTS:= ua-cam.com/video/EioB3UK6IRM/v-deo.html

  • @adityabhansinghrathore
    @adityabhansinghrathore 4 роки тому +21

    Why both the last videos are not available Aman Bhaiya? Any clue??

    • @ApnaCollegeOfficial
      @ApnaCollegeOfficial  4 роки тому +5

      Don't worry, they were failed uploads of this lecture (9.1). We have now removed them from the playlist.

    • @rajeshjha6801
      @rajeshjha6801 3 роки тому

      @@ApnaCollegeOfficial grateful

  • @AkibHussain
    @AkibHussain 3 роки тому +1

    Dono bhaiya ne mast padhaya✌🏻🤝

  • @deepadixit5719
    @deepadixit5719 3 роки тому +4

    A peaceful soul ❤️❤️

  • @shivamsingh20
    @shivamsingh20 3 роки тому +2

    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.

  • @StoryGicRohit
    @StoryGicRohit 3 роки тому

    Rishab Bhaiya OP .... Respect ++

  • @shivammaurya3451
    @shivammaurya3451 4 роки тому +1

    Thank u sir and aman bhaiya best content and explanation😍

  • @pradyumnmishra3459
    @pradyumnmishra3459 4 роки тому +7

    Thanks aman bhaiya and team for your hardwork and efforts.🙏

  • @harshitsahu2704
    @harshitsahu2704 3 місяці тому

    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

  • @shailysoni2713
    @shailysoni2713 3 роки тому +6

    Little bit difficult to understand ,btw you guys are amazing 👍

  • @captainayaan
    @captainayaan Рік тому

    Who is the lecturer in this video ? He is quite the teacher.

  • @taiburay389
    @taiburay389 4 роки тому

    Thanks you Aman bhaiya and your team.
    One day I will make app

  • @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

  • @jatanverma984
    @jatanverma984 3 роки тому

    Good video but you should scroll down before writing code so we can see it clearly

  • @darshyadav6964
    @darshyadav6964 3 роки тому +4

    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

  • @aplusentertainment3861
    @aplusentertainment3861 3 роки тому

    mast explanation bhaiya

  • @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

  • @amberafreen8385
    @amberafreen8385 2 роки тому +1

    At the end of the video " SUB PHOD DO.......mee......cell phone phod Diya😂😂😀.......

  • @aryansharma-wf8sn
    @aryansharma-wf8sn 4 роки тому +2

    How many of you saw Rishabh Gupta -a peaceful soul 😂😂😇😇😇😇

  • @1Ase
    @1Ase 4 роки тому +2

    Why you removed numbering of the videos?Plz. number them again so that we can easily get an access to the old videos .

  • @itsmepiyushsaha
    @itsmepiyushsaha 4 роки тому +1

    I think teaching is too fast and lacks explanation for beginners whose first course is this one. Please look into it, else everything is ♥️

  • @computersciencelover3177
    @computersciencelover3177 3 роки тому

    Thank you so much 💗💛
    God bless you 🙏

  • @yashwanth8058
    @yashwanth8058 4 роки тому +5

    When will you upload videos of web development course bhaiya ??
    Please upload them..

  • @shivprakashchaubey2721
    @shivprakashchaubey2721 4 роки тому

    Matrix is most important for programming lovers❤❤❤

  • @upamadutta5741
    @upamadutta5741 4 роки тому +1

    Yeeee,agyi video🤩🤩

  • @h2oarindam789
    @h2oarindam789 3 роки тому

    CONTENT WAS REALLY HELPFULL, AUDIO WAS NOT CLEAR THO

  • @yogeshkumarpandey2343
    @yogeshkumarpandey2343 4 роки тому +5

    Haters starts disliking the video.

  • @abhishekc3556
    @abhishekc3556 4 роки тому +3

    Monetise kardo bhaiyya. Koi dikkat nahi

  • @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??...

  • @zeeshanazhar5909
    @zeeshanazhar5909 11 місяців тому

    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

  • @dailylearning8386
    @dailylearning8386 4 роки тому

    Best channel yr💖💖💖

  • @deepanshugupta4559
    @deepanshugupta4559 3 роки тому +4

    2-3 baar lg gye code smajhne m 😂😂😂

  • @noorfatima972
    @noorfatima972 Рік тому +1

    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?

  • @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.

  • @pavankumar-gp9zx
    @pavankumar-gp9zx 3 роки тому +5

    0:20 2d array and questions
    7:45 spiral order matrix traversal

  • @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

  • @sakhtizarurihai6909
    @sakhtizarurihai6909 3 роки тому +2

    Dislikers are the ones who were making handwritten notes😂😂

  • @supratiksarkar6336
    @supratiksarkar6336 2 роки тому

    Spiral array code has a problem. With 5*6 or 5*7 and so on matrices it is not giving a proper answer.

  • @vishalvermaa._
    @vishalvermaa._ 4 роки тому +4

    Aman bhaiya python series kab se upload karoge🙏🙏🙏🙏🙏🙂

  • @abhishekabhinav4140
    @abhishekabhinav4140 4 роки тому +3

    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 3 роки тому

      7 times run and answer is 7

  • @lalitshah7867
    @lalitshah7867 4 роки тому

    Bhaiya bahut achha hai

  • @swastikjain7373
    @swastikjain7373 4 роки тому +1

    Last program so epic..

  • @rishabhsingh2745
    @rishabhsingh2745 Рік тому

    Wao awesome..

  • @kamalkumar7133
    @kamalkumar7133 4 роки тому +8

    Missing Didi"s voice.

    • @ranjeet5806
      @ranjeet5806 3 роки тому

      @@kumarharsh90 tera man waisa hai. tereko didi nai dikh rha but kuch aur samj jaroor aarha hai, nais.

  • @ritulbhatnagar1502
    @ritulbhatnagar1502 3 роки тому +1

    #Rishab gupta == A peacefull soul
    😎😎😎

  • @playwithcandles
    @playwithcandles 4 роки тому +3

    hello sir some of your video is in private mode can you convert it to public

  • @tanzeelahmed2055
    @tanzeelahmed2055 2 роки тому

    Please give us some exercises to work on...

  • @عمۉريۦ
    @عمۉريۦ 4 роки тому +1

    Very good , Eng

  • @pranshumehta3228
    @pranshumehta3228 3 роки тому +1

    In spiral matrix question second last number is repeating

  • @prakharsharma8718
    @prakharsharma8718 4 роки тому +1

    Why courses are not on time.,..as per the timeline 🙄🙄

  • @allbusking2297
    @allbusking2297 3 роки тому

    i have a doubt, the code given in the video is printing an extra number at the end why is this happening to me and not in the video.. MY CODE IS BELOW..
    and if i am including the two if statements at the last two for loops then the answer is coming correct.. PLS tell WHY
    #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

  • @srijanparia3552
    @srijanparia3552 Рік тому

    There are some corner cases for which this spiral matrix code not gonna work.

  • @calpolgaming828
    @calpolgaming828 2 роки тому

    video is very helpful but your voice is not clear

  • @chiragdua2169
    @chiragdua2169 2 роки тому

    This was fun

  • @M10-r8q7h
    @M10-r8q7h 3 роки тому +1

    Most of the solutions provided here failed at
    Some test cases

  • @ghulammohiuddin2163
    @ghulammohiuddin2163 Рік тому

    Yeh bnda zada sahii

  • @lovedsa3719
    @lovedsa3719 3 роки тому

    Here u miss corner cases and a check at last 2 for loops

  • @premkumarsah1507
    @premkumarsah1507 4 роки тому +1

    Thanks for your help...🙏🏽

    • @mdateeque3997
      @mdateeque3997 4 роки тому

      Hitler reacting to IIT-JEE RESULTS:= ua-cam.com/video/EioB3UK6IRM/v-deo.html

  • @no-body7286
    @no-body7286 3 роки тому +1

    remenber here this solution falis for edge case

  • @aaryannigam9552
    @aaryannigam9552 3 роки тому +2

    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?