lets be coomer bros! *tongue kiss* #splish splash #squirtboy
@TechByteMert2 күн бұрын
could you share spotify playlists :))
@samtaubmanКүн бұрын
Haha look me up, @lalaloopsie69 on Spotify.
@TechByteMertКүн бұрын
@@samtaubman i added you, thanks bro :)
@davidlaidbiggestfan9 күн бұрын
What do u use to record ? Imma hop on this trend
@samtaubman9 күн бұрын
OBS -- obsproject.com/
@iSilverZombie12 күн бұрын
what language do you think is preferred nowadays for leetcode? c++ or python
@samtaubman12 күн бұрын
I like Python and I know it is popular because the syntax is very easy. However I see a lot of competitive programmers use c++ probably because of speed. I have had interviews where I have had to use specific languages but generally I think you can use whichever language you prefer.
@SnowOverwatch12 күн бұрын
hope your finger is okay! Thanks for the motivation.
@samtaubman12 күн бұрын
Haha thank you, yeah it is just a small injury. Good luck!
@Mavericstar15 күн бұрын
thankew for the video sam
@jsc062515 күн бұрын
Two in a day 👏
@_CodeLife_16 күн бұрын
Good job on the dedication to learning. I used a different browser, muted and unmuted the site, chose different audio outputs. Then I read the description XD
@samtaubman15 күн бұрын
Haha thank you. Sorry about the sound!
@thoopra17 күн бұрын
Awesome!
@sarthakahuja158521 күн бұрын
For the first question did the same as yours , but in the for loop I only wrote len(haystack) and it worked ,coz i think in [a:b] , if b exceeds the original length of the string there is no problem like print("sarthak"[1:12]) Gives arthak , tried the next easy one for an hour and was only able to clear 194/296 cases , will wait for your answer next time, too tired to go through the solutions
@sarthakahuja158521 күн бұрын
Finally saw the solutions, I was way off track , gotta start the habit of seeing the solutions if I don't get the answer in 30 min , wasted a lot of time , 😂
@sarthakahuja158521 күн бұрын
Wanted to ask what's that column in your google sheet , where you fill yes or no , as in if you saw the solutions or not ?
@samtaubman20 күн бұрын
Nice work! Interesting I didn't realize the string slicing would not throw an error even if it is out of bounds. Haha yeah the next one seems harder I will get back to it tomorrow. My general rule is if I am stumped after 20 minutes look at solutions and tips. The yes no column is if I was able to solve the problem or not.
@jziumo21 күн бұрын
cant hear you bro🤣
@samtaubman21 күн бұрын
On vacation so I'm recording without audio.
@sarthakahuja158523 күн бұрын
copied the dictionary from your code, and this is the code values = {'I':1, 'V':5, 'X':10, 'L':50, 'C':100, 'D':500, 'M':1000} ans = 0 for char in s: ans = ans +values[char] length = len(s) for i in range(length - 1): sub_string = s[i:i+2] if sub_string == 'IV' or sub_string == 'IX': ans = ans -2 if sub_string == 'XL' or sub_string == 'XC' : ans = ans -20 if sub_string == 'CD' or sub_string == 'CM': ans = ans -200 return ans here i thought that for IV we earlier added 1+5=6, but we should have taken 4 similarly for IX 9, instead of 11, so i subtracted 2 from my original answer everytime IV or IX occur similarly 20 and 200 for other substrings and it gave me almost similar run time as yours
@samtaubman23 күн бұрын
Nice work! I like your approach to the problem. I just consolidated the extra logic with the "special" characters into the dictionary but it's cool to see another way to solve it.
@rohitvermamnvtechcarvons279324 күн бұрын
i am glad that i reached to your channel and your consistency in really good to make us inspire... thank you for making these videos ..... i will be more happy to understand the concept by your hearing your voice
@samtaubman23 күн бұрын
I'm glad you like the videos! I will start recording with sound next week, I am on a trip so it is loud.
@iSilverZombie24 күн бұрын
love these daily videos, randomly found one of your videos on my recommended page and have been watching every day since and motivates me to leetcode every day too lol
@samtaubman24 күн бұрын
Glad you like them! Crush it!
@jsc062525 күн бұрын
Wow this playlist was suggested to me and you have been extremely consistent, very inspiring 👏
@samtaubman25 күн бұрын
I'm glad it is inspiring, good luck!
@jsc062523 күн бұрын
@@samtaubmanThank you, you too!
@NielReitmann27 күн бұрын
One of the more random recommendations I’ve had on YT but enjoyed the watch. Following the journey!
@samtaubman12 күн бұрын
Haha thank you!
@meetmovaliya105028 күн бұрын
Please share the excel link
@samtaubman12 күн бұрын
There is a link to my website in my KZfaq bio and on there is a downloadable spreadsheet.
@UnnatidharSharma28 күн бұрын
Try to code with explanation that way user understand your code and logic.
@samtaubman27 күн бұрын
Thanks for the tip!
@vishu8226Ай бұрын
What's up bro
@samtaubmanАй бұрын
Hey
@vishu8226Ай бұрын
@@samtaubman what's your insta
@hatim010Ай бұрын
Hi i got this recommended to me randomly today and it's strange because i happened to do this matrix problem yesterday when i rarely log into the website Just to say hope you keep going i admire the dedication and progress tracking with excel sheets! Gonna look forward to the progress If i had one tip to share would be to maybe look at more than just one solution and try to compare how they work differently, cheers
@samtaubmanАй бұрын
Haha nice I'm glad it got recommended. I'll keep working. I appreciate the advice!
@miguelfernandocruzsantiago5380Ай бұрын
amazing
@rng_sere6039Ай бұрын
Nice job, set your audio up though
@lostInSocialMedia.Ай бұрын
where can i talk with you ?
@samtaubmanАй бұрын
Shoot me an email, contact info on my website. Link to my website is in channel bio.
@benfisher9942Ай бұрын
Nice work. what keyboard do you use
@samtaubmanАй бұрын
Just the laptop keyboard, I don't have an external keyboard.
@monishreddy5912Ай бұрын
CRAZY CONTENT BROO
@monishreddy5912Ай бұрын
I WILL SUPPORT YOU BRO NO MATTER WHO WATCHES IT OR NOT 👋👋
@samtaubmanАй бұрын
Appreciate it.
@Hobbes9Ай бұрын
I tried it myself and did the same thing you did. I was thinking it would be some crazy graph problem at first but realized you could just loop over everything and check each square one by one lol
@samtaubmanАй бұрын
Haha yessir you could do BFS or DFS but it isn't necessary.
@Hobbes9Ай бұрын
@@samtaubman it would probably be slower since you have to loop o(mn) to make the graph to begin with anyways Xd
@dylancuevas8264Ай бұрын
How the hell did I get here?
@smurasame2254Ай бұрын
see ur video from the front page, keep working man
@chrisrectenwald7307Ай бұрын
yeah i couldn't believe you just can brute force this solution
@samtaubmanАй бұрын
Haha yeah it's interesting.
@krishnashah2196Ай бұрын
hey man, love the consistency I actually started doing something exactly like this to keep myself accountable and saw your videos the same day!
@samtaubmanАй бұрын
Yessir put in the work!
@taylorswiftparody1Ай бұрын
wtf you all The English, use python language to write your code
@sushi_1233Ай бұрын
nice progress after a year man, keep going
@samtaubmanАй бұрын
Thank you!
@jaysson012 ай бұрын
finally! 🙌
@jaysson012 ай бұрын
just came across here, WOW, your channel is now an everyday mandatory programming vid for me
@samtaubman2 ай бұрын
Glad to hear it, more leetcode next week!
@roshannayak59822 ай бұрын
Cool Dude 🧊🧊, Keep it up
@fergalhennessy7752 ай бұрын
are you in the midwest 😅 its been cold
@samtaubman2 ай бұрын
Yeah I live in Chicago haha.
@NITHINNSHRI2 ай бұрын
Really appreciate your content, helps me get work done and be consistent. Thank you
@samtaubman2 ай бұрын
Glad you like it!
@Siangjun2 ай бұрын
Hello did u make the spreadsheet yourself? is there anywhere i can find something like that for my own tracking?
@samtaubman2 ай бұрын
I originally took the idea from NeetCode I think but have modified it a bit for my use. There is a link to my website on my KZfaq Channel homepage, on my website there is a downloadable copy of the spreadsheet.
@Siangjun2 ай бұрын
@@samtaubman Alright, thank you! :D
@np15252 ай бұрын
Very cool how you have been doing this for over an year now.
@samtaubman2 ай бұрын
Let's go, get after it!
@zsmith9222 ай бұрын
Need more Sade baby, you and her ooze sex #brickedup
@francgo2 ай бұрын
yo glasses gang 🤓
@ceylonfreak24963 ай бұрын
Keep up the good work bro💪
@suimastah223 ай бұрын
love your vids bro dont worry about missed days keep grindin. u job searching?
@samtaubman3 ай бұрын
Let's get it! I'm doing a masters right now so I'll start looking for full time this summer or fall.
@shokkrenaissanceMCSHOW3 ай бұрын
lets go man , u will get it
@samtaubman3 ай бұрын
Appreciate you.
@amuga_13 ай бұрын
What do you recommend the best way to learn Data structures and Algorithms
@samtaubman3 ай бұрын
Check out Neetcode.io
@amuga_13 ай бұрын
You look like you're 22 or 23 lol. How does "in" statement and "not in" work in Python?
@samtaubman3 ай бұрын
I am about 22 or 23 haha. The "in" statement checks if some value or object exists in some iterable and the "not in" statement checks if some value of object does not exist in some iterable. Iterable is anything that can be looped over. The time complexity of "in" and "not in" statements depend on what type of iterable you are using them on.