Тёмный

Set Matrix Zeroes | O(1) Space Approach | Brute - Better - Optimal 

take U forward
Подписаться 679 тыс.
Просмотров 382 тыс.
50% 1

Опубликовано:

 

26 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 518   
@takeUforward
@takeUforward Год назад
Please watch our new video on the same topic: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-N0MgLvceX7M.html
@SujitKUmar-gy5xr
@SujitKUmar-gy5xr 3 месяца назад
bhaiya same hi to dono hai
@saisree04
@saisree04 4 месяца назад
Mind got blown away after listening to the optimal solution
@ranjani7896
@ranjani7896 4 месяца назад
😂😂
@narenlakamannavar8156
@narenlakamannavar8156 16 дней назад
Small minds always blows up to the pressure!
@saisree04
@saisree04 14 дней назад
@@narenlakamannavar8156 okay big brain human
@aaryakapoor8352
@aaryakapoor8352 2 месяца назад
mind got blown with the optimal approach
@suyashpurwar631
@suyashpurwar631 Год назад
I was able to do the second approach by myself and I'm feeling really good about it!
@RohanKumar-gy4gl
@RohanKumar-gy4gl Год назад
HOLY S... bruh is an einstein for sure
@adityamadhav1509
@adityamadhav1509 2 месяца назад
its not a big deal though, but it really ensures that u r growing as a coder ,keep it up bruh.regarding second approach i though that instead of using two arrays row and column,we can just use one array of pair type where each element of the array is a pair whose first element is ,arked row and second elemen is marked column.
@Carson00_11
@Carson00_11 2 месяца назад
i am the only dumb then because i cant do anything
@jacobblack2544
@jacobblack2544 2 месяца назад
@@Carson00_11 yes XD
@AkshanshLohan
@AkshanshLohan Месяц назад
@@Carson00_11never say something negative about yourself even as a joke
@CodeBoost8375
@CodeBoost8375 Год назад
Understood! Very well 🔥🔥🔥. And half a hour to example every step from intuition ---> approach till code it shows how you work hard to provide such wonderful video's thanks a lot for this efforts brother.
@dpxy1599
@dpxy1599 11 месяцев назад
This optimal approach is confusing.
@KaifKhan-sb2yr
@KaifKhan-sb2yr 5 месяцев назад
Watch again easy it is 😊
@RaunitJaiswal-s9v
@RaunitJaiswal-s9v 22 дня назад
Let's imagine you're in charge of a high-tech building with a security system that monitors various rooms. The building's layout can be visualized as a grid (matrix), where each cell in the grid represents a room. The value in each cell can either be: 1: The room is secure and everything is functioning normally. 0: The room has a security breach (e.g., a broken window, unauthorized entry, etc.). The building's protocol is to lock down (disable) any room and its neighboring rooms (in the same row and column) immediately if a breach is detected. This ensures that the breach can't spread to other areas.
@josephwilliams9
@josephwilliams9 11 месяцев назад
Code from older video is better. Also I understood the intuition in this video's explanation by understanding it from older video. A request - PLEASE DON'T DELETE OLDER VIDEOS EVER, THEY TOO ARE GEM ❤
@kamalakannanng4206
@kamalakannanng4206 8 месяцев назад
Can you please share the older video link ?
@jatinsharma1595
@jatinsharma1595 9 месяцев назад
Understood. Happy that I came up with the better approach by myself, seriously blown away by the optimal approach. Thank you so much Striver
@shubhamagarwal1434
@shubhamagarwal1434 Месяц назад
#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.....
@vivekdalal1724
@vivekdalal1724 Год назад
this is the only study related playlist which im binging by choice and loving it
@krishsachdeva1105
@krishsachdeva1105 Год назад
Bhaiya abhi shayad itne views nhi aarhe but rojj video daalte raho iss course ko complete karna and this will smash all education viewing records. Salute++
@Akash-yr2if
@Akash-yr2if Год назад
Gained some Brain Cells After doing the Optimized, Still getting in my head, Damn Solution 🤯🤯
@karanhaldar755
@karanhaldar755 6 месяцев назад
thankjs a lot bro I've watched lots of paid videoes and after that i came here to this master piece playlist I have no words how much it helps me to crack a job guys do not buy any DSA courses just watch all the videoes it will be enough to crack any DSA interview🤗🥰🥰🥰🥰🥰🥰
@user-fw4kz3bb4g
@user-fw4kz3bb4g 6 месяцев назад
which course you got? PW?
@hitanshujena7470
@hitanshujena7470 18 дней назад
First i have understood the better approach and wrote the code by myself and yes i had built same logic as striver 😊
@devanshulpratapsingh5963
@devanshulpratapsingh5963 Год назад
So desperately trying this question for 2 days wasn’t able to optimise it, Now I can❤🔥
@Manishgupta200
@Manishgupta200 Год назад
Really amazing Striver. In-place space optimisation method is really out of my imagination. you make everyting real in very much optimal way. Thankyou Striver for such an amazing tutorial ❤
@takeUforward
@takeUforward Год назад
Let's march ahead, and create an unmatchable DSA course! ❤ Use the problem links in the description.
@AbhishekSingh-mh2fg
@AbhishekSingh-mh2fg Год назад
Recently started learning DSA, i was able to come up with the same approach as 1st and 2nd, even though I couldn't complete it but I'm happy I came with some approaches. Thanks for this great explanation.
@krishanubiswas6869
@krishanubiswas6869 9 месяцев назад
Thanks striver, ....however i would like to mention my code....when i solved the code by myself....i used a treemap to keep an account of the zeroes.....and then iterated through the map turning all the stored rows and columns to 0....however actually this approach came to my mind from your vertical order traversal of binary tree where you used almost the same data structure....and my solution was accepted (though the T.C was bad)....but still thanks for helping to build me my own approach....and the optimal solution was superb...
@sanjayv-ef6ey
@sanjayv-ef6ey 2 месяца назад
I have a seen a ad full for u bhai thanks
@srinijabhogoju9033
@srinijabhogoju9033 Месяц назад
Wonderful approach. Thank you soo much for putting so much efforts and helping us learn these algorithms. No words are enough to express how much your efforts mean to us🙏
@yugal8627
@yugal8627 Год назад
OMG , I had watched many tutorials for this problem but never understood it clearly . Thankyou very much for your step-by-step detailed explanation , looking for more content from you in future🙂
@shloksuman8164
@shloksuman8164 Год назад
Optimal approach was quite tedious to understand, however , I got it after writing down the code again myself
@takeUforward
@takeUforward Год назад
Yes that is the reason I went slow and long, but writing it yourself helps to clear so many things.
@unknown_fact1586
@unknown_fact1586 Месяц назад
After following your videos, I'm able to understand the problems on my own and even come up with optimal solutions myself. Thanks for the amazing videos.
@yashwairagade3677
@yashwairagade3677 6 месяцев назад
U r a legend bro i am impressed by your problem solving skills
@nivetha6167
@nivetha6167 Год назад
You gave me hope when it comes to dsa... I'm too late being misled by other videos, but now after discovering your sde sheet, I have started to figure everything out in a planned manner... soooo... thank youuuuuuuuuuuu!!!!
@bully9858
@bully9858 Год назад
u are literally me
@nivetha6167
@nivetha6167 Год назад
@@bully9858 all the best with your coding Journey :⁠-⁠)
@GOJOANDSUKUNAFAN
@GOJOANDSUKUNAFAN 3 месяца назад
​@@bully9858bro is actually him🗣️ 🔥🔥
@hari7110
@hari7110 7 месяцев назад
super bro, i got 1st approach and was scratching my head to optimize it , watched last method twice now i understood🤩
@hashcodez757
@hashcodez757 4 месяца назад
great brother!! just can't imagine the optimizations you made hats off sirr!!
@CodingEnv
@CodingEnv Год назад
You are the soul and heart of DSA.
@sukritinarang5016
@sukritinarang5016 7 месяцев назад
The brute force solution that set values to -1 instead of 0 will not work in some test cases as constraints are mentioned as -2^31
@GungunSaluja-sy6br
@GungunSaluja-sy6br 25 дней назад
ya 201 case is not running
@ayushdwivedi6939
@ayushdwivedi6939 25 дней назад
use -2765 it will pass
@GungunSaluja-sy6br
@GungunSaluja-sy6br 25 дней назад
@@ayushdwivedi6939yes and we can use 'a ' also
@banana6108
@banana6108 17 дней назад
use -11 it will pass
@subhambachar
@subhambachar 2 месяца назад
just blew my mind, The OP optimal approach 🤯🚀
@rishijain9081
@rishijain9081 Месяц назад
What an explaination man !! Optimal solution was really out of my imagination.
@rashi1662
@rashi1662 11 месяцев назад
Hi Striver, I the last approach can also be written as below which looks less complex and easy to understand int n = matrix.size(); int m = matrix[0].size(); int col0 = 1; for(int i=0; i=1; j--){ if(matrix[0][j] == 0 || matrix[i][0]==0){ matrix[i][j] = 0; } } if(col0 == 0){ matrix[i][0] = 0; } }
@adityachoudary363
@adityachoudary363 8 месяцев назад
Superb 💥
@chethanprabhu4475
@chethanprabhu4475 Год назад
I had not understood when I watched it 2-3 days back. Looks like I had watched a video which was recorded 2 years back lol. But this new video is crisp clear
@takeUforward
@takeUforward Год назад
Yes re-rrecorded, the previous videos were for people who already knew dsa
@vivekpatial5614
@vivekpatial5614 Год назад
​@@takeUforward Your teaching skills are on another level :)
@suyashshinde2971
@suyashshinde2971 Год назад
SDE Sheet: Day 1 Problem 1 Done!
@Raunak999_yt
@Raunak999_yt 15 дней назад
After watching 5 times in a loop I understood the optimal solution 😅
@Atharva_kathiyawadi
@Atharva_kathiyawadi Год назад
along with i really learn how to write clean code & improve readability !! thanks striver
@RahulYadav-jk7um
@RahulYadav-jk7um 3 месяца назад
Was able to come up with better solution but did little mistake in the implementation , happy to see that I am now able to come with logical approach to solve problems All thanks to striver bhaiya! ❤
@satyammishra6363
@satyammishra6363 7 месяцев назад
For Brute force based solution, I think we should int_min or float("-inf), instead of -1, because -1 can be entry in matrix
@unlockyourfinance
@unlockyourfinance 5 месяцев назад
Exactly, even int_min can be in the array since -2^31 is the limit in question..
@MahaveerJanagouda
@MahaveerJanagouda 3 месяца назад
​@@unlockyourfinance​ u both are right, but how to approach it then? i tried int_MIN+1 also , 191 test casepassed for the first approach
@ayushdwivedi6939
@ayushdwivedi6939 25 дней назад
take -2765 it will pass
@anushkachavan5065
@anushkachavan5065 5 месяцев назад
You are my motivation to solve the dsa problems every day. Thanks for providing these videos, it helps a lot🔥
@cinime
@cinime Год назад
Understood! Amazing explanation as always, thank you very much for your effort!!
@apoorv2203
@apoorv2203 7 дней назад
Very well made and well explained.
@jaydeepkarena
@jaydeepkarena Год назад
Great explanation Raj. Thanks for creating this videos. Keep making videos like this. I have just started your SDE sheet for learning DSA
@FooBar-lb5wf
@FooBar-lb5wf 4 месяца назад
Amazing explanation, thank you! For the second pass through the array, I tried a slighly shorter approach which seems to work as well (tested on Leetcode). Process the elements bottom to top, right to left. This ensures that an element (i,j) is always updated before its row indicator (matrix[i][0]) and col indicator (col0 if j==0 else matrix[0][j]) are processed. We can then update them through single pair of loops over the array and we may not need special handling for matrix[0][0] and col0 elements.
@harharmahadev3115
@harharmahadev3115 Год назад
Plz complete it in July
@sw_2421
@sw_2421 Год назад
Ek saal pakad ke chal..
@cdnggk6455
@cdnggk6455 Год назад
​@@sw_24212 saal bhai 😂 free k cheez ki yahi dikat hoti hai
@hitmanop4078
@hitmanop4078 4 месяца назад
im going with your sheet, but this question is of 2D arrays which is a bit challenge for me as i didt did any of 2 D questions yet should have given a intro before 2D questions
@smileyyyy7372
@smileyyyy7372 3 месяца назад
May god bless you striver 🙏🙏
@rohitraj5832
@rohitraj5832 Год назад
for optimal approach, while filling the matix, instead we can directly traverse the matrix In reverse order so that matrix[0][0] will be affected at last. i mean run loop for(row=m-1 to 0) { for(col=n-1 to 0)}. it worked 😀😀 //fill the matrix for(int i=m-1;i>=0;i--){ for(int j=n-1;j>=0;j--){ if(j==0){ if(col0==0)matrix[i][j]=0; } else{ if(matrix[i][0] == 0 || matrix[0][j] == 0) matrix[i][j]=0; } } }
@RaviKumar-sn6tu
@RaviKumar-sn6tu 6 месяцев назад
watched your video ...then others video...then again your video ...then finally understood it😇😇
@roxk6344
@roxk6344 Год назад
I want to complete this series so badly but then i saw he hasn't uploaded maximum videos. Please start uploading videos brother
@someshmone
@someshmone Год назад
Is it possible for tier3 college student and non it student to learn dsa
@Codeitt
@Codeitt Год назад
no doubt@@someshmone
@Codeitt
@Codeitt Год назад
it is possible.@@someshmone
@PrabalSingh2908
@PrabalSingh2908 15 дней назад
Understood man after wasting the entire day on it.
@AyushSharma-ye1xz
@AyushSharma-ye1xz Год назад
All videos are very helpful ❤️
@AdarshKeshari-wc2uz
@AdarshKeshari-wc2uz 3 месяца назад
Understood after going through twice ❤❤ Best explanation
@AjayKumar-sx6qo
@AjayKumar-sx6qo Год назад
OMG !!! Awesome explanation.. Thanks Striver
@shivammotani
@shivammotani Год назад
IDK why I felt the older video was more good. Found that one to be better. Even optimal code for that one is easier to understand.
@mehulthuletiya497
@mehulthuletiya497 Год назад
Timestamps 00:40 : Problem statement 01:49 : Brute-force solution 05:13 : - Code 06:28 : - Complexity 07:10 : Better solution 12:16 : - Code 13:49 : - Complexity 14:17 : Optimal solution 23:24 : - Code 29:02 : - Complexity
@dpxy1599
@dpxy1599 Год назад
thanx
@devanshgupta1164
@devanshgupta1164 24 дня назад
Thanks bro
@tridibeshmisra9426
@tridibeshmisra9426 7 месяцев назад
Very good algorithm .... the optimal one is really good. Thanks a lot, sir!
@NikitaSingh-kz2ii
@NikitaSingh-kz2ii Год назад
watched the video thrice to finally get optimal approach to my head. thankyou for the efforts🤗🤗🤗
@prathameshhatkar1911
@prathameshhatkar1911 Год назад
Great optimisation 🔥
@kaichang8186
@kaichang8186 10 дней назад
understood, thanks for the great video
@coolman2035
@coolman2035 Месяц назад
guys if you are on leetcode number is from INT_MIN(negative) to INT_MAX(positive) that is we cant take -1 for optimal therefore do it by taking 0
@sounaksaha1455
@sounaksaha1455 5 месяцев назад
One of the best optimal approach
@GOJOANDSUKUNAFAN
@GOJOANDSUKUNAFAN 3 месяца назад
Yea bt you can't even imagine this 😭
@SAI-q1v
@SAI-q1v 4 месяца назад
Bro i got confused to m*n and n*m matrix pls check confirm your better solution by the way mine was like storing pairs almost the same...
@abdulrehmaan153
@abdulrehmaan153 Год назад
You just added one more #fan in your infinte length array ❤
@mgnfy-view
@mgnfy-view 11 месяцев назад
Beautiful explanation!
@gyana67644
@gyana67644 Год назад
Bhai kya explanation hai ekdam next level. actually bhai videos mai aap c++ ka code lekhtai ho and Mai aur mare hostel friends ham Java mai code karte hain isleye thoda uncomfortable lagta hai . Aap ke article me jata hu to purana code milta hai . please Bro add Java code in to videos it will be beneficial to lot of students otherwise this course will be end and we are the java people will unable to to follow.Please bro🙏🙏🙏 .
@takeUforward
@takeUforward Год назад
in 7 days java and python add ho jaega
@theonlyritik
@theonlyritik Год назад
@@takeUforward what if I do dsa in javascript. Does it really matters? To be honest?
@karanveersinghdeora5085
@karanveersinghdeora5085 Год назад
Understood very well
@juliechoudhary9582
@juliechoudhary9582 Год назад
Understood and it's Amazing How you teach.
@hareshnayak7302
@hareshnayak7302 6 месяцев назад
Understood,Thank you striver for this amazing video.
@jeetdesaimusic
@jeetdesaimusic 4 месяца назад
Crystal Clear Explanation!
@surabsebait5409
@surabsebait5409 Год назад
Understood, very clearly explained
@imranmaniar8881
@imranmaniar8881 4 месяца назад
The bruteforce approach code provided would fail for the testcase [[-1],[2],[3]] on Leetcode. Here is modified code for BruteForce class Solution { public void setZeroes(int[][] matrix) { int m = matrix.length; int n = matrix[0].length; int[] rows = new int[m]; int[] cols = new int[n]; // Mark rows and columns that contain zeros for (int i = 0; i < m; i++) { for (int j = 0; j < n; j++) { if (matrix[i][j] == 0) { rows[i] = 1; // Mark the row cols[j] = 1; // Mark the column } } } // Set zeros based on the marked rows and columns for (int i = 0; i < m; i++) { for (int j = 0; j < n; j++) { if (rows[i] == 1 || cols[j] == 1) { matrix[i][j] = 0; } } } } }
@culeforever5408
@culeforever5408 11 месяцев назад
understood😇
@Manmohanshukla420
@Manmohanshukla420 2 месяца назад
STRONG SUGGESTION for ease of understanding: In the better/optimal solution instead of doing the second iteration over the entire matrix just iterate over the rows and cols marked for 0-conversion (except the first row/col) and convert the elements to 0. In optimal just keep two separate variables like row0 and col0 and convert the first row/col at the very end (after all the other row/cols) are processed.
@NonameNoname-f2t
@NonameNoname-f2t 7 месяцев назад
AMAZING SIR , UNDERSTOOD VERY WELL
@davidjonson303
@davidjonson303 18 дней назад
Thanks bhaiya ji ..
@soothinghumms7019
@soothinghumms7019 2 месяца назад
in Leetcode brute force problem there is a test case having matrix value as -1 which may cause a problem while changing -1 values in the matrix
@newsbuster2194
@newsbuster2194 3 месяца назад
understood
@kirtipalve1772
@kirtipalve1772 4 месяца назад
What if we do this? - use first row of matrix from 1 to m to mark columns use first column of matrix from 1 to n to mark rows keep two flags to check is first column or first row have a zero for(i=1;i set first row 0
@abhishekjadhav2250
@abhishekjadhav2250 6 дней назад
mind blowing optimal solution. rewatched it thrice still the row column is consfusing still couldnt understand it.
@priyotoshsahaThePowerOf23
@priyotoshsahaThePowerOf23 Год назад
First code in spreadsheet and got some feel🥵😱❣❣
@rahulkumar-wz9jc
@rahulkumar-wz9jc 9 месяцев назад
Bhaiya like in brute force approach we are converting elements to -1 suppose -1 is already present in the arrray then it will modify the matrix and that we won't want.
@EvenHeisenbergIsCertainAboutMe
@EvenHeisenbergIsCertainAboutMe 9 месяцев назад
Take some variable like a,n,... Instead of -1
@rahulkumar-wz9jc
@rahulkumar-wz9jc 9 месяцев назад
@@EvenHeisenbergIsCertainAboutMe kind of string type variable u r telling
@kushagrajain9493
@kushagrajain9493 8 месяцев назад
@@EvenHeisenbergIsCertainAboutMe but alphabets will be stored as asci value, which are again integers
@RITIKKUMAR-qq7or
@RITIKKUMAR-qq7or 18 дней назад
bro already mentioned that it's Binary Array means only 0 & 1 will be there
@sreejitkar8044
@sreejitkar8044 Месяц назад
Hatss off brother🙌🙌
@ankithazra2005
@ankithazra2005 4 месяца назад
My god 😮😮. Never thought this could have 0(1) space complexity
@suraj_fusion
@suraj_fusion Год назад
The brute force approach will not work for integer matrix (in leetcode integer matrix is there) but it will work for binary matrix
@sahilkhan_cs50
@sahilkhan_cs50 Год назад
Why?
@sahilkhan_cs50
@sahilkhan_cs50 Год назад
It will work I think
@suraj_fusion
@suraj_fusion Год назад
Because since it is an integer matrix What if the matrix elements in the beginning is -1 then how can you use this approach of marking with -1 think about it .
@sahilkhan_cs50
@sahilkhan_cs50 Год назад
@@suraj_fusion yes got it...u can place it with a value in the extreme bounds
@suraj_fusion
@suraj_fusion Год назад
@@sahilkhan_cs50 It should logically work didn't try it though.
@ShadabChoudhary-s8v
@ShadabChoudhary-s8v 7 месяцев назад
crystal clear approach
@AyushEditz-hs6pf
@AyushEditz-hs6pf Месяц назад
my head hurts after watching the optimal approach
@HR-pz7ts
@HR-pz7ts Год назад
It was a little overwhelming but I understood everything just need to implement the last technique on my own without copy pasting.
@ruchikaahujaasm
@ruchikaahujaasm 5 месяцев назад
Nice explanation of all the approaches however one feedback I have is at 14:35 video time there is some correction instead of saying minimizing space complexity you said minimizing time complexity. Thank You !!!
@shivamgurjar8979
@shivamgurjar8979 4 месяца назад
Such a great solution ✨
@MamtaGupta-xj1kb
@MamtaGupta-xj1kb 4 месяца назад
#Striver rocks & #takeUforward learner rocks 🤟👍
@shivamsingh-we7ek
@shivamsingh-we7ek Год назад
for the element which are not in markRow and markCol , and that are -1 so when we go to mark them as zero we will ended up marking them also zero ????
@nishthaarora1907
@nishthaarora1907 11 месяцев назад
if i talk about brute force , how can i assign -1 in the matrix , because matrix can have value from -2^31
@shaheenparween4326
@shaheenparween4326 11 месяцев назад
understood✔✔
@luckydev9006
@luckydev9006 Год назад
Thank you for providing such good content
@ddevarapaga5134
@ddevarapaga5134 2 месяца назад
wow mindblown amazing understood bro
@yashraj4855
@yashraj4855 3 месяца назад
There is an inherent fallacy in the suggested brute force approach. The fact that the matrix values can be -1 by default is ignored. The cell value range b/w -2^31 to 2^31-1 as per the linked question. So we can get unnecessary zeroes.
@RajNamdev_19
@RajNamdev_19 3 месяца назад
Understood
@prapti2385
@prapti2385 2 месяца назад
GODDDDDDDDDDDDDDDDDDDDDD, I FINALLYYYYYYYYYYYYYY UNDERSTODDDDDDDDDDDDDDD THISSSSSSSSSSSSSSS!!!!!!!!!!!!! YAYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY edit: run hi nahi hua
@lenalena-x3n
@lenalena-x3n 2 месяца назад
it's simple buddy , just read below written words and you will get all the concepts cleared 1. Why optimal solution works ? isn't it wrong to change values of first row and column to zeroes , what happens to their own values ? --------- bro , it works because the values of first row and column that are changed to zeroes to be used as marking for later, actually happens to be the values that they finally would have got , so those marking prove to be the actual final values that they are getting , ( this I got when i compared better approach and optimized approach side by side and saw that there is no difference even if 1st row and column acts as marking arrays for respective columns and rows. ) 2. Why do we traverse the way we are doing , that is first update every values except , of 1st row and column -------- because , 1st row and column has to be used as marking , and they must not change before their role as a marking isn't been completed. 3. Why we first update 1 row , then 1 column -------- because again , if 1st column is updated first , then we don't always get right marking for the 1st row , so 1 row needs to be updated first and then 1st column.
@Keshav-yv4ow
@Keshav-yv4ow 2 месяца назад
have your optimal approach runs fine ?? or you getting stuck in some test cases?
Далее
Rotate Matrix/Image by 90 Degrees | Brute - Optimal
17:47
История Hamster Kombat ⚡️ Hamster Academy
04:14
Pascal Triangle | Finding nCr in minimal time
26:45
Просмотров 251 тыс.
Spiral Traversal of a Matrix | Spiral Matrix
16:33
Просмотров 214 тыс.