Winning AtCoder Beginner Contest 158 + Explanations

  Рет қаралды 23,187

William Lin (tmwilliamlin168)

William Lin (tmwilliamlin168)

Күн бұрын

Пікірлер: 67
@saikat93ify
@saikat93ify 4 жыл бұрын
I love how you enter contests with a realistic chance of winning them !
@so7am96
@so7am96 4 жыл бұрын
I love how you used the stack at problem F! what a nice approach! Kudos :))
@parvgour5284
@parvgour5284 4 жыл бұрын
love your way and approach of solving the problems.,..
@shreekrishna6144
@shreekrishna6144 4 жыл бұрын
I think you should collaborate with Errichto.By the way,great content.
@naimhasanpappu3901
@naimhasanpappu3901 4 жыл бұрын
Editorials should be made just like you explained with drawing.
@Neroldy
@Neroldy 4 жыл бұрын
very useful explanation of E
@CalebKious
@CalebKious 4 жыл бұрын
I’m currently studying C#, how well does the language hold up in competitions as opposed to C++?
@yacinmessaoud186
@yacinmessaoud186 4 жыл бұрын
I love these beginner problems ! they make me feel like a CP lol
@izytro7971
@izytro7971 4 жыл бұрын
what's the font that you use in vim?
@bharathateja2797
@bharathateja2797 4 жыл бұрын
I love your explanations thanks
@abhiraj9990
@abhiraj9990 4 жыл бұрын
For F you said dp[n]=1 because suffix of n has no robots but for suffix n there are two options if operation is done No robot left but in case no operation(possibly zero Said in problem) There will a robot alive. Correct me if i am wrong
@tmwilliamlin168
@tmwilliamlin168 4 жыл бұрын
Suffix n is basically the empty suffix, so there is only one choice for the set of robots, which is the empty set.
@parvgour5284
@parvgour5284 4 жыл бұрын
@William Lin hey, how many years of coding experience you have...?
@saliherk4n
@saliherk4n 3 жыл бұрын
2017
@jumbochill
@jumbochill 4 жыл бұрын
How did you configure gvim? It would be helpful if you could make one video on this programming environment setup.
@tmwilliamlin168
@tmwilliamlin168 4 жыл бұрын
There aren't many settings for vim. codeforces.com/blog/entry/51726 can help Here's my vimrc: pastebin.com/qMvFYGqb
@Learner010
@Learner010 4 жыл бұрын
nice explanation ..just one query how you get through problem statement under 10~20 sec :)
@tmwilliamlin168
@tmwilliamlin168 4 жыл бұрын
I have read a lot of statements already through practice. (Also because I read English a lot?)
@Learner010
@Learner010 4 жыл бұрын
@@tmwilliamlin168 look every good coders secret is lots of practice..but is there any path to follow because i'm just stuck to 4-5 problem in codechef and in this atcoder contest i solved only 3
@tmwilliamlin168
@tmwilliamlin168 4 жыл бұрын
I don't follow any path.
@mahmudhasan4654
@mahmudhasan4654 4 жыл бұрын
love you bro
@Christopher0110
@Christopher0110 4 жыл бұрын
I know im a few months late but still got a question: at c, how/why did you choose 10^4, was there a specific reason for that?
@meowmaple
@meowmaple 2 жыл бұрын
The solution can be gotten by brute forcing, and by checking the max size of the inputs, he is able to know the upper bound of the inputs and deduced that 10e4 iterations are enough to find the solution
@kushsingla4509
@kushsingla4509 4 жыл бұрын
Which language is good for competitions, I know c and just learned python, is c++(which you are using) better and what about java
@kushsingla4509
@kushsingla4509 4 жыл бұрын
I just started coding on competitive site codechef, any suggestions on other sites?
@tmwilliamlin168
@tmwilliamlin168 4 жыл бұрын
People generally use C++ over Python and Java because of speed and C++ over C because of STL.
@tmwilliamlin168
@tmwilliamlin168 4 жыл бұрын
HackerRank and Codeforces are worth looking at as well.
@kushsingla4509
@kushsingla4509 4 жыл бұрын
Thanks man, hopefully I will get better with practice, could only solve 2 problems on my codechef's first contest and then gave up due to tle errors😔
@parvgour5284
@parvgour5284 4 жыл бұрын
@@tmwilliamlin168 HackerEarth is better than that...
@smartprogrammer2012
@smartprogrammer2012 4 жыл бұрын
How do you setup vim for c++? I can’t find a good tutorial
@sharathnair1702
@sharathnair1702 4 жыл бұрын
Explanation to E was amazing
@codeWithBatta
@codeWithBatta 4 жыл бұрын
Nice one bro
@prashantrana6249
@prashantrana6249 4 жыл бұрын
if problem c had large constraints how could we apply binary search on it?
@tmwilliamlin168
@tmwilliamlin168 4 жыл бұрын
We just need to find the smallest x such that floor(0.08x)>=a and floor(0.1x)>=b. Then, we check whether the value of x actually gives a and b.
@abhishekdhok5245
@abhishekdhok5245 3 жыл бұрын
CP God
@lodhi_abhishek
@lodhi_abhishek 4 жыл бұрын
What your vim setup?
@codeWithBatta
@codeWithBatta 4 жыл бұрын
can you explain the use of {} vs () brackets
@tmwilliamlin168
@tmwilliamlin168 4 жыл бұрын
Where
@codeWithBatta
@codeWithBatta 4 жыл бұрын
@@tmwilliamlin168 in F while pushing and in declaration of vector if I use one type of brackets instead of another it gives error. So I thought there might be some rule of using them.
@tmwilliamlin168
@tmwilliamlin168 4 жыл бұрын
@@codeWithBatta I use {} to create vectors and arrays
@sherlock2853
@sherlock2853 4 жыл бұрын
Can You make a video on how to write code fast .give some shortcut tips
@tmwilliamlin168
@tmwilliamlin168 4 жыл бұрын
A lot of it is practice. This is my 10th year writing code.
@sherlock2853
@sherlock2853 4 жыл бұрын
@@tmwilliamlin168 yeah we should practice but don't you think if we don't know shortcuts mai be we will remain at the same speed we will be using same things which are slow. Or is it something that comes automatically by practice??
@tmwilliamlin168
@tmwilliamlin168 4 жыл бұрын
@@sherlock2853 I learned shortcuts by searching up vim shortcuts on Google
@sherlock2853
@sherlock2853 4 жыл бұрын
@@tmwilliamlin168 thanks i will do the same. Can u help me understand why you used 4*n +4 in memset i saw your already replied on someone's comment regarding this but i am still not able to understand.And thanks a lot you are really helping people like me.
@tmwilliamlin168
@tmwilliamlin168 4 жыл бұрын
@@sherlock2853 have you read the documentation of memset?
@arjuntomar215
@arjuntomar215 4 жыл бұрын
Hello sir , why don't you post videos of problem solving like the errichto, it will be a great learning along with these contest videos
@tmwilliamlin168
@tmwilliamlin168 4 жыл бұрын
Is there something different about problem solving videos than contest videos? Because I am also solving problems in contests.
@arjuntomar215
@arjuntomar215 4 жыл бұрын
@@tmwilliamlin168 srry my comment was bit confusing, these contest videos are awesome, but doing topic/domain(Graphs, maths, DP etc) specific problems solving will be great too, with that interested peoples could find playlist of those topic videos(if you bunch them in playlist), also if you are solving problems in random contest then also dividing problems in playlist will be awesome if possible technically :-)
@deveshvarma8531
@deveshvarma8531 4 жыл бұрын
I could only solve 4 :(
@tmwilliamlin168
@tmwilliamlin168 4 жыл бұрын
That was me 3 years ago!
@deveshvarma8531
@deveshvarma8531 4 жыл бұрын
Wow. Let's see where will I be after 3 years😅
@letsgotousa679
@letsgotousa679 2 жыл бұрын
Where are you now brother?
@deveshvarma8531
@deveshvarma8531 2 жыл бұрын
@@letsgotousa679 same place LOL. Thanks for reminding ☠️
@deveshvarma8531
@deveshvarma8531 2 жыл бұрын
@@letsgotousa679in my defense only 2 years passed tho. i will get back to you next year :)
@Pavanthetechboy
@Pavanthetechboy 4 жыл бұрын
Bro u know that u are a pro Don't compete in beginner contests It will affect noovs like me
@KrishnaList
@KrishnaList 4 жыл бұрын
Could you please explain problem then code explaination..your coding speed so fast.
@tmwilliamlin168
@tmwilliamlin168 4 жыл бұрын
What do you mean?
@KrishnaList
@KrishnaList 4 жыл бұрын
@@tmwilliamlin168 i mean plz explain contest problem as well i am beginner
@tmwilliamlin168
@tmwilliamlin168 4 жыл бұрын
@@KrishnaList explaining the problems statement is not the focus, and it's not hard to learn if you do some practice.
@KrishnaList
@KrishnaList 4 жыл бұрын
@@tmwilliamlin168 ok thanks WL
@shubhamk840
@shubhamk840 4 жыл бұрын
Invite errichto
@qleo2563
@qleo2563 4 жыл бұрын
I just solve 4 problems,
Codeforces Round #627 (Div. 3) Explanations
18:51
William Lin (tmwilliamlin168)
Рет қаралды 7 М.
Winning LeetCode Weekly Contest 182 + Explanations
33:38
William Lin (tmwilliamlin168)
Рет қаралды 56 М.
Это было очень близко...
00:10
Аришнев
Рет қаралды 6 МЛН
Un coup venu de l’espace 😂😂😂
00:19
Nicocapone
Рет қаралды 13 МЛН
黑的奸计得逞 #古风
00:24
Black and white double fury
Рет қаралды 26 МЛН
龟兔赛跑:好可爱的小乌龟#short #angel #clown
01:00
Super Beauty team
Рет қаралды 69 МЛН
Winning Google Kickstart Round A 2020 + Facecam
17:10
William Lin (tmwilliamlin168)
Рет қаралды 9 МЛН
Codeforces Round #629 (Div. 3) (20th)
54:20
William Lin (tmwilliamlin168)
Рет қаралды 19 М.
Being Competent With Coding Is More Fun
11:13
TheVimeagen
Рет қаралды 98 М.
Fast Inverse Square Root - A Quake III Algorithm
20:08
Nemean
Рет қаралды 5 МЛН
Winning LeetCode Weekly Contest 201
12:07
William Lin (tmwilliamlin168)
Рет қаралды 131 М.
This Is Why Python Data Classes Are Awesome
22:19
ArjanCodes
Рет қаралды 811 М.
7 Years of Software Engineering Advice in 18 Minutes
18:32
Это было очень близко...
00:10
Аришнев
Рет қаралды 6 МЛН