Winning LeetCode Weekly Contest 198

  Рет қаралды 111,459

William Lin

William Lin

4 жыл бұрын

The problems took much longer than expected, I made more wrong submissions than I would've liked, but I still got first!
leetcode.com/contest/weekly-c...
Second channel (William Lin ++): / @williamlinpp4187
Website: williamlin.io/
Instagram: / tmwilliamlin168
Twitter: / tmwilliamlin168
Discord: williamlin.io/discord

Пікірлер: 187
@insideentrepreneur7904
@insideentrepreneur7904 4 жыл бұрын
If this guy took 35 mins for completing this contest, I guess I will need a year.
@dotaking82
@dotaking82 4 жыл бұрын
And eventually you will give up!
@MindIsLikeFullMoonInFall
@MindIsLikeFullMoonInFall 4 жыл бұрын
He actually only used 25 mins AND winning the contest =D
@MrOsefosef
@MrOsefosef 4 жыл бұрын
jesus these comments are cringe
@MrOsefosef
@MrOsefosef 4 жыл бұрын
what about you try to get to his level instead of satirely mocking him?
@MrOsefosef
@MrOsefosef 4 жыл бұрын
​@Dawit_K Most the comments alienate him like he's not a human person, add to this the excessive boring sarcasm and you end up with a group of people pointing fingers at a very talented person.
@JohnCena963852
@JohnCena963852 4 жыл бұрын
You submitted it while I was still trying to read the question. How cruel.
@proudnepali9297
@proudnepali9297 4 жыл бұрын
Let's learn together
@user-id1rf9zb4x
@user-id1rf9zb4x 4 жыл бұрын
Shit..He is reading fast..Did he even spend anytime thinking? It seems like he just know the solution right after reading the question
@pavanxb
@pavanxb 3 жыл бұрын
Lmao, same
@josephmyers2133
@josephmyers2133 4 жыл бұрын
When I saw him coding, I was trying to figure out how to play the video at normal speed
@verdipratama
@verdipratama 4 жыл бұрын
😏👍
@omkararora8739
@omkararora8739 3 жыл бұрын
Exactly man
@sankhadiprang7179
@sankhadiprang7179 4 жыл бұрын
Aside from being able to code like that...I think i'll need the same time in which he is solving each problem to think the name of a single varible
@Warner1138
@Warner1138 4 жыл бұрын
I thought they nerfed you in the last update
@ITSH4WK
@ITSH4WK 3 жыл бұрын
😂😂😂
@justdrewit911
@justdrewit911 4 жыл бұрын
Give him another year and hes going to be a robot.
@edafade
@edafade 4 жыл бұрын
I don't know jack about coding, but I still watch these. Very interesting!
@atharvajadhav8598
@atharvajadhav8598 4 жыл бұрын
ik i was f**ked up when i saw special forces take 35 mins to solve everything 😢😂
@WilliamYFeng
@WilliamYFeng 4 жыл бұрын
Congratulations! This one was harder than usual. I used segment tree on problem 3 (way overkill) :P
@shameekagarwal4872
@shameekagarwal4872 4 жыл бұрын
can u pls share ur approach using seg tree?
@WilliamYFeng
@WilliamYFeng 4 жыл бұрын
@@shameekagarwal4872 ​Yeah, I'll be making a video about the contest this week.
@zachgillette4272
@zachgillette4272 4 жыл бұрын
What is your trick for reading the problem so fast? U hardly looked at the first problem before writing your solution so what are you looking for in the problem? Love ur videos btw
@devdaily2129
@devdaily2129 4 жыл бұрын
Dang, you be thinking fast af boi! Congrats
@nursultannazarov8379
@nursultannazarov8379 8 ай бұрын
thanks
@Starstrike21
@Starstrike21 4 жыл бұрын
grats on the win!
@minakshikudalkar557
@minakshikudalkar557 4 жыл бұрын
OMG OMG Congratulations!! This contest was really tough
@Hrk25s
@Hrk25s 4 жыл бұрын
Yea
@NolanAtlas
@NolanAtlas 4 жыл бұрын
was my first one 😬🤣
@rohanpawar2436
@rohanpawar2436 Ай бұрын
hey, you are marathi right ?
@randknutson5239
@randknutson5239 4 жыл бұрын
Hey why didn't you upload the bi-weekly contest today? Those are always immensely useful even if you don't get first!! Still 1000x better than what I can ever do!
@ewaszostok6464
@ewaszostok6464 4 жыл бұрын
Congratulations! Watching you inspired me to start learning c++, which Im really enjoying, so thank you! cout
@nursultannazarov8379
@nursultannazarov8379 8 ай бұрын
cout
@memporium240
@memporium240 4 жыл бұрын
i just looked at this i got 2 prob lol
@mayurchavhan8590
@mayurchavhan8590 4 жыл бұрын
This guy winnings every tough competition like piece of cake, Inner me : i hate my life. JK keep it up man :)
@ashishjain871
@ashishjain871 4 жыл бұрын
Thanks for posting the video. Appreciated.
@tulikamishra9708
@tulikamishra9708 4 жыл бұрын
hey could you do the dp contest of atcoder ..theres really few editorials for them and i'm having a hard time
@dantefalls2156
@dantefalls2156 4 жыл бұрын
"Okay so, let's start with the answer..." Nice
@ezizhummedov3607
@ezizhummedov3607 4 жыл бұрын
I have a question William. Do you use the shift key while you're typing? Would you please make a detailed video about fast typing. PLEASE!!!
@Paralativ
@Paralativ 4 жыл бұрын
Yeah, not specially the fast typing, but the fast use of all bracket-versions and more... It would be a total pleasure if he would show us his skill-work :)
@manncodes
@manncodes 4 жыл бұрын
Is that violin playing in the background?
@MindIsLikeFullMoonInFall
@MindIsLikeFullMoonInFall 4 жыл бұрын
Doing leetcode contest WHILE playing violin?!
@LaurenceMoroney
@LaurenceMoroney 4 жыл бұрын
Cello I think
@miteshkumar3183
@miteshkumar3183 4 жыл бұрын
Woah congrats! Number 3 was really messy for me.
@Ick37
@Ick37 4 жыл бұрын
ur insane jarvis
@codewithkolhar3131
@codewithkolhar3131 4 жыл бұрын
He types faster than he thinks.
@luvu7158
@luvu7158 4 жыл бұрын
MAN MAN MAN, what's font are u use in gvim?
@abhishekchaudhary2189
@abhishekchaudhary2189 4 жыл бұрын
I got stuck at Question 3 and didn't bother to solve 4. 4 seemed pretty easy rather than 3! I thought i was the only one 😂
@nursultannazarov8379
@nursultannazarov8379 8 ай бұрын
you are only one
@brianchen4331
@brianchen4331 4 жыл бұрын
When it says 53 seconds ago... lol
@tylerxiao2656
@tylerxiao2656 4 жыл бұрын
What about the Div 3 Codeforces contest last week?
@charlesdomain9196
@charlesdomain9196 4 жыл бұрын
Imagine if he had a second monitor...
@LeetcodeUser
@LeetcodeUser 3 жыл бұрын
IMAGINE HE HAS HIS MONITOR TILTED 🔥
@aliashraf7937
@aliashraf7937 4 жыл бұрын
This was vvv thrilling for me and am gone beat Topper in coming year...😇😎 I am v passionate about it now...😋
@priyamraj122
@priyamraj122 4 жыл бұрын
How many u solved this time?
@surajkekan6817
@surajkekan6817 4 жыл бұрын
you do it one day bro ,just keep going on.......
@rocknroll7967
@rocknroll7967 4 жыл бұрын
Topper XDDDDDDDDDD.
@anshumans1174
@anshumans1174 4 жыл бұрын
My first contest lol, didn’t do that well 😖
@NotFound-hy7qb
@NotFound-hy7qb 4 жыл бұрын
It was hard dont worry practice for next one
@akanshajain2452
@akanshajain2452 4 жыл бұрын
Same here :(
@Jerry-fy2gc
@Jerry-fy2gc 4 жыл бұрын
Same here
@eurotrucksimulator2217
@eurotrucksimulator2217 4 жыл бұрын
How much time should you spend on a problem if you can't solve it within the first 20 or 30 minutes as a begginer?
@dilshadnajimi6955
@dilshadnajimi6955 4 жыл бұрын
Hi William I have question about vim editor how you can make this for c++ coding and please say to me.
@devjeff3192
@devjeff3192 4 жыл бұрын
What is the first programming language you have learned ?
@ballchang8286
@ballchang8286 4 жыл бұрын
I got 2 scores in this contest...
@salmanxd2820
@salmanxd2820 4 жыл бұрын
Legends never lose, they win hearts
@proudnepali9297
@proudnepali9297 4 жыл бұрын
Yes
@aoxiangcui7566
@aoxiangcui7566 4 жыл бұрын
congrats!
@nursultannazarov8379
@nursultannazarov8379 8 ай бұрын
thanks
@rafaelluisdasilva3504
@rafaelluisdasilva3504 3 жыл бұрын
Wins coding competition while somebody plays the Bagpipes in the background. Meanwhile, I forget what I was doing when my cat meows.
@Analogue-India
@Analogue-India 4 жыл бұрын
I am curious, do you do any projects (web, app, ml) along with competitive coding ??
@MrOsefosef
@MrOsefosef 4 жыл бұрын
websites and apps definetely won't make you better at coding, so I doubt he makes any.
@aarondawson655
@aarondawson655 4 жыл бұрын
@@MrOsefosef personally I've learned nearly everything I know about coding from building apps, websites, and other projects but to each their own I guess.
@YeetYeetYe
@YeetYeetYe 2 жыл бұрын
@@MrOsefosef Depends how you define coding. Websites and apps will make you a much better engineer than competitive programming will, especially if you collaborate with other people while building those apps.
@whitesalmon0925
@whitesalmon0925 2 жыл бұрын
if it is not that I am somewhat familiar with leetcode, I would think you know the answer beforehand??? How the tell that you started code thru the solution when I was just about to finish reading the first sentence LOL??!! I feel so stupid :(
@wirrexx
@wirrexx 4 жыл бұрын
Is there a website for people who are new to do problem solutions?
@mmck174
@mmck174 4 жыл бұрын
dude my respects...i would probaly take a life time, actually i woudnt even try
@manikandanprabhakaran7516
@manikandanprabhakaran7516 4 жыл бұрын
He took more time 🙄🙄.. I think this contest was tougher than usual
@orio6708
@orio6708 4 жыл бұрын
Make some video for c++ basics to advance for beginners. We are interested to learn from you
@roshan84ya99
@roshan84ya99 4 жыл бұрын
Please upload the video on hacker rath july circuit tooo after contest
@ashishbarge4408
@ashishbarge4408 4 жыл бұрын
Which compiler do you use?
@rasecbadguy5600
@rasecbadguy5600 4 жыл бұрын
upload codeforces div2 too
@optimizedpran1247
@optimizedpran1247 4 жыл бұрын
This man is elite.
@schulle36
@schulle36 4 жыл бұрын
Is this working for Q1? : int ans = 0; while (numBottles >= numExchange) { ans += numExchange; numBottles -= numExchange - 1; } return ans + numBottles;
@insideentrepreneur7904
@insideentrepreneur7904 4 жыл бұрын
leetcode you just spoiled my sunday
@akhil3588
@akhil3588 4 жыл бұрын
Mine 2 I submitted 2nd 1min late
@nithishkumarsaravanan4251
@nithishkumarsaravanan4251 4 жыл бұрын
😂😂i was solving everything within 10 mins...later i came to kno i woke up at only 9:30 lol...
@amaanahmad7366
@amaanahmad7366 4 жыл бұрын
Which keyboard are you using bro.
@fahrisetiawan5763
@fahrisetiawan5763 4 жыл бұрын
How much prize u got from winning this contest?
@romitchoudhary8348
@romitchoudhary8348 4 жыл бұрын
which IDE you currently use??
@Ajay-ju2ig
@Ajay-ju2ig 4 жыл бұрын
Terminal
@RikardoAHP
@RikardoAHP 4 жыл бұрын
By the noise it seems he is writing a lot but only 3 letters appear in the screen
@ashwinjayaprakash7991
@ashwinjayaprakash7991 4 жыл бұрын
The keyboard is asmr x1000
@ArunKumar-sg6jf
@ArunKumar-sg6jf 4 жыл бұрын
where u learn coding give any idea or any resource
@adamsykes3792
@adamsykes3792 4 жыл бұрын
why is their cello msuic in the backround
@AkshayKumar-vv5dx
@AkshayKumar-vv5dx 4 жыл бұрын
Advanced Algorithms Playlist stfly.me/5yEKy0 (not fake just pass out the ads)
@sumedhvangara7368
@sumedhvangara7368 4 жыл бұрын
hey william is clrs good for cp?
@nursultannazarov8379
@nursultannazarov8379 8 ай бұрын
yes
@Leo_pubg101
@Leo_pubg101 4 жыл бұрын
Briliant!
@thelearner3962
@thelearner3962 15 күн бұрын
Does anyone know what google theme he is using?
@leonmozambique533
@leonmozambique533 4 жыл бұрын
he’s cracked af
@prashantthakur7589
@prashantthakur7589 3 жыл бұрын
1 minute in his world is equivalent to 1 year in mine.
@nursultannazarov8379
@nursultannazarov8379 8 ай бұрын
are you that bad?
@j.franciscox3318
@j.franciscox3318 4 жыл бұрын
Could you share your vimrc?
@mukulbarai1441
@mukulbarai1441 4 жыл бұрын
So, Sifi movies aren't lying.
@ugyensherpa6032
@ugyensherpa6032 4 жыл бұрын
and i have no idea whats going on again
@ANANDKUMAR-jk9yp
@ANANDKUMAR-jk9yp 4 жыл бұрын
Amazing guy!
@arsive02
@arsive02 4 жыл бұрын
This guy is like the player in a battle royal who plays so good that we call him hacker.
@nursultannazarov8379
@nursultannazarov8379 8 ай бұрын
git gud
@exmachina3840
@exmachina3840 3 жыл бұрын
Humans are amazing! Imagine an animal trying to solve this 😂
@t_tek760
@t_tek760 2 жыл бұрын
😂
@psMens
@psMens Жыл бұрын
C + v
@leun6768
@leun6768 2 жыл бұрын
I can't even understand the damn problem
@proudnepali9297
@proudnepali9297 4 жыл бұрын
I am learning c++ how much it take me to be advance programmer
@nursultannazarov8379
@nursultannazarov8379 8 ай бұрын
10 - 20 years
@nursultannazarov8379
@nursultannazarov8379 8 ай бұрын
Don't understand shiet but imagine myself doing it.
@mohammedalrubae7850
@mohammedalrubae7850 4 жыл бұрын
Excellent
@viru2njoy
@viru2njoy 4 жыл бұрын
Who are you Superman 👏
@roshan84ya99
@roshan84ya99 4 жыл бұрын
I used trie for 3rd got tle for sixteen cases 😅
@mihu2cool
@mihu2cool 4 жыл бұрын
Where is LeetCode Weekly Contest 199?
@raaar1204
@raaar1204 4 жыл бұрын
goat
@kishorprasad3817
@kishorprasad3817 4 жыл бұрын
Brother todays Biweekly contest ?
@VigneshDhakshinamoorthy
@VigneshDhakshinamoorthy 3 жыл бұрын
@0:52 Runs the code, switches to next tab. Does not even want to waste 2 seconds to see the answer.
@ankitkumar-ev8wq
@ankitkumar-ev8wq 4 жыл бұрын
Problems were good this time :)
@Jeff-df9ct
@Jeff-df9ct 4 жыл бұрын
ELITE
@rafiqarsyad9348
@rafiqarsyad9348 4 жыл бұрын
this guy needs to banned from all contest, too op
@sireye_0
@sireye_0 4 жыл бұрын
Overpowered main character 😭😭
@apache6038
@apache6038 4 жыл бұрын
looks like overlord.
@brandonnguyen160
@brandonnguyen160 4 жыл бұрын
God hasn’t come out with the new patch notes yet so it might be a while. Balance changes are unlikely though.
@rubbertooth8170
@rubbertooth8170 4 жыл бұрын
This guys is only a high school student, wait till he gets his PHD in 2 years
@icet854
@icet854 4 жыл бұрын
he type winning before it starts.....😂😂😂😂
@r.klaxman2026
@r.klaxman2026 4 жыл бұрын
Can anyone explain me question 3..??
@udaysingh7748
@udaysingh7748 4 жыл бұрын
William what is your age??
@balamukundam
@balamukundam 4 жыл бұрын
why did he subtract lc in ans[node] = c[l[node]-'a]-lc; plz clear doubt
@balamukundam
@balamukundam 4 жыл бұрын
@Williamlin plz help
@anon8857
@anon8857 4 жыл бұрын
@@balamukundam lc is the frequency accumulated before diving into the subtree. So, we subtract lc to get frequency only belonging to the subtree.
@quincy3367
@quincy3367 3 жыл бұрын
Wowza
@albertye527
@albertye527 4 жыл бұрын
tmw you should show your silver play button
@martinsdicis4000
@martinsdicis4000 4 жыл бұрын
Wow, even you kind of struggled with the first problem while getting the conditions right!
@balamukundam
@balamukundam 4 жыл бұрын
why did he subtract lc in ans[node] = c[l[node]-'a]-lc; plz clear doubt
@ozsingkit4206
@ozsingkit4206 4 жыл бұрын
How to get like you man I'm asian too :)
@farzankh
@farzankh 4 жыл бұрын
Did you even read the first question?!!! It took me 20 min to figure out what it's asking for lol
@consistentthoughts826
@consistentthoughts826 4 жыл бұрын
Only 2 problems solved in 30min remaining i watched a movie I know I can't😛
@ashutoshaswal
@ashutoshaswal 4 жыл бұрын
I was just able to solve 2 problem
@cogitoergosum7945
@cogitoergosum7945 4 жыл бұрын
Is it real that he reads the problem in less than 10 seconds?
@willacopta7551
@willacopta7551 4 жыл бұрын
how old is this dude?
@kazitazweed8405
@kazitazweed8405 4 жыл бұрын
Totally understood every bit of code he wrote 😐😔
@harshraj-vt7dd
@harshraj-vt7dd 4 жыл бұрын
Bro why did he insert ns.insert(a&arr[I]) in 4th ques
@binu44464
@binu44464 4 жыл бұрын
Nee enna level aahdaa
@leonmozambique533
@leonmozambique533 4 жыл бұрын
Why doesn’t he use dark mode
@AnshumanKumar007
@AnshumanKumar007 4 жыл бұрын
I swear.
@nursultannazarov8379
@nursultannazarov8379 8 ай бұрын
don't swear@@AnshumanKumar007
@epicosenpai8418
@epicosenpai8418 4 жыл бұрын
dude how tall ur
@nursultannazarov8379
@nursultannazarov8379 8 ай бұрын
He is way above your league. He is God tier. You can't be his girlfriend.
@taresy6789pp
@taresy6789pp 4 жыл бұрын
Python is solid and hard syntax operation else if omg
LeetCode Biweekly Contest 30 (2nd)
12:50
William Lin
Рет қаралды 53 М.
Winning LeetCode Weekly Contest 201
12:07
William Lin
Рет қаралды 129 М.
哈莉奎因以为小丑不爱她了#joker #cosplay #Harriet Quinn
00:22
佐助与鸣人
Рет қаралды 10 МЛН
ПРОВЕРИЛ АРБУЗЫ #shorts
00:34
Паша Осадчий
Рет қаралды 7 МЛН
لااا! هذه البرتقالة مزعجة جدًا #قصير
00:15
One More Arabic
Рет қаралды 37 МЛН
Little brothers couldn't stay calm when they noticed a bin lorry #shorts
00:32
Fabiosa Best Lifehacks
Рет қаралды 8 МЛН
How I would learn Leetcode if I could start over
18:03
NeetCodeIO
Рет қаралды 411 М.
Winning Google Kickstart Round B 2022
41:48
William Lin
Рет қаралды 564 М.
30-Day LeetCoding Challenge Speedrun (1:00:38.53)
1:07:26
William Lin
Рет қаралды 114 М.
I Solved 1583 Leetcode Questions  Here's What I Learned
20:37
ThePrimeTime
Рет қаралды 601 М.
Winning Google Kickstart Round A 2020 + Facecam
17:10
William Lin
Рет қаралды 9 МЛН
LeetCode: The Worst Thing to Happen to Software Engineering
8:03
Coding with Dee
Рет қаралды 111 М.
Medium Google Coding Interview With Ben Awad
51:27
Clément Mihailescu
Рет қаралды 1,2 МЛН
My Brain after 569 Leetcode Problems
7:50
NeetCode
Рет қаралды 2,5 МЛН
How I Approach a New Leetcode Problem (live problem solving)
25:31
Кс втроем 2 ( CS 2 )
15:45
JOHAN
Рет қаралды 822 М.