Before looking solution in this RU-vid channel actually I referred so many youtube channels but I am not satisfied by their way of explanation. Finally i got proper explanation what I want from this RU-vid channel. Grateful to you sir.
You not only explained it really well but cleared why this question is asked in the interviews which was pretty helpful. Even I was facing the same issue in the beginning by thinking how to traverse through it. Also, your variable naming helped a bit more. :) Thank you so so much!!
Hi!! i initialized columnEnd as int columnEnd = matrix.length-1 just like rowEnd= matrix.length-1. The program didn't run. Can you explain me why we should take columnEnd as matrix[0].length-1? im new kindly need help.
Sir, i m from totally non coding background and try to lern coding. i m Facing problem in writing function in java. how can i overcome with this problem.
why we use 2 conditions as test cases while traversing left and up why don't we use it in traverse right, & in traverse left I think while reducing row we need to check whether rowBegin
Thank yo so much 🥹 you help me a lot brother, I ask you a question hmm traverse up the code line "print(matrix[j][colBegin])" is that go up the array right, thank you so much brother ❤😊
can some one explain why i am getting run time error for the below code ? class Solution { public: vector spiralOrder(vector& matrix) { int rb=0,re=matrix.size(),cb=0,ce=matrix[0].size(); vectorvect; while(rb
It may be a silly question, I just want to know that using that many loops is a good idea. Can't we do with only few loops. I know it may feel you silly