Top Competitive Programmer vs. LeetCode's HARDEST Questions
Вставка
- Опубліковано 22 тра 2024
- A top competitive programmer from the Codeforces/CodeChef realm (with almost zero prior interview experience) takes on the hardest questions known to LeetCode to find out... how good is competitive programming, really? Is it enough to dominate even the hardest questions that LeetCode has to offer? Or will these questions be enough to stump me? Find out in this video experiment.
(yes, lowest solve rate doesn't necessarily mean hardest, but it's the best I could do, and they were pretty hard anyway)
Questions
Q1 (14.2%): leetcode.com/problems/strong-...
Q2 (15.0%): leetcode.com/problems/booking...
Q3 (15.7%): leetcode.com/problems/fancy-s...
Support me with money: www.buymeacoffee.com/galencolin
Music:
Sthlm Sunset by Ehrling
• Ehrling - Sthlm Sunset
(not exactly sure how to credit, the given link is dead)
Paradise by Ikson ( / ikson )
Link: • Ikson - Paradise
This Is For You (Prod. by Lukrembo)
Link: • lukrembo - this is for...
Timestamps:
0:00:00 Intro
0:01:17 Format
0:02:15 Q1 (hardest, 14.2%)
0:23:01 Q1 - Recap
0:24:06 Q2 (2nd hardest, 15.0%)
0:53:46 Q2 - Recap
0:56:01 Q3 (3rd hardest, 15.7%)
1:04:05 Q3 - Recap
1:04:37 Conclusion - Наука та технологія
this is the most useful series Colin, please more of leetcode hards
Good content for sure.
Would love to hear more commentary about how you break the problem down.
this
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];
Colin really stepped up the editing with this video. Kudos.
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
just found out this channel ,i'm so glad i did
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
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.
thanks for sharing your though process!
Awesome! I saw the thumbnail and title and clicked immediately. Great video
Love your vids dude
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💀
You're actually insane bro!
Love this man
I think content competitive programmer vs leetcode contest is very cool, u can try it
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
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.
Great content
Nice content 😍😍
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 # ?
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"
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*
Loved the sub 1 second google check *chefs kiss*
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.
great content
Can you make a 3 month boot camp going from 0 to competitive programmer.
you are the best dude
do a competitive programmer vs project Euler problems
this
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 ;)
Informative
You should create your own ultra question.
I would appreciate it if you explain your code after finishing it. I get that you don't want to make it a long video but just an idea.
Video idea : Solving leetcode's 30 day monthly problems in 'X' hours!
That deep voice surprised me.
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
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 :)
The world's most employable man
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.
love that jazz
how did u start writing code when u are begening?
You did great! now do it in bash -_-
Can you try calculator IV?
u should start streaming content like this pls
At start he is like "this is annoying... this might suck".. after finishing "ok it's fair"... brooo🤣🤣
I was shocked to hear your voice.🤣
1.20am and here I am.
After watching that u start appreciate schools like Harvard
This is an adhoc problem right?
Bro get your spectacle power checked, blinking a lot can be a sign of an increase in the power
Have you ever gone outside?
🔥🔥🔥
I clicked on this video, thinking you were a coder girl. My eyes have deceived me.
i was shocked at 0:001sec .....Can anyone guess why?
Btw i watched him first time!
how do you get into competitive programming?
depression
@@Mathe_Baendiger 😭
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.
BTD6 is
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
Question: 420
You: Yes, 420
The Ring
I can't do programming this fast takes me longer lol
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
Anyways, hair care tutorials thank you? XD
I do like nothing and it stays (mostly) great, I'm just blessed
❤️❤️❤️❤️
you did a lot of cuts there
Hey no what😭😂
You know what i mean if you accidentally click this video
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??
i also play bloons tower defense
he actually looks a bit like my ex
Why you have long hairs?
Whoa moistcritical lil bro is here
Algorithm comment!
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.
she is beautiful . . .
Do Project Euler's lowest solved questions
That's some real challenge.
*confoosedPikachuFace
What its easy af
Need to update your browser lol
Why tf do you look like fang yuan ?
how old are you?
Please solve problems using java also...
Holy fucking shit, what the fuck is going on in question 3 😢
Voice does not match face
1st comment
i thougth you're a girl first ..lol
Tbh u hella cute
That question isn't that hard? 🤔
Leetcode hard questions are a piece of cake for you jajaja. Most of people (like me) are leetcode virgins jdjdjdd
You are an inspiration 🙌🏼
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
Are you a girl or a boy?
does it matter? lmao young people on youtube....
You can clearly see his Adams Apple...
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.
Are you a girl or a boy
a chad
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🚀
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
It's unethical to call yourself top anything.
*smell envious*