#Free Education For All.. # Bhishma Pitamah of DSA...You could have earned in lacs by putting it as paid couses on udamey or any other elaerning portals, but you decided to make it free...it requires a greate sacrifice and a feeling of giving back to community, there might be very few peope in world who does this...."विद्या का दान ही सर्वोत्तम दान होता है" Hats Off to you man, Salute from 10+ yrs exp guy from BLR, India.....
Hi striver, i think you already know but these series will be legacy for future coding students So, i hope you don't rush this series I'm saying this because i am seeing a lot of comments saying to complete it very fast.
Man you literally are a lifesaver, providing such a one stop destination for all the coding questions required to crack any interview.Thanks, striver for your dedication and hard work towards providing quality content.
@takeUforward The solution can be simplified by removing the if conditions on internal for loops and writing the exit condition of the while loop as while(ans.length < m * n) This way the loop will never run if all the cells have been visited
Simulation approach is more intuitive and clean if you uderstand direction co-ordinate. Direction co-ordinate help you solve many other matrix problems easily.
your solution is good, but i have another idea, i'm using javascript shift(), pop() and reverse() to get the array element into my answer array, then every time i process a row, i'll transpose the matrix and i will reverse() it if needed, then repeat untill the matrix become empty, and print the answer array. All code is written in a while loop with lambda functions. let ans = [] while(matrix.length != 0){ matrix.shift().forEach(x => ans.push(x)); if(matrix.length == 0) break; matrix = matrix[0].map((_,colIndex) => matrix.map(row => row[colIndex])); matrix.pop().forEach(x => ans.push(x)); if(matrix.length == 0) break; matrix = matrix[0].map((_,colIndex) => matrix.map(row => row[colIndex])); matrix.pop().reverse().forEach(x => ans.push(x)); if(matrix.length == 0) break; matrix = matrix[0].map((_,colIndex) => matrix.map(row => row[colIndex])); matrix.shift().reverse().forEach(x => ans.push(x)); if(matrix.length == 0) break; matrix = matrix[0].map((_,colIndex) => matrix.map(row => row[colIndex])); } // print ans here
#Free Education For All.. # Bhishma Pitamah of DSA...You could have earned in lacs by putting it as paid couses on udamey or any other elaerning portals, but you decided to make it free...it requires a greate sacrifice and a feeling of giving back to community, there might be very few peope in world who does this...."विद्या का दान ही सर्वोत्तम दान होता है" Hats Off to you man, Salute from 10+ yrs exp guy from BLR, India.....
Hi striver, i think you already know but these series will be legacy for future coding students
So, i hope you don't rush this series
I'm saying this because i am seeing a lot of comments saying to complete it very fast.
Yes I will be going at my pace, don't want to compromise on quality.
thank you @@takeUforward
@@takeUforwardthank you so much bro❤
True that in 2024 still can't find a better DSA course than this 🫡
Man you literally are a lifesaver, providing such a one stop destination for all the coding questions required to crack any interview.Thanks, striver for your dedication and hard work towards providing quality content.
This course is really worth more than any course but still it is free.Thank you so much.
you are providing such an amazing content at free of cost really india needs man like you !🤠
Understood.
The height of this series is you knowing how the code will be after the dry run..
Thank you Striver
True
Finally was able to solve this problem with 100% understanding! Thanks a lot.
So well explained! Understood every bit of it!
Thank You Striver Bhaiya !
Your playlist is really helping me a lot :)
What a super clean implementation dude! hats off!
Saw several videos on this question. This was the perfect and the easiest one. Hats off to you bhaiya. Thanks for such quality content :)
watch in 1.25 is a myth
true that
wdym? im watching all his videos in 1.5x
@@Try_me_yes and you also you don’t understand 😂
Very good explaination!! Thanks Striver.
thank you for providing best content for us.
we really love it.
Really this is a better to paid course
Thank you striver bhiya
@takeUforward The solution can be simplified by removing the if conditions on internal for loops and writing the exit condition of the while loop as
while(ans.length < m * n)
This way the loop will never run if all the cells have been visited
Thanks
great explanation as always!! really clear!! Please continue making these videos.
Thank you very much for this course learnt a lot and your dedication is on another level you were recording this video on 3 am thanks a lot 🙌🙌
Understood! Wonderful explanation as always, thank you very very much for your effort!!
UNDERSTOOD!!!!
HAPPY FRIENDSHIP DAY STRIVER
You are from which college bro...
You are from which college bro...
I2IT
@@atharva_g_vlogs brother what is the need to apply this case , if( left
Nuvvu thopu guru, awesome
great content...
i know it will be very difficult for you but we need more videos as soon as possible
we don't need like this...we need quality...take your own time striver...
Understood. Thank you for striving for us and surely we'll also strive to make your channel and the A2Z course be rated as the best in the world.
amazing approach!
Unbelievable Explanation!!
You are from which college bro...
@@mdfaizanmdfaizan6041 TINT, Kolkata
Great video and explanation, you're awesome man, thank you!
Understood ❤ I do it by two different technique. Approach is same but condition is different
You are from which college bro...
this was good, thank you bhrata :)
Bhai U are an Inspiration kasam se Career wise!
understood ,thnx for excellent explanation ❤❤❤❤❤❤
Simulation approach is more intuitive and clean if you uderstand direction co-ordinate. Direction co-ordinate help you solve many other matrix problems easily.
Bro, wdym by simulation approach?
UNDERSTOOD as always!
edge cases are mat[m][1] and mat[1][n], because of which 2 checks are needed
thanks i was not getting sense of if(left
providing these well structured series by you feeling like that giving water to tree thnx by core of heart.
Thank you striver for great content!!
Whenever I see you I got inspired ❤
unbelievable explanation!!
your solution is good, but i have another idea, i'm using javascript shift(), pop() and reverse() to get the array element into my answer array, then every time i process a row, i'll transpose the matrix and i will reverse() it if needed, then repeat untill the matrix become empty, and print the answer array. All code is written in a while loop with lambda functions.
let ans = []
while(matrix.length != 0){
matrix.shift().forEach(x => ans.push(x));
if(matrix.length == 0) break;
matrix = matrix[0].map((_,colIndex) => matrix.map(row => row[colIndex]));
matrix.pop().forEach(x => ans.push(x));
if(matrix.length == 0) break;
matrix = matrix[0].map((_,colIndex) => matrix.map(row => row[colIndex]));
matrix.pop().reverse().forEach(x => ans.push(x));
if(matrix.length == 0) break;
matrix = matrix[0].map((_,colIndex) => matrix.map(row => row[colIndex]));
matrix.shift().reverse().forEach(x => ans.push(x));
if(matrix.length == 0) break;
matrix = matrix[0].map((_,colIndex) => matrix.map(row => row[colIndex]));
}
// print ans here
Understood..Very clean explanation!
Great explanation as usual. Thank you.
Understood Bhaiya!
Understood,Thanks striver for this amazing video.
Understood
I have been waiting for this video from Striver anna
❤️ U Anna
Hi @takeUforward I did not get the last contraint from your explaination as you are too fast at the end. But I got it. Thanks for the video.
understood! amazing explanation!!
Why there's so much rush in CB, RAJ BHAIYA is a human being too, we have sheet na, we canbdo it on our own pace..
Another Awesome Lecture Sir............
lovedd the intuition
Understood amazing explanation as always❤❤
Thank you bhaiya, understood
Understood at one go Thank You Striver
Sir Thanks a lot for the excellent explanation 😁
thank you soo much brother for the wonderful explanation
Understood! Awesome explanation.
thanks striver understood everything
This is one of the hardest questions I have come across in a while
And u r also looking hard.😊
@@ce038_divanshsingh3 chill bro wth u saying
Thank you bro. understood clearly.
great explanation!
Understood 🙏🏻
you are amazing sir huge respect ...
Great Explanation
The way you explain
wonderful explanation
understood❤
Itne aasan se bataya ki aadha dekhke hi pura pta chal gya
its amazing 🤩😻
Please add videos related to strings as soon as possible.
Samaj aa gaya!!
Nice explanation!
Understood, Great explanation.
understanding
Understood🔥
Thank You Bhaiya 😊
Thank you thats all I can say!!!!
Best approach
understood bhaiya
Understood ❤🔥❤🔥
Understood. Thanks a lot
Sir please , upload videos as fast as possible. 📤📤📤🕔🕔🕔
No more time remaining for our placement
Are bro, wo bhi toh insan ha ek saath kitna kaam krega
bhai sath me dp series ya graph ya tree series padh sakta hai it also help for your upcoming placements
bro tum wait karoge to nhi hoga khud se karne ka try karo. ek banda akele kitna hi kar lega
@@aman_singh__ 🙌
Understood !! 😍😍
please complete it as soon as possible .
Quality is rare with speed
Yes please do complete fast it will be so much helpful for our upcoming placements please
thankyou sir love you so much 🥰
thanks bhaiya
I was able to solve this by myself but used one pointer only, this is very easy than my code lmao
understood bhaiii
understood
Thank you Bhaiya
Understood✅🔥🔥
Thankyou dada🙏🏻🙏🏻🧡
understood sir thanks a lot
Growing day by day in dsa
Understood thanks 👍🙏
Thank you sir❤
Ericsson ???
I saw at the bottom "last saved on" 3:57 AM 3:58 AM 4:00 AM" orz striver bhaiya, staying awake and recording the lecture at late night
Understood ✨
Understood 💯💯💯
thank you so much bhaiya
Understood 👍🏻👍🏻👍🏻
just amazing !!
Awesome 🤩🤩