That problem D solution was the single biggest brain thing that I've ever seen, I'm quite literally shaking, both from awe and anger that my answer was so unnecessarily complicated
@dhananjaysonawane19964 жыл бұрын
If such a video comes after each codeforces round, I am going to click on a bell icon! As usual, a great explanation!! Thanks buddy :):)
@mohamedelkaramany98634 жыл бұрын
For D I considered the following (i,j) (0,0) (1,3) (2,6) (3,1) (4,4) (5,7) (6,2) (7,5) (8,8) then if (sudoko[i][j]==1)sudoko[i][j] = 2; else sudoko[i][j] = 1; and printed the sudoko array
@casimirronnlof73964 жыл бұрын
Bruh my solution on D was so much more complex than yours, to think that I could have done it by only changing e.g. the 2's to 1 ARGH it hurts my brain that I didn't think of that. Luckily I still got it right. Awesome video anyways, keep making them!
@atanusaha1434 жыл бұрын
For problem D: A single change in a row will satisfy all the 3 conditions. A single change means picking a value and changing it with between 1 to 9 except the picked value.
@shivaramprasadmeesa71894 жыл бұрын
In Problem E as you are keeping nested for loop which has 40000 iterarions and t is till 10^4 so overall it is 4* 10^8 which should give TLE
@TheNayanava4 жыл бұрын
Thank you so much brother for putting up this content! Please keep doing it!! You know me from Discord btw.. :P :P. Thanks a lot for this!!!
@shivaraj-bh4 жыл бұрын
A little bit more advanced version of first problem can be framed as ,given n candies, distribute them among k students such that a1>a2>...>ak and n=a1+a2+a3... ak. This came through my mind because, initially I didn't see the fact that there are only 2 sisters. So I thought combinations with repetions can be used here, because you have n candies and you have some poles (sisters) that will separate those candies between sisters, number of ways to do that will (n+k-1) choose (k-1) where n is the candies and k is the number of students (here two sisters). Because of the fact it is 2, the equation becomes, (n) choose (1) which is n. But to handle the fact that a>b, we have to give the first half initially to a and distribute the rest. So a always gets n/2+1 candies and remaining is distributed. So after that I realized this can be extended to more interesting version, as stated above and could be B or C problem in div3
@prateeksinghal6304 жыл бұрын
Thanks for returning to the normal routine ♥️♥️
@samprasdsouza69934 жыл бұрын
Approach for anti- suduko is legendary
@HarmoniusE4 жыл бұрын
I mean I spend 1.5 hours to understand 2 and got an error, but u solved it in one sec XD
@parvgour52844 жыл бұрын
this is because we have the experience of only 10 months to 1 year and he has an experience of more than 5 years...
@93hothead4 жыл бұрын
He probably didnt solve in 1 sec depending on the score he got in competition
@Amrable4 жыл бұрын
Simple approaches, love this !
@kabboghosh18534 жыл бұрын
i m just fan of u,editorial all we need
@FPLogistic4 жыл бұрын
Instead of doing (n-1)/2, I was doing (n/2)-1... It wasn't working for so long until I did some random stuff and made it work out somehow
@ehrazakhtar83364 жыл бұрын
The Explanations are quite great but really missing the face cam during the actual submission during contests.
@vladandenda94624 жыл бұрын
William can you do video about your vim setup ?
@subhambanerjee63344 жыл бұрын
I solved the frst 3 problem but not able to solve last 4 thanks it helped a lot be sure to make after all contests
@saifu074 жыл бұрын
Ohh man, Dth one is simplest but I failed to think this and got WA, I am dying now
@NotFound-hy7qb4 жыл бұрын
Great Work You just make solutions look so easy👍
@surajpatel-bk1ip4 жыл бұрын
I just love your codeforces editorials. for problem c : can we directly do this : say x = max. freq of an element in array y = unique elements in array - 1 (remove this guy x ) if( x == y) result -> x if( y > x ) result -> x if( x > y) result is min(x - 1, y + 1) ??
@cripz42034 жыл бұрын
I did the same thing
@jonty35514 жыл бұрын
I was about to comment the same thing.....yea...i think its fine too as far as i can see
@jonty35514 жыл бұрын
I think we can go like this too: If x == y, cout x -1 If y > x+1 cout x +1 Else cout min of x, y
@surajpatel-bk1ip4 жыл бұрын
yeah man, same thing, i guess its just my y is 1 less than yours so those three conditions simulates same as two of yours
@jonty35514 жыл бұрын
@@surajpatel-bk1ip oo....i got accepted after submitting btw.....👍
@dhivagarm64974 жыл бұрын
Simple and clear explanation thanks :)
@manjunathvasam49814 жыл бұрын
That helped a lot, thanks!
@MenelaosKotsollaris344 жыл бұрын
Thank you for the video William! What hardware & sofware are you using for your drawings?
@Shun88814 жыл бұрын
thank you so much for this!
@christianoronaldo16624 жыл бұрын
i liked your effort
@shuxianlai36374 жыл бұрын
Hi there thanks a lot for your wellmade vid. I am a newbie in cp and this div3 was my first comp and i dont have anyone to discuss my code about and i couldnt check what went wrong with my logic for the contests because they dont show the test cases output. I was thinking if you have any suggestions for my situation, like is there any forum out there for peer reviewing and casual discussion?
@shuxianlai36374 жыл бұрын
Lmao the seen
@alexwexov42983 жыл бұрын
Liked that you use vim.
@camper86504 жыл бұрын
hey , in problem E2 will the O(n*(max(array)) will work ? and what's your time complexity ?
@eternalgreed67154 жыл бұрын
Can you make video how to set up compiler , gvim and etc for competitive programming, please? I think it will useful not only for me. Thanks!
@rkhamim45744 жыл бұрын
Nice editorial
@yurashymon4 жыл бұрын
I want to see how you write cf and after explanations/ make next time "cf winning" it is very interesting to see how somebody write cf
@Satyam22jul4 жыл бұрын
Thanks brother please also upload the div 3 that will going to happen on 21th april😍😍😍😘😘😘
@Satyam22jul4 жыл бұрын
We only want explanation by you how you attempted that question🙏🏻😅😅
@hackerhaddi4 жыл бұрын
Please consider adding timestamps for problems.
@adarshtadwai52934 жыл бұрын
I got TLE for E2, if I didn't write - if(occ[a].size() == 1) continue; So is this the efficient solution or are testcases week?? I am unable to write anything on your discord so I wrote here.
@rhac794 жыл бұрын
Thank you very much
@lucygaming97264 жыл бұрын
Whats the name of the drawing board software?
@ritikagupta88474 жыл бұрын
If in dfs1 first two nodes are in the cycle then dfs1 will not set visited1 other nodes connected to this component and when they will be again in dfs1 it will be considered as a cycle which is wrong. Am I wrong somewhere? Please correct me if so
@pqazx14 жыл бұрын
Plz give soln of education round 85 as well of codeforces
@felipealferez44614 жыл бұрын
in problem D a valid answer could be to change only the main diagonal by '1' and if there is already a '1' in that position, then a '2' would be placed, right? Since we changed at least 9 numbers and changing the diagonal would make the entire sudoku change and be wrong. I tried to do it that way but I got WA in the first test. Why do I get a WA if I am already fulfilling the conditions?
@markcagas16224 жыл бұрын
You also have to check each 3x3 block
@varunrajesh17154 жыл бұрын
You need to change a number in each box too
@pradiptarakshit77514 жыл бұрын
Diagonals doesn't cover all 3×3 sub matrices
@kurtis50734 жыл бұрын
剛考完就有解釋可以看😂
@Rotengon334 жыл бұрын
Can you do your environment setup?
@showmickkar77934 жыл бұрын
Hello. I am a very beginner. I could only solve 2 problems in contest time. And in almost every contest I can solve 1 or 2 problems. What approach should I take to improve from there?
@younlok10814 жыл бұрын
practice makes perfect
@rishabhjain20844 жыл бұрын
if you can solve A&B practice D. If you can solve A, B, C practice E.
@souravprasaddas59094 жыл бұрын
Please make on codeforces rating system
@sandipanhaldar614 жыл бұрын
why is it necessary to push n at the end of each occ vector in E?
@johnstonliu4 жыл бұрын
What gvim theme are you using?
@dutchboybmx4 жыл бұрын
Sick
@teji77234 жыл бұрын
What IDE do you use?
@deveshjha51414 жыл бұрын
Which digital pen do you use in onenote
@vaibhavsingh41084 жыл бұрын
which editor do you use..
@ankitjoshi60664 жыл бұрын
if(c[u[0]][u[1]]&1^1) ++a[d%cyc.size()]; how this worked in problem F c[u[0]][u[1]] this will give char value shouldn't it should be converted to int
@apoorvamittal41124 жыл бұрын
why did you reverse the edges?
@adityamishra44584 жыл бұрын
dude u did not doo codechef long challenge ..
@Satyam22jul4 жыл бұрын
Bro you have some problem in clarifying qs c
@ritikagupta88474 жыл бұрын
Can you provide link to your code??
@sickman5774 жыл бұрын
please let me know the name of the font
@93hothead4 жыл бұрын
Is this in cpp?
@rkhamim45744 жыл бұрын
Can i have this code
@mahinhossen61004 жыл бұрын
My 2hr is equal to ur 8min
@xcg12344 жыл бұрын
牛逼!
@armanyamaheshwari99674 жыл бұрын
First
@II_xD_II4 жыл бұрын
NO one cares -___-
@younlok10814 жыл бұрын
@@II_xD_II +111111
@parvgour52844 жыл бұрын
who got the first rank...?
@II_xD_II4 жыл бұрын
@@parvgour5284 wdum?
@parvgour52844 жыл бұрын
@@II_xD_II i am only asking that who ranked one in the contest...
@vickySekaran4 жыл бұрын
do you stick your mic inside your mouth whats that wierd sounds you make?