It’s the start of any program, just plan out the problem and do it step by step, including the syntax’s. It’s fairly simple the hard part is coming up with the actual program lol.
I first learned basic on a TRS-80 in 1981. Been in front of computers ever since. Now I have severe carpal, and my eyes are getting old. These questions are indeed challenging, but not impossible. But I have no idea how he does them so fast. But his hands still work and he can see the screen reliably.
@@shmeepurt it's for coding interview preparation. Big tech companies make you do questions like these to see whether they should hire you. Some people also like to do it for fun or, yeah, to test themselves/practice (competitive programming)
@@TheCameltotem Programming isnt really more than working with basic mathematical computations and "strings" (aka char sequences). Activly practicing these is a good entry for learning new languages and even intermediates can practice these basic but essenial skills
You are built different lol. Can’t wait to see where your career takes you! I’m sure you will be involved in some cool impactful engineering somewhere down the road! Question for you, have you hit diminishing returns growth-wise with algos? Not knocking the fun aspect of it or anything but SWE has so many domains outside of DS&A that are worth diving deep into as well. How’s your sys design? OOP? TDD? Can you work across the stack? Wishing you the best bro! Keep learning and growing!
competitive programming is not necessarily getting you anywhere, its more of a hobby for those who want to do it. Hard work on real problems and dedication will though...
@@Vastaway no, only very very niche interviews, like if you want to do google interview, and you have to solve it on blackboard then what he does is useful... but if you are prepping for google interview and you are good engineer already you will take a month off to prepare for their unique annoying method... If you are young, like in school totally get into it... but if you are already working somewhere as a junior this is sub optimal.
LeetCode's hardest problems are a piece of cake compared to what's on CodeForces. These problems are considered AT MOST average difficulty on there. That's what I used to prepare for coding interviews, and it worked. I nailed pretty much all of them.
me (while looking at the first problem) : huh! this is so easy, lemme pause this video and code.. me (Later) : *Struggling for 3-4 hours only to find that the algorithm sucks for several testcases*
Super impressed how quickly you came up with the "black magic" solution for the n >= 20 case in Q1- had to stop and think for a while to understand. For others wondering: note that in the 6
@Jon Smith you assume your definition of fun applies to everybody? Maybe you should broaden your horizon, eh? I could tell you, "bruh, read a book learn something in your one life lol"
@@RAGEEcs of course basic understanding of data structures is needed. But what's helping is lots of practice. There are tons of videos from guys like Neetcode, Kevin Naughton and Nick White that have solved LC questions. I check their videos if I feel stuck and try to comprehend their approach.
@@anikevin LeetCode's hardest problems are not difficult at all compared to CodeForces' most difficult problems. Go there if you really want competitive programming ;)
I wish I were this big brain. I failed my Google interview a couple of months ago and I'm not young anymore either. I wish I could do this but honestly I don't see it happening, it's hard to learn this stuff.
I've never been good at Google-style interviews or timed algorithm-focused tests, but have successfully worked in the field for 6+ years. And I was +30 when I entered it. There are many companies that are interested in results, not in how clever your algorithms are. If you focus your efforts in a popular field like web development or ML you can find work all across the world. No need to aim for Google unless you have a specific reason for it.
Can you move characters in the string or switch them? does that count as a step? I'm trying to solve the problem myself, but for some reason I'm counting 9 on "bbaaaaaaaaaaaaaaacccccc", and the answer is 8. I just cant see how you can make that case in 8.
You probably were removing all from the largest group of consecutive same characters instead of removing from the group of consecutive same characters that has the lowest n % 3 value where n is the number of consecutive same characters in a row. Removing 3 "a"s only reduces the number of rule breaks by 1 where as removing an "a" and a "c" reduces rule breaks by 2. You could actually remove any character after those 2 and still reach 8 changes using 5 switches.
@@jv1192 usually nobody starts to code because they love coding haha. you want to create something and coding is just means to an end. if you're passionate about creating whatever it is , software website or games. most of the people that code professionally will tell you that they cant script from the top of their head like this guy , but you do develop that "6th sense" of the logic needed to fix a problem. at least you will know what you're missing or what to search for. good luck! In terms leetcode solving capabilities , he far accedes any developer I personally know of
Your camera keeps jump cutting conveniently when you are not talking, but the timestamp increases at a continuous rate. Not trying to dismiss this but I would like you to respond to this.
I think you're very talented, but you really need to learn how to name things properly and approach problems with the divide + conquer strategy. I'm 10 years into programming, but didn't understand a thing because your code isn't very descriptive. Just watched it until the end because I was very fascinated with your geekyness 😂😂😂
Thats what competitive programmer does tho, im already surprised he used so many white space within his code. Its nothing like your day to day job programming
@@Lovinyou0 Haha ok 😂 But LeetCode is supposed to qualify for a job interview. And understandable code is prob very important for employers because that's their asset 🤔😂 So what's this CP experiment going to prove? With CP you're smart enough to solve but won't get hired anyways because your code sucks? 😂😂😂
@@matthewscudder7628 Haha OK, there's no purpose other than fun? I like guys who program for fun 😂 But my focus of programming fun is writing beautifully looking, well-architected code that performs well. I like what I'm doing, so I don't mind time so much because it's my passion 😂
@@marcotroster8247 This is exactly why LeetCode and Codility are TERRIBLE tools. They are great if you want code wizards you lock in a room to come up with algorithms. These tests cannot measure how well a programmer work in a team or how quickly they adapt to existing code bases, unfamiliar tools and so on.
Here’s an idea for a video, make a clone of leetcode, call it yeetcode, and make it test algorithms based off meme quality questions and put Elon Musk in the title for clickbait🚀
i wonder what your social life looks like.. like its ok to be one of the best programmer at the field, but if you lack of social communication you cant really survive "outside"
This dude has replaced the word "HARD" with "FUN".
That's the secret to MAANG
MANGA
@@syntaxandRender i clicked video, on first two secs i got baited, scammed thinking of someone else [gender specific];
Good content for sure.
Would love to hear more commentary about how you break the problem down.
this
Dude, I literally just started learning how to prgram, but I love watching these videos haha. Just watching the thought process is interesting
same here :)
It’s the start of any program, just plan out the problem and do it step by step, including the syntax’s. It’s fairly simple the hard part is coming up with the actual program lol.
I first learned basic on a TRS-80 in 1981. Been in front of computers ever since. Now I have severe carpal, and my eyes are getting old. These questions are indeed challenging, but not impossible. But I have no idea how he does them so fast. But his hands still work and he can see the screen reliably.
Yall wanna create a study/ practice group?
@@reverend481 why not:)
Video idea !! : do 100 leetcode easy questions under 30 minutes i guarantee you it will blow up .....or something similar with medium level questions
You read my mind, that's literally my next video idea (though 100 in 30 mins is overestimating my skill)
@@ColinGalen it would be hard to even fully understand 100 questions in 30 minutes
You realize that's only 18 seconds per question right? lol
I don't think I could even read that many question in 30 minutes
60 in 60min would be a nice idea
I get so annoyed when I am unable to come up with a logic.. Sometimes the logic sounds so absurd that I question myself if I know code💀
I'm just starting to get into this field and this looks insane
Leetcoding or software development? Because they are not even remotely linked.
@@TheCameltotem really
@@TheCameltotem what’s the point of leet code? Is it to test yourself?
@@shmeepurt it's for coding interview preparation. Big tech companies make you do questions like these to see whether they should hire you. Some people also like to do it for fun or, yeah, to test themselves/practice (competitive programming)
@@TheCameltotem Programming isnt really more than working with basic mathematical computations and "strings" (aka char sequences). Activly practicing these is a good entry for learning new languages and even intermediates can practice these basic but essenial skills
this is the most useful series Colin, please more of leetcode hards
You are built different lol. Can’t wait to see where your career takes you! I’m sure you will be involved in some cool impactful engineering somewhere down the road!
Question for you, have you hit diminishing returns growth-wise with algos? Not knocking the fun aspect of it or anything but SWE has so many domains outside of DS&A that are worth diving deep into as well.
How’s your sys design? OOP? TDD? Can you work across the stack?
Wishing you the best bro! Keep learning and growing!
competitive programming is not necessarily getting you anywhere, its more of a hobby for those who want to do it.
Hard work on real problems and dedication will though...
yeah I can't tell if this is a joke competitive programming is more like a video game
@@krellin won't it help for coding interviews tho?
@@Vastaway no, only very very niche interviews, like if you want to do google interview, and you have to solve it on blackboard then what he does is useful... but if you are prepping for google interview and you are good engineer already you will take a month off to prepare for their unique annoying method...
If you are young, like in school totally get into it... but if you are already working somewhere as a junior this is sub optimal.
@@krellin oh ok, thanks for the tip! yea im in school and wondering if I should continue.
just found out this channel ,i'm so glad i did
LeetCode's hardest problems are a piece of cake compared to what's on CodeForces. These problems are considered AT MOST average difficulty on there. That's what I used to prepare for coding interviews, and it worked. I nailed pretty much all of them.
U make me feel so dumb 😂😂
@@kevinstefanov2841 i would love to...can I have u discord ?
@@JulioSantos-bv5ro pls tell me yours cuz i changed mine and ever since i did people have been having trouble sending me friend requests
@@kevinstefanov2841 Here's mine if you don't mind helping @crypToch
@@franklinnwankwo9442 what are the 4 digits after the # ?
Colin really stepped up the editing with this video. Kudos.
me (while looking at the first problem) : huh! this is so easy, lemme pause this video and code..
me (Later) : *Struggling for 3-4 hours only to find that the algorithm sucks for several testcases*
Super impressed how quickly you came up with the "black magic" solution for the n >= 20 case in Q1- had to stop and think for a while to understand.
For others wondering: note that in the 6
What?
@Jon Smith what did he say wrong here lol. The comment was quite helpful
@@ona2 no
@Jon Smith how do you figure he has narrow horizons
@Jon Smith you assume your definition of fun applies to everybody? Maybe you should broaden your horizon, eh? I could tell you, "bruh, read a book learn something in your one life lol"
Awesome! I saw the thumbnail and title and clicked immediately. Great video
I think content competitive programmer vs leetcode contest is very cool, u can try it
Then there's me struggling with almost all medium questions. At least I don't suck at lc easies anymore.
do you feel like whats helping you get through leetcode is good knowledge on data structures?
@@RAGEEcs of course basic understanding of data structures is needed. But what's helping is lots of practice. There are tons of videos from guys like Neetcode, Kevin Naughton and Nick White that have solved LC questions. I check their videos if I feel stuck and try to comprehend their approach.
@@anikevin LeetCode's hardest problems are not difficult at all compared to CodeForces' most difficult problems. Go there if you really want competitive programming ;)
do a competitive programmer vs project Euler problems
this
thanks for sharing your though process!
I wish I were this big brain. I failed my Google interview a couple of months ago and I'm not young anymore either. I wish I could do this but honestly I don't see it happening, it's hard to learn this stuff.
I've never been good at Google-style interviews or timed algorithm-focused tests, but have successfully worked in the field for 6+ years. And I was +30 when I entered it. There are many companies that are interested in results, not in how clever your algorithms are. If you focus your efforts in a popular field like web development or ML you can find work all across the world. No need to aim for Google unless you have a specific reason for it.
You're actually insane bro!
Loved the sub 1 second google check *chefs kiss*
That deep voice surprised me.
Now i know why the first one is very hard, i tried solving this conundrum but apparently my ken didn't reach that extent of math.
How did I end up here?? I have nothing to do with programming. But this was…intriguing! MORE. I want to see you taking on Russian hackers
Can you make a 3 month boot camp going from 0 to competitive programmer.
Hello, I like the effort. Good vid but I would think it would be good idea to reduce the size of that clock as it can get annoying.
The world's most employable man
Love your vids dude
love the videos.. new at programing it all looks like black magic... I would love more explanation on why you do what you do.. LOL
Dude, dude you are awesome
Video idea : Solving leetcode's 30 day monthly problems in 'X' hours!
You should create your own ultra question.
Nice content 😍😍
Love this man
I clicked on this video, thinking you were a coder girl. My eyes have deceived me.
Great content
After watching that u start appreciate schools like Harvard
His coding ability is indeed remarkable, but I don't get why nobody talked about how beautiful his hair is.
Because nobody came here for the hair or carea
At start he is like "this is annoying... this might suck".. after finishing "ok it's fair"... brooo🤣🤣
i was shocked at 0:001sec .....Can anyone guess why?
Btw i watched him first time!
You did great! now do it in bash -_-
when you code using your text editor, what is the command you use in the terminal to run the c++ you write?
you need to compile your code probably using g++ to create an executable, then you run it :)
1.20am and here I am.
Can you move characters in the string or switch them? does that count as a step?
I'm trying to solve the problem myself, but for some reason I'm counting 9 on "bbaaaaaaaaaaaaaaacccccc", and the answer is 8. I just cant see how you can make that case in 8.
change 'a' 4 times, remove the last 'a', change 'c' once, remove 'c' twice.
You probably were removing all from the largest group of consecutive same characters instead of removing from the group of consecutive same characters that has the lowest n % 3 value where n is the number of consecutive same characters in a row. Removing 3 "a"s only reduces the number of rule breaks by 1 where as removing an "a" and a "c" reduces rule breaks by 2. You could actually remove any character after those 2 and still reach 8 changes using 5 switches.
you are the best dude
Shout out all the people here who have absolutely 0 coding/programming experience
After watching this are you still considering being a software engineer? This looks too hard for me. I’m having second thoughts
@@jv1192 I never was
@@jasoncole1833 what is your career? Just curious I’m still undecided
@@jv1192 in college
@@jv1192 usually nobody starts to code because they love coding haha. you want to create something and coding is just means to an end. if you're passionate about creating whatever it is , software website or games. most of the people that code professionally will tell you that they cant script from the top of their head like this guy , but you do develop that "6th sense" of the logic needed to fix a problem. at least you will know what you're missing or what to search for. good luck!
In terms leetcode solving capabilities , he far accedes any developer I personally know of
great content
Question: 420
You: Yes, 420
u should start streaming content like this pls
The Ring
I was shocked to hear your voice.🤣
how did u start writing code when u are begening?
This is an adhoc problem right?
BTD6 is
Bro get your spectacle power checked, blinking a lot can be a sign of an increase in the power
Can you try calculator IV?
Anyways, hair care tutorials thank you? XD
I do like nothing and it stays (mostly) great, I'm just blessed
How do i code like him... Is there any right path to follow to code like him?
It probably helps to understand CS concepts instead of just learning code syntax. Also math like discrete math and number theory
Please don't code like him if you're trying to get a job.
love that jazz
how do you get into competitive programming?
depression
@@God_is_real_iguess 😭
I can't do programming this fast takes me longer lol
Hey no what😭😂
You know what i mean if you accidentally click this video
you did a lot of cuts there
she is beautiful . . .
Informative
ивангай?
Leetcode hard questions are a piece of cake for you jajaja. Most of people (like me) are leetcode virgins jdjdjdd
You are an inspiration 🙌🏼
i also play bloons tower defense
One big issue: the code you write won't pass during a coding interview because of not being clean quality code
Is he sitting in an interview in the first place??
What its easy af
he actually looks a bit like my ex
Whoa moistcritical lil bro is here
Have you ever gone outside?
Do Project Euler's lowest solved questions
That's some real challenge.
Why you have long hairs?
Algorithm comment!
Need to update your browser lol
Your camera keeps jump cutting conveniently when you are not talking, but the timestamp increases at a continuous rate. Not trying to dismiss this but I would like you to respond to this.
*confoosedPikachuFace
Holy fucking shit, what the fuck is going on in question 3 😢
Please solve problems using java also...
Why tf do you look like fang yuan ?
🔥🔥🔥
Voice does not match face
this chinese is a freaking genius, I really admire him, I could never achieve this level even if I tried
i think he is korean
❤️❤️❤️❤️
That question isn't that hard? 🤔
Tbh u hella cute
i thougth you're a girl first ..lol
I think you're very talented, but you really need to learn how to name things properly and approach problems with the divide + conquer strategy. I'm 10 years into programming, but didn't understand a thing because your code isn't very descriptive. Just watched it until the end because I was very fascinated with your geekyness 😂😂😂
Thats what competitive programmer does tho, im already surprised he used so many white space within his code. Its nothing like your day to day job programming
@@Lovinyou0 Haha ok 😂 But LeetCode is supposed to qualify for a job interview. And understandable code is prob very important for employers because that's their asset 🤔😂
So what's this CP experiment going to prove? With CP you're smart enough to solve but won't get hired anyways because your code sucks? 😂😂😂
@@marcotroster8247 Spot on man, but that wasn't really the point here. The idea was to solve the problems fast, not to do a mock interview.
@@matthewscudder7628 Haha OK, there's no purpose other than fun? I like guys who program for fun 😂
But my focus of programming fun is writing beautifully looking, well-architected code that performs well. I like what I'm doing, so I don't mind time so much because it's my passion 😂
@@marcotroster8247 This is exactly why LeetCode and Codility are TERRIBLE tools. They are great if you want code wizards you lock in a room to come up with algorithms. These tests cannot measure how well a programmer work in a team or how quickly they adapt to existing code bases, unfamiliar tools and so on.
you should join a boxing gym. an hour a day. you'd have a hell of a jab with those long lanky arms. this ain't an insult.
Here’s an idea for a video, make a clone of leetcode, call it yeetcode, and make it test algorithms based off meme quality questions and put Elon Musk in the title for clickbait🚀
1st comment
Are you a girl or a boy?
does it matter? lmao young people on youtube....
You can clearly see his Adams Apple...
Are you a girl or a boy
a chad
Man female?????
i wonder what your social life looks like.. like its ok to be one of the best programmer at the field, but if you lack of social communication you cant really survive "outside"
Don’t hate…
i smell jealousy and envy
He literally has a channel 💀 it’s not like he is doing this shii in the dark you need some social skills to do that
He's perhaps one of the best. People come to him for becoming friends or asking for guidance, not the other way around.
Hes a good looking guy masculine features like sharp eyes and a strong chin I doubt he has any trouble