Due to some technical glitch, we were not able to upload any video from the last 2 days.
@utkarshkumarsingh90123 жыл бұрын
Sir bas ek baar bta dia karo andar se daar lagne lgta hai😂
@sushilchaurasia3 жыл бұрын
Nice ❤️💚 bhai
@Sams-jm3np3 жыл бұрын
Webdev kab aayega bhiaya?
@jatingarg18973 жыл бұрын
No problem bhaiya. Just upload those now immediately.
@snehilsinha56243 жыл бұрын
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 🤣😂😂
@anchalmehandiratta84973 жыл бұрын
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
@prateeksingh78323 жыл бұрын
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
@adityasrivastava75633 жыл бұрын
#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
@groundedgamer3 жыл бұрын
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
@quotedcaprio38953 жыл бұрын
why didn't we dynamically input our 2d array here??
@anushthakumari23933 жыл бұрын
@@groundedgamer would u mind explaining your code once more. I am not able to understand your code.
@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 Жыл бұрын
Thank you so much mate🫂❤️
@sharma_atul_064 ай бұрын
thanks for idea
@parthapratimghose1733 жыл бұрын
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 !
@rohandeshmukh39893 жыл бұрын
thanks brother
@devanshsingh47663 жыл бұрын
I am loving these videos seriously! Finally I am starting to spend the lockdown productively!
@devanshsingh70352 жыл бұрын
Hey there my earlier self, how far are you now in your coding journey?
@manoharsingh-rt9hi2 жыл бұрын
how far who are now in codding bro!!!
@aishwaryamishra56713 жыл бұрын
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.
@aftabk10133 жыл бұрын
Rishabh Gupta - A peaceful soul 😂
@shambhavamchoudhary28672 жыл бұрын
🤣🤣🤣 sbse upar likha h
@pranjalbajpai1563 жыл бұрын
Karat karat abhayas te janmat hoye sujan...rasri avat jat te sil par pade Nishan..🔥✌
@pi173 жыл бұрын
Keep up the hard work!
@Ankit29406 ай бұрын
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...😢😢..😢😢
@pro8ballpoolpro8ballpool3 ай бұрын
Me too
@shreyaschavhan55223 жыл бұрын
2D array declaration -\ 0:15 Taking and Printing Output -\ 2:03 Searching a Matrix -\ 5:15 Spiral Order Matrix Traversal -\ 7:45
@Riyanshu_07Ай бұрын
I actually enjoyed this concept..🙋🏻♂
@ProductionReadyApp3 жыл бұрын
There is a bug in Spiral matrix traverse code. You have to also use an if statement " if(row_start
@shivikabahri71133 жыл бұрын
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_viveksinghyadav603 жыл бұрын
@@shivikabahri7113 check for 6x3 matrix.
@extremesatyaiitjeeair19802 жыл бұрын
we can actually even put || instead of && and it still works perfectly
@sourabhsingh57312 жыл бұрын
@@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_ArshadAli2 жыл бұрын
thank you.....u are correct .....now the code will work for big rectangular matrices also
@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
@adityabhansinghrathore3 жыл бұрын
Why both the last videos are not available Aman Bhaiya? Any clue??
@ApnaCollegeOfficial3 жыл бұрын
Don't worry, they were failed uploads of this lecture (9.1). We have now removed them from the playlist.
@rajeshjha68013 жыл бұрын
@@ApnaCollegeOfficial grateful
@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🙏
@abhinavsaxena98462 жыл бұрын
This approach is giving TLE on larger Inputs look for a better approach
@ashokdalai48183 жыл бұрын
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..
@prajjawalkushwaha43523 жыл бұрын
@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
@pranchalkushwaha74073 жыл бұрын
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....
@sunnyrawat9313 жыл бұрын
@@pranchalkushwaha7407 code sahi ni h mai pura din dekhra tha aj sar drd kra dia kaha glti hui mjse lol
@abhisheksahani44813 жыл бұрын
You guys are killing it
@couldbenimish3 жыл бұрын
Good explanation, at least he was clear this time!✌
@prajjavalsrivastsva70373 жыл бұрын
I'm getting SIGTERM in received output can you please help??
@rutvikrana5123 жыл бұрын
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
@anubhavchauhan14853 жыл бұрын
Woah! Nice comment, Quite useful!
@deepadixit57193 жыл бұрын
A peaceful soul ❤️❤️
@AbhishekKumar-eh1ed3 жыл бұрын
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.
@mdateeque39973 жыл бұрын
Hitler reacting to IIT-JEE RESULTS:= kzbin.info/www/bejne/e5rSc2aLgJt8iK8
@HarshKumar-kv3xs3 жыл бұрын
it takes us some time to make the video. We are trying our best.
@lakshaykapoor75023 жыл бұрын
@@HarshKumar-kv3xs web d ka course kab tak ayega
@1Ase3 жыл бұрын
Why you removed numbering of the videos?Plz. number them again so that we can easily get an access to the old videos .
@soumilbanik11283 жыл бұрын
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.
@karanray60233 жыл бұрын
Codechef
@trigunadityapnd3 жыл бұрын
HackerRank is better for beginners
@ChaoticBeing-yj3ij11 ай бұрын
Leetcode
@aashijain65893 жыл бұрын
STL sort is missing in this series according to the index of this course?
@deveshb7933 жыл бұрын
Yess
@satyamtripathi8883 жыл бұрын
can you share the index of this course with me.... thank you
@TheAbhidugar3 жыл бұрын
which index?
@mukulchopra33783 жыл бұрын
@@satyamtripathi888 did you got the index? if yes can you please share with me ?
@satyamtripathi8883 жыл бұрын
@@mukulchopra3378 kzbin.info/www/bejne/Y3qlfpp8l82VkLc in the description
@chinmayadutta82073 жыл бұрын
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;
@fatmazafar80063 жыл бұрын
When he check same condition at while loop, so why there's need of again if statement for checking same condition??
@enigmanarratives13 жыл бұрын
@@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.
@AkibHussain3 жыл бұрын
Dono bhaiya ne mast padhaya✌🏻🤝
@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 Жыл бұрын
thx bud
@Pratyush_Srivastava243 жыл бұрын
Amazing video, best course , but Missing her voice 💓.
@abhinavjoshi19023 жыл бұрын
padhle bhai
@sourabhsingh57312 жыл бұрын
Men will be men
@playwithcandles3 жыл бұрын
hello sir some of your video is in private mode can you convert it to public
@nandk455233 жыл бұрын
spiral order ki explanation super bhaiya:))
@ayushaditya89513 жыл бұрын
I am a fresher and completed all programming courses from your channel. Thanks bhaiya ✌✌✌
@amanahmed60573 жыл бұрын
naach AB
@souravmaji47123 жыл бұрын
Bhaiya ,please jald se jald saare videos upload kijiye na. It's a request from my side
@mdateeque39973 жыл бұрын
Hitler reacting to IIT-JEE RESULTS:= kzbin.info/www/bejne/e5rSc2aLgJt8iK8
@SakshiPatil_3 жыл бұрын
Bhaiya please daily upload Kiya karo and thanks for such great content ❤️❤️
@piyushbhagwat31193 жыл бұрын
Rishabh Gupta - A peaceful soul
@codingwithritik53192 жыл бұрын
Thankyou apna college for the wonderfull content
@TourismFunFriends Жыл бұрын
Thank u so much Before this video, matrix was hard for me
@mikansenpai22803 жыл бұрын
if i crack an interview; meri first salary to aman bhaiya aur team main jaigi thank you aman bhaiya ❤
@nandk455233 жыл бұрын
selection pakka hai
@ShubhamSharma-qv7ol3 жыл бұрын
Bhaiya, Please turn on the monetization. It's a humble request. Pleaseeeeeeee.
@deepakchoudhary59083 жыл бұрын
Why
@omkarsulebhavikar13383 жыл бұрын
Yes, plzz u don't need to prove anything to anyone
@_rahulsain3 жыл бұрын
@@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.LaurentDon3 жыл бұрын
@@_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...
@_rahulsain3 жыл бұрын
@@St.LaurentDon Hey, nice to hear I am glad
@ananjaygurjar3 жыл бұрын
Check the last code for 3*4 matrix, it repeats one(second last) element.
@RaviShankar-ow9pu3 жыл бұрын
yes buddy so how did u handle this bug!!!???
@yugpratapgupta75343 жыл бұрын
same doubt bro
@sameerraj58003 жыл бұрын
Same is happening with me also. What to do?
@androrealm66593 жыл бұрын
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
@ayushgupta25373 жыл бұрын
@@sameerraj5800 Har for loop mei ">=" ya "
@ashishredhu23792 жыл бұрын
Shradha didi ki voice sabse clear aati h ! 😊😊
@pradyumnmishra34593 жыл бұрын
Thanks aman bhaiya and team for your hardwork and efforts.🙏
@shailysoni27133 жыл бұрын
Little bit difficult to understand ,btw you guys are amazing 👍
@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?
@smilemakermanoj38663 жыл бұрын
Manoj kumar :) a peaceful soul🤗
@vishesh_pandey3 жыл бұрын
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..👍
@shivammaurya34513 жыл бұрын
Thank u sir and aman bhaiya best content and explanation😍
@freekeys3 жыл бұрын
Last elements are repeating 🤔 anyone have same issues with this code?(spiral matrix)
@_rahulsain3 жыл бұрын
yes mine 29 is repeated after 29 30
@freekeys3 жыл бұрын
@@_rahulsain yeah repeated elements is in their last loop i guess🤔
@rajmhatre203 жыл бұрын
yes mine too
@rajmhatre203 жыл бұрын
anyone got the solution?
@couldbenimish3 жыл бұрын
Yes same issue!
@StoryGicRohit3 жыл бұрын
Rishab Bhaiya OP .... Respect ++
@rohitgupta-sy7ps3 жыл бұрын
Rishabh Gupta- a peaceful soul
@M10-r8q7h2 жыл бұрын
Most of the solutions provided here failed at Some test cases
@peeyushnaik51253 ай бұрын
superb explanation
@shivikabahri71133 жыл бұрын
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.
@CodersHubYoutube3 жыл бұрын
m getting same issue
@GauravSharma-ij1ym3 жыл бұрын
If statements are missing in the code given above
@supratiksarkar63362 жыл бұрын
Spiral array code has a problem. With 5*6 or 5*7 and so on matrices it is not giving a proper answer.
@darshyadav69643 жыл бұрын
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
@vikassuthar37773 жыл бұрын
Two if statements are missing
@abhishekabhinav41403 жыл бұрын
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?
@couldbenimish3 жыл бұрын
Function is getting called 8 times, and the final value is 3
@AMaN-iq8nw3 жыл бұрын
7 times run and answer is 7
@lifeoeshita3 жыл бұрын
Why we use signed main() ?
@karanmali41973 жыл бұрын
becoz main is function
@_Deepak__Verma9 ай бұрын
Question was really quiet tough but help to build logic
@sniperharshgaming30472 жыл бұрын
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; }
@neeveshjain2 жыл бұрын
how to run single program in clion it builds whole project your are using clion thats why i am asking
@upamadutta57413 жыл бұрын
Yeeee,agyi video🤩🤩
@computersciencelover31773 жыл бұрын
Thank you so much 💗💛 God bless you 🙏
@yogeshkumarpandey23433 жыл бұрын
Haters starts disliking the video.
@suvanshmahajan46833 жыл бұрын
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 Жыл бұрын
i,j are not initialized so, how will compiler accept them
@reactwithkeshav49373 жыл бұрын
Bhai spiral matrix ka concept samaj nhi aaya
@harshitsahu27042 ай бұрын
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
@shivamsingh203 жыл бұрын
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.
@aryansharma-wf8sn3 жыл бұрын
How many of you saw Rishabh Gupta -a peaceful soul 😂😂😇😇😇😇
@sanketsonje82903 жыл бұрын
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
@notvishesh3 жыл бұрын
Yes, you're right. I too came across this case and found the same solution.
@ronitsingh97173 жыл бұрын
I was looking for this solution.In video its wrongly taught.Thank you.
@ayushsaxena62062 жыл бұрын
Bhaiya what platform are you using for coding . I don't think it is visual studio code . I looks better
@yashwanth80583 жыл бұрын
When will you upload videos of web development course bhaiya ?? Please upload them..
@allbusking22973 жыл бұрын
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
@premkumarsah15073 жыл бұрын
Thanks for your help...🙏🏽
@mdateeque39973 жыл бұрын
Hitler reacting to IIT-JEE RESULTS:= kzbin.info/www/bejne/e5rSc2aLgJt8iK8
@harshitbajaj75493 жыл бұрын
Wo input kaise liya right side me new column kholke??
@Khushal20042 жыл бұрын
Bro apne konsa compiler use kiya he???
@zeeshanazhar590910 ай бұрын
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
@taiburay3893 жыл бұрын
Thanks you Aman bhaiya and your team. One day I will make app
@swastikjain73733 жыл бұрын
Last program so epic..
@eftymahmud14993 жыл бұрын
what is the theme name that you are using.please reply
@niharjani47163 жыл бұрын
Aman bhaiya which extension are you using for taking input from user, some online judge like extension is used , but i am not getting that properly can you name it pls.
@pranshumehta32283 жыл бұрын
In spiral matrix question second last number is repeating
@aaryannigam95523 жыл бұрын
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?
@SchrodingerMan3 жыл бұрын
because index is starting from 0
@aaryannigam95523 жыл бұрын
@@SchrodingerMan ok,thanks rahul
@altafhussain95754 ай бұрын
sir which compiler do you use?
@عمۉريۦ3 жыл бұрын
Very good , Eng
@shivanshubaranwal60412 жыл бұрын
Why is it printing an extra 29???
@iSubhoo3 жыл бұрын
Sir, is Code me to Glitch hay. 15 is coming 2 times in the end, also in the notes (provided).
@prajjavalsrivastsva70373 жыл бұрын
I m getting SIGTERM in received output can anyone tell why??
@prakhargupta54103 жыл бұрын
you are stuck in a loop
@prajjavalsrivastsva70373 жыл бұрын
@@prakhargupta5410 thanks brother
@srijanparia3552 Жыл бұрын
There are some corner cases for which this spiral matrix code not gonna work.
@chocomist_7 Жыл бұрын
what extension will allow me to enter my test cases in this manner ??
@shivprakashchaubey27213 жыл бұрын
Matrix is most important for programming lovers❤❤❤
@fitness42503 жыл бұрын
why in spiral code we taken signed main
@vishalvermaa._3 жыл бұрын
Aman bhaiya python series kab se upload karoge🙏🙏🙏🙏🙏🙂
@deepanshugupta45593 жыл бұрын
2-3 baar lg gye code smajhne m 😂😂😂
@ashiskumarsingh48899 ай бұрын
Bhiaya wo fileopen wala part kue likhe hai wo samjh nhi aya.
@prakharsharma87183 жыл бұрын
Why courses are not on time.,..as per the timeline 🙄🙄
@madhavagrawal55812 жыл бұрын
Compiler konsa use kia h apne?
@ghulammohiuddin2163 Жыл бұрын
Yeh bnda zada sahii
@fatmazafar80063 жыл бұрын
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??...