Due to some technical glitch, we were not able to upload any video from the last 2 days.
@utkarshkumarsingh90124 жыл бұрын
Sir bas ek baar bta dia karo andar se daar lagne lgta hai😂
@sushilchaurasia4 жыл бұрын
Nice ❤️💚 bhai
@Sams-jm3np4 жыл бұрын
Webdev kab aayega bhiaya?
@jatingarg18974 жыл бұрын
No problem bhaiya. Just upload those now immediately.
@snehilsinha56244 жыл бұрын
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 🤣😂😂
@Ankit29408 ай бұрын
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...😢😢..😢😢
@pro8ballpoolpro8ballpool5 ай бұрын
Me too
@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_066 ай бұрын
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
@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.
@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
@pranjalbajpai1563 жыл бұрын
Karat karat abhayas te janmat hoye sujan...rasri avat jat te sil par pade Nishan..🔥✌
@pi173 жыл бұрын
Keep up the hard work!
@aftabk10134 жыл бұрын
Rishabh Gupta - A peaceful soul 😂
@shambhavamchoudhary28673 жыл бұрын
🤣🤣🤣 sbse upar likha h
@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.
@shreyaschavhan55224 жыл бұрын
2D array declaration -\ 0:15 Taking and Printing Output -\ 2:03 Searching a Matrix -\ 5:15 Spiral Order Matrix Traversal -\ 7:45
@ProductionReadyApp4 жыл бұрын
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.
@extremesatyaiitjeeair19803 жыл бұрын
we can actually even put || instead of && and it still works perfectly
@sourabhsingh57313 жыл бұрын
@@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
@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
@ayushaditya89513 жыл бұрын
I am a fresher and completed all programming courses from your channel. Thanks bhaiya ✌✌✌
@amanahmed60573 жыл бұрын
naach AB
@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.
@prajjawalkushwaha43524 жыл бұрын
@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
@pranchalkushwaha74074 жыл бұрын
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
@nandk455233 жыл бұрын
spiral order ki explanation super bhaiya:))
@ashokdalai48184 жыл бұрын
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..
@rutvikrana5124 жыл бұрын
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
@anubhavchauhan14854 жыл бұрын
Woah! Nice comment, Quite useful!
@ashishredhu23792 жыл бұрын
Shradha didi ki voice sabse clear aati h ! 😊😊
@soumilbanik11284 жыл бұрын
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.
@karanray60234 жыл бұрын
Codechef
@trigunadityapnd3 жыл бұрын
HackerRank is better for beginners
@ChaoticBeing-yj3ij Жыл бұрын
Leetcode
@ShubhamSharma-qv7ol4 жыл бұрын
Bhaiya, Please turn on the monetization. It's a humble request. Pleaseeeeeeee.
@deepakchoudhary59084 жыл бұрын
Why
@omkarsulebhavikar13384 жыл бұрын
Yes, plzz u don't need to prove anything to anyone
@_rahulsain4 жыл бұрын
@@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.LaurentDon4 жыл бұрын
@@_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...
@_rahulsain4 жыл бұрын
@@St.LaurentDon Hey, nice to hear I am glad
@Pratyush_Srivastava244 жыл бұрын
Amazing video, best course , but Missing her voice 💓.
@abhinavjoshi19023 жыл бұрын
padhle bhai
@sourabhsingh57313 жыл бұрын
Men will be men
@devanshsingh47664 жыл бұрын
I am loving these videos seriously! Finally I am starting to spend the lockdown productively!
@devanshsingh70353 жыл бұрын
Hey there my earlier self, how far are you now in your coding journey?
@manoharsingh-rt9hi3 жыл бұрын
how far who are now in codding bro!!!
@souravmaji47124 жыл бұрын
Bhaiya ,please jald se jald saare videos upload kijiye na. It's a request from my side
@QWERTY-1354 жыл бұрын
Hitler reacting to IIT-JEE RESULTS:= kzbin.info/www/bejne/e5rSc2aLgJt8iK8
@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
@codingwithritik53192 жыл бұрын
Thankyou apna college for the wonderfull content
@AkibHussain3 жыл бұрын
Dono bhaiya ne mast padhaya✌🏻🤝
@piyushbhagwat31193 жыл бұрын
Rishabh Gupta - A peaceful soul
@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.
@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?
@mufaddal1103 жыл бұрын
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 "
@couldbenimish4 жыл бұрын
Good explanation, at least he was clear this time!✌
@prajjavalsrivastsva70373 жыл бұрын
I'm getting SIGTERM in received output can you please help??
@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..👍
@shailysoni27133 жыл бұрын
Little bit difficult to understand ,btw you guys are amazing 👍
@sanketsonje82904 жыл бұрын
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
@notvishesh4 жыл бұрын
Yes, you're right. I too came across this case and found the same solution.
@ronitsingh97174 жыл бұрын
I was looking for this solution.In video its wrongly taught.Thank you.
@pradyumnmishra34594 жыл бұрын
Thanks aman bhaiya and team for your hardwork and efforts.🙏
@smilemakermanoj38663 жыл бұрын
Manoj kumar :) a peaceful soul🤗
@harshitsahu27044 ай бұрын
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_073 ай бұрын
I actually enjoyed this concept..🙋🏻♂
@abhisheksahani44814 жыл бұрын
You guys are killing it
@StoryGicRohit3 жыл бұрын
Rishab Bhaiya OP .... Respect ++
@SakshiPatil_4 жыл бұрын
Bhaiya please daily upload Kiya karo and thanks for such great content ❤️❤️
@rohitgupta-sy7ps3 жыл бұрын
Rishabh Gupta- a peaceful soul
@AbhishekKumar-eh1ed4 жыл бұрын
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-1354 жыл бұрын
Hitler reacting to IIT-JEE RESULTS:= kzbin.info/www/bejne/e5rSc2aLgJt8iK8
@HarshKumar-kv3xs4 жыл бұрын
it takes us some time to make the video. We are trying our best.
@lakshaykapoor75024 жыл бұрын
@@HarshKumar-kv3xs web d ka course kab tak ayega
@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
@taiburay3894 жыл бұрын
Thanks you Aman bhaiya and your team. One day I will make app
@shivammaurya34514 жыл бұрын
Thank u sir and aman bhaiya best content and explanation😍
@_Deepak__Verma11 ай бұрын
Question was really quiet tough but help to build logic
@rishovbarai3 жыл бұрын
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
@jatanverma9843 жыл бұрын
Good video but you should scroll down before writing code so we can see it clearly
@captainayaan2 жыл бұрын
Who is the lecturer in this video ? He is quite the teacher.
@deepadixit57193 жыл бұрын
A peaceful soul ❤️❤️
@adityabhansinghrathore4 жыл бұрын
Why both the last videos are not available Aman Bhaiya? Any clue??
@ApnaCollegeOfficial4 жыл бұрын
Don't worry, they were failed uploads of this lecture (9.1). We have now removed them from the playlist.
@rajeshjha68014 жыл бұрын
@@ApnaCollegeOfficial grateful
@shivprakashchaubey27214 жыл бұрын
Matrix is most important for programming lovers❤❤❤
@TheAbhidugar3 жыл бұрын
bhaiya thoda aur detail me expalin kariye; bahut tez ho raha sab kuch; AND THANK YOU SO MUCH FOR ALL YOUR EFFORTS.
@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
@peeyushnaik51255 ай бұрын
superb explanation
@upamadutta57414 жыл бұрын
Yeeee,agyi video🤩🤩
@aryansharma-wf8sn4 жыл бұрын
How many of you saw Rishabh Gupta -a peaceful soul 😂😂😇😇😇😇
@computersciencelover31773 жыл бұрын
Thank you so much 💗💛 God bless you 🙏
@yashwanth80584 жыл бұрын
When will you upload videos of web development course bhaiya ?? Please upload them..
@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??...
@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?
@1Ase4 жыл бұрын
Why you removed numbering of the videos?Plz. number them again so that we can easily get an access to the old videos .
@vishalvermaa._4 жыл бұрын
Aman bhaiya python series kab se upload karoge🙏🙏🙏🙏🙏🙂
@dailylearning83864 жыл бұрын
Best channel yr💖💖💖
@ritulbhatnagar15023 жыл бұрын
#Rishab gupta == A peacefull soul 😎😎😎
@pavankumar-gp9zx3 жыл бұрын
0:20 2d array and questions 7:45 spiral order matrix traversal
@vengalrao57722 жыл бұрын
🥲
@deepanshugupta45593 жыл бұрын
2-3 baar lg gye code smajhne m 😂😂😂
@abhishekc35564 жыл бұрын
Monetise kardo bhaiyya. Koi dikkat nahi
@amberafreen83852 жыл бұрын
At the end of the video " SUB PHOD DO.......mee......cell phone phod Diya😂😂😀.......
@rohitbadgujjar937 Жыл бұрын
You have a great team sir and sir keep doing it😊😊😊😊
@h2oarindam7893 жыл бұрын
CONTENT WAS REALLY HELPFULL, AUDIO WAS NOT CLEAR THO
@bapanghosh1662 жыл бұрын
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
@yogeshkumarpandey23434 жыл бұрын
Haters starts disliking the video.
@aplusentertainment38613 жыл бұрын
mast explanation bhaiya
@itsmepiyushsaha4 жыл бұрын
I think teaching is too fast and lacks explanation for beginners whose first course is this one. Please look into it, else everything is ♥️
@pratikraj99953 жыл бұрын
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 Жыл бұрын
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
@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
@sakhtizarurihai69093 жыл бұрын
Dislikers are the ones who were making handwritten notes😂😂
@khumbharedeep21593 жыл бұрын
superb sir very well explained
@rishabhsingh2745 Жыл бұрын
Wao awesome..
@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
@gamermanpc92154 жыл бұрын
Nicely explained👍
@ghulammohiuddin2163 Жыл бұрын
Yeh bnda zada sahii
@abhishekabhinav41404 жыл бұрын
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?
@couldbenimish4 жыл бұрын
Function is getting called 8 times, and the final value is 3
@AMaN-iq8nw4 жыл бұрын
7 times run and answer is 7
@lovedsa37194 жыл бұрын
Here u miss corner cases and a check at last 2 for loops
@ALEX-fp7mr10 ай бұрын
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
@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
@lalitshah78674 жыл бұрын
Bhaiya bahut achha hai
@swastikjain73734 жыл бұрын
Last program so epic..
@srijanparia3552 Жыл бұрын
There are some corner cases for which this spiral matrix code not gonna work.
@playwithcandles4 жыл бұрын
hello sir some of your video is in private mode can you convert it to public
@calpolgaming8282 жыл бұрын
video is very helpful but your voice is not clear
@tanzeelahmed20553 жыл бұрын
Please give us some exercises to work on...
@kamalkumar71334 жыл бұрын
Missing Didi"s voice.
@ranjeet58064 жыл бұрын
@@kumarharsh90 tera man waisa hai. tereko didi nai dikh rha but kuch aur samj jaroor aarha hai, nais.
@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
@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; }