No video

Spiral Traversal of a Matrix | Spiral Matrix

  Рет қаралды 194,321

take U forward

take U forward

Күн бұрын

Пікірлер: 270
@shubhamagarwal1434
@shubhamagarwal1434 20 күн бұрын
#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.....
@navkaransingh3948
@navkaransingh3948 Жыл бұрын
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.
@takeUforward
@takeUforward Жыл бұрын
Yes I will be going at my pace, don't want to compromise on quality.
@shivamprajapati8662
@shivamprajapati8662 10 ай бұрын
thank you @@takeUforward
@gokulanvs
@gokulanvs 9 ай бұрын
​@@takeUforwardthank you so much bro❤
@Manoj_study
@Manoj_study 7 күн бұрын
True that in 2024 still can't find a better DSA course than this 🫡
@habeeblaimusa4466
@habeeblaimusa4466 Жыл бұрын
Understood. The height of this series is you knowing how the code will be after the dry run.. Thank you Striver
@shashamnk2525
@shashamnk2525 Жыл бұрын
True
@juliechoudhary9582
@juliechoudhary9582 Жыл бұрын
This course is really worth more than any course but still it is free.Thank you so much.
@AbhinayKrishna4
@AbhinayKrishna4 6 ай бұрын
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.
@yashkhatri3636
@yashkhatri3636 Жыл бұрын
you are providing such an amazing content at free of cost really india needs man like you !🤠
@maccode07
@maccode07 20 күн бұрын
UNDERSTOOD!!!! HAPPY FRIENDSHIP DAY STRIVER
@ruchirtd1
@ruchirtd1 Жыл бұрын
Finally was able to solve this problem with 100% understanding! Thanks a lot.
@enzaki7603
@enzaki7603 Ай бұрын
Thank You Striver Bhaiya ! Your playlist is really helping me a lot :)
@user-gx1cb3ni1r
@user-gx1cb3ni1r 9 ай бұрын
watch in 1.25 is a myth
@iAnuragJha
@iAnuragJha Ай бұрын
true that
@shreeyarao8265
@shreeyarao8265 8 ай бұрын
So well explained! Understood every bit of it!
@yashgarg1961
@yashgarg1961 Жыл бұрын
Saw several videos on this question. This was the perfect and the easiest one. Hats off to you bhaiya. Thanks for such quality content :)
@tonylee1868
@tonylee1868 Жыл бұрын
great content... i know it will be very difficult for you but we need more videos as soon as possible
@JK-de2gh
@JK-de2gh 14 күн бұрын
we don't need like this...we need quality...take your own time striver...
@indroneelgoswami5654
@indroneelgoswami5654 20 күн бұрын
Unbelievable Explanation!!
@indroneelgoswami5654
@indroneelgoswami5654 20 күн бұрын
unbelievable explanation!!
@shadowslayer2248
@shadowslayer2248 3 ай бұрын
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.
@suraj_patwa
@suraj_patwa Жыл бұрын
Really this is a better to paid course Thank you striver bhiya
@mukeshKumar-go5cz
@mukeshKumar-go5cz Жыл бұрын
thank you for providing best content for us. we really love it.
@cinime
@cinime Жыл бұрын
Understood! Wonderful explanation as always, thank you very very much for your effort!!
@amankumarverma8426
@amankumarverma8426 29 күн бұрын
amazing approach!
@akashverma5756
@akashverma5756 Жыл бұрын
Simulation approach is more intuitive and clean if you uderstand direction co-ordinate. Direction co-ordinate help you solve many other matrix problems easily.
@navkaransingh3948
@navkaransingh3948 Жыл бұрын
Bro, wdym by simulation approach?
@rishabh1S
@rishabh1S Жыл бұрын
Very good explaination!! Thanks Striver.
@bhagyashreekhairnar683
@bhagyashreekhairnar683 7 ай бұрын
great explanation as always!! really clear!! Please continue making these videos.
@Manishgupta200
@Manishgupta200 Жыл бұрын
Understood ❤ I do it by two different technique. Approach is same but condition is different
@leetcoder6569
@leetcoder6569 Жыл бұрын
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..
@chinnadhodlekavitha6540
@chinnadhodlekavitha6540 Ай бұрын
Please add videos related to strings as soon as possible.
@neoh1471
@neoh1471 Жыл бұрын
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
@who__are___you____26__
@who__are___you____26__ 4 ай бұрын
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 🙌🙌
@AniketKumar-hf2bo
@AniketKumar-hf2bo 7 ай бұрын
understood ,thnx for excellent explanation ❤❤❤❤❤❤
@AmareshwarBhat800
@AmareshwarBhat800 4 ай бұрын
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.
@hrushi_borhade
@hrushi_borhade Жыл бұрын
Thank you striver for great content!!
@NitinKumar-wm2dg
@NitinKumar-wm2dg Жыл бұрын
Thank you bhaiya, understood
@Ri-hg6hs
@Ri-hg6hs Жыл бұрын
providing these well structured series by you feeling like that giving water to tree thnx by core of heart.
@raynwani137
@raynwani137 7 ай бұрын
Bhai U are an Inspiration kasam se Career wise!
@lucario404
@lucario404 Жыл бұрын
edge cases are mat[m][1] and mat[1][n], because of which 2 checks are needed
@prathameshprabhu-ed8dl
@prathameshprabhu-ed8dl 2 күн бұрын
thanks i was not getting sense of if(left
@AshishSingh-he2qo
@AshishSingh-he2qo 2 ай бұрын
Is there any way so that i can like this video more than 1 time ❤❤
@a_maxed_out_handle_of_30_chars
@a_maxed_out_handle_of_30_chars 11 ай бұрын
this was good, thank you bhrata :)
@milindjarsaniya
@milindjarsaniya 10 ай бұрын
UNDERSTOOD as always!
@harshilpatel3205
@harshilpatel3205 23 күн бұрын
Understood 🙏🏻
@user-cq6en6rd4q
@user-cq6en6rd4q 4 ай бұрын
This is one of the hardest questions I have come across in a while
@ce038_divanshsingh3
@ce038_divanshsingh3 4 ай бұрын
And u r also looking hard.😊
@Yup728
@Yup728 3 ай бұрын
@@ce038_divanshsingh3 chill bro wth u saying
@AbhishekKumar-cd4gg
@AbhishekKumar-cd4gg 10 ай бұрын
At times i feel by watching your videos that i am just seeing the solution and at the end it just feel like spoon feeding , there is no feeling if growth in myself so i request @takeUforward aka striver to please make a video the correct way to approach a problem and how should be approach to your series and problem . if felt same do give like to ensure the comment reaches out to striver
@user-jn5pv6oo9d
@user-jn5pv6oo9d 5 ай бұрын
I was able to solve this by myself but used one pointer only, this is very easy than my code lmao
@codeshelf2737
@codeshelf2737 8 ай бұрын
Understood.
@user-dk3pv4zi2s
@user-dk3pv4zi2s 2 ай бұрын
understanding
@torishi82
@torishi82 Ай бұрын
Samaj aa gaya!!
@hareshnayak7302
@hareshnayak7302 5 ай бұрын
Understood,Thanks striver for this amazing video.
@infernogamer52
@infernogamer52 Жыл бұрын
Understood Bhaiya!
@diyaghosh3721
@diyaghosh3721 Ай бұрын
understood! amazing explanation!!
@rohandhalpe9084
@rohandhalpe9084 Жыл бұрын
Sir please , upload videos as fast as possible. 📤📤📤🕔🕔🕔 No more time remaining for our placement
@notcliche4864
@notcliche4864 Жыл бұрын
Are bro, wo bhi toh insan ha ek saath kitna kaam krega
@alokkumarmishra5172
@alokkumarmishra5172 Жыл бұрын
bhai sath me dp series ya graph ya tree series padh sakta hai it also help for your upcoming placements
@aman_singh__
@aman_singh__ Жыл бұрын
bro tum wait karoge to nhi hoga khud se karne ka try karo. ek banda akele kitna hi kar lega
@rohandhalpe9084
@rohandhalpe9084 Жыл бұрын
@@aman_singh__ 🙌
@NazeerBashaShaik
@NazeerBashaShaik 8 ай бұрын
Great explanation as usual. Thank you.
@konankikeerthi
@konankikeerthi 2 ай бұрын
Thank you bro. understood clearly.
@MMirabel
@MMirabel 9 ай бұрын
Understood..Very clean explanation!
@kingbadshah452
@kingbadshah452 7 ай бұрын
thanks striver understood everything
@ishangujarathi10
@ishangujarathi10 Жыл бұрын
lovedd the intuition
@ProgrammingKT
@ProgrammingKT 7 ай бұрын
Java Solution : kzfaq.info/get/bejne/mbN4rbqZp7uzfmg.html
@priyachauhan813
@priyachauhan813 Жыл бұрын
Understood at one go Thank You Striver
@sarangkumarsingh7901
@sarangkumarsingh7901 5 ай бұрын
Another Awesome Lecture Sir............
@ru_mum77
@ru_mum77 2 ай бұрын
Sir Thanks a lot for the excellent explanation 😁
@shristipurusarthi6675
@shristipurusarthi6675 11 ай бұрын
thank you soo much brother for the wonderful explanation
@khalasianiket816
@khalasianiket816 27 күн бұрын
understood❤
@pratyushtripathi1728
@pratyushtripathi1728 9 ай бұрын
Understood 😊
@sayakghosh5104
@sayakghosh5104 Жыл бұрын
Understood! Awesome explanation.
@dinimeegada9167
@dinimeegada9167 Жыл бұрын
Understood I have been waiting for this video from Striver anna ❤️ U Anna
@transformers-ai
@transformers-ai Ай бұрын
Understood
@hariomatkar4689
@hariomatkar4689 11 ай бұрын
Itne aasan se bataya ki aadha dekhke hi pura pta chal gya
@ProgrammingKT
@ProgrammingKT 7 ай бұрын
Nice explanation!
@VineetKumar-fk2rl
@VineetKumar-fk2rl 9 ай бұрын
Understood amazing explanation as always❤❤
@karanveersinghdeora5085
@karanveersinghdeora5085 Жыл бұрын
understood
@tarushidubey2973
@tarushidubey2973 Жыл бұрын
you are amazing sir huge respect ...
@abhishek__anand__
@abhishek__anand__ Жыл бұрын
Great Explanation
@lakshsinghania
@lakshsinghania 3 ай бұрын
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
@user-vl4nq6ed7u
@user-vl4nq6ed7u Жыл бұрын
please complete it as soon as possible .
@inspiringzone12
@inspiringzone12 Жыл бұрын
Quality is rare with speed
@NithinvKumar-uk2he
@NithinvKumar-uk2he Жыл бұрын
Yes please do complete fast it will be so much helpful for our upcoming placements please
@priyankavasam8769
@priyankavasam8769 Жыл бұрын
wonderful explanation
@p4avinash
@p4avinash Жыл бұрын
Understood, Great explanation.
@culeforever5408
@culeforever5408 10 ай бұрын
understood partially 🤔
@architmishra0057
@architmishra0057 10 күн бұрын
I Think the last IF condition is irrelevant because by the time the control reaches the last loop, the TOP will be greater than BOTTOM
@DeadPoolx1712
@DeadPoolx1712 7 күн бұрын
UNDERSTOOD;
@debasishbhol777
@debasishbhol777 Ай бұрын
Thanks bro !!
@nelsonsimson8175
@nelsonsimson8175 24 күн бұрын
In while loop while left
@moharramansari2594
@moharramansari2594 Жыл бұрын
The way you explain
@samuelfrank1369
@samuelfrank1369 6 ай бұрын
Understood. Thanks a lot
@student_03
@student_03 11 ай бұрын
understood sir thanks a lot
@falaknaaz789
@falaknaaz789 Жыл бұрын
Thank you sir❤
@Heartless-he8km
@Heartless-he8km Жыл бұрын
Ericsson ???
@charan123rams3
@charan123rams3 Жыл бұрын
thankyou sir love you so much 🥰
@computerscience68
@computerscience68 Жыл бұрын
Thank You Bhaiya 😊
@GhostVaibhav
@GhostVaibhav Жыл бұрын
Understood🔥
@PSMADHURIHSIIPCMCREG
@PSMADHURIHSIIPCMCREG Ай бұрын
understood👍
@shubhammeena2316
@shubhammeena2316 10 ай бұрын
thank you so much bhaiya
@user-tk2vg5jt3l
@user-tk2vg5jt3l 6 ай бұрын
Thank you Bhaiya
@reddygopichand2002
@reddygopichand2002 9 ай бұрын
Understood thanks 👍🙏
@aadityapanchal8551
@aadityapanchal8551 2 ай бұрын
great job
@ysabhishekmishra
@ysabhishekmishra 11 ай бұрын
class Solution { public: vectorans; int n,m; void dfs(int i,int j,vectormatrix,vector&visited){ if(i=n || j=m || visited[i][j]){ return; } visited[i][j]=1; ans.push_back(matrix[i][j]); if(i
@quickknowledge1401
@quickknowledge1401 Жыл бұрын
Best approach
@star-yz3xv
@star-yz3xv 2 ай бұрын
If there is already a while loop that says top
@gagankaushik556
@gagankaushik556 Ай бұрын
thnx
@user-is6ky7pp2n
@user-is6ky7pp2n 3 ай бұрын
Understood !! 😍😍
@jhanavikumari274
@jhanavikumari274 4 ай бұрын
Understood 😁
@TanyaTa-ex6mk
@TanyaTa-ex6mk 11 ай бұрын
Thankyou dada🙏🏻🙏🏻🧡
@Sumeet_100
@Sumeet_100 Жыл бұрын
just amazing !!
@aditgulia
@aditgulia 4 ай бұрын
Techdose has given better answer of this problem
Count Subarray sum Equals K | Brute - Better -Optimal
24:09
take U forward
Рет қаралды 272 М.
wow so cute 🥰
00:20
dednahype
Рет қаралды 28 МЛН
7 Days Stranded In A Cave
17:59
MrBeast
Рет қаралды 91 МЛН
小丑把天使丢游泳池里#short #angel #clown
00:15
Super Beauty team
Рет қаралды 46 МЛН
Leetcode - 1976. Number of Ways to Arrive at Destination
29:16
Ramandeep Singh
Рет қаралды 319
Rotate Matrix/Image by 90 Degrees | Brute - Optimal
17:47
take U forward
Рет қаралды 202 М.
Spiral Matrix - Microsoft Interview Question - Leetcode 54
16:46
Spiral Matrix | Java | Tamil | LeetCode : 54
11:28
CSE MAANAVAN
Рет қаралды 808
The Last Algorithms Course You'll Need by ThePrimeagen | Preview
16:44
Frontend Masters
Рет қаралды 316 М.
How I would learn Leetcode if I could start over
18:03
NeetCodeIO
Рет қаралды 456 М.
Set Matrix Zeroes | O(1) Space Approach | Brute - Better - Optimal
30:07
Kadane's Algorithm | Maximum Subarray Sum | Finding and Printing
20:09
take U forward
Рет қаралды 391 М.
wow so cute 🥰
00:20
dednahype
Рет қаралды 28 МЛН