So, basically B is based on Moore voting algorithm for finding better candidate??
@AbhishekKumar-vo9yu3 жыл бұрын
It is one of the approach.
@apoorvmehra1213 жыл бұрын
I was not able to implement 2nd question 😔
@shivamthapliyal95543 жыл бұрын
Legend is back
@emurarryreddy4763 жыл бұрын
Wow thank you for these editorials they are creating cp culture....
@vaibhavgupta74293 жыл бұрын
wow ternary bitmask, learnt something new today
@venkateshmishra35143 жыл бұрын
Can someone explain me that implementation of problem D? I mean ternary bitmask part.
@Muhammad_Kabil3 жыл бұрын
Thanks a lot bro.
@govindtomar62843 жыл бұрын
Please make editorials of atcoder contests, you're giving contests over there, so, please make editorials for those contests also.
@sasmitshubham94243 жыл бұрын
i was able to solve only one, again newbie.
@ritikmehra5003 жыл бұрын
Same lol
@deepansharya11113 жыл бұрын
Did you solve it like he did using the rep() function from STL? If not then will you please paste your code here, I want to see how it can be solved without STL functions
@kushagra44013 жыл бұрын
@@deepansharya1111 int main(){ ios_base::sync_with_stdio(false); cin.tie(NULL); int T,i,n; cin>>T; while(T--){ string s,k; cin>>n>>s; k = s; sort(k.begin(),k.end()); int ans=0; for(i=0 ; i
@kushagra44013 жыл бұрын
@@deepansharya1111 rep is not a stl function ,its just for loop,he just created a macro for for loop so that he have to type less and save time its like this: #define rep(i,a,b) for(int i=a;i
@deepansharya11113 жыл бұрын
@@kushagra4401 OMG thank you so much i am able to understand it now :)
@TechieIndia3 жыл бұрын
From where we can learn ternary bitmask as you have used it in D.
@Munnu-hs6rk Жыл бұрын
can we use powerset n*(2^n) algo for finding cycle like if bit is1 go with + and if bit is 0 go with - and if sum comes to be 0 then theres cycle
@hoangnam18703 жыл бұрын
Can you explain more in problem D why if there exists a cycle, the answer will be "YES"? I still miss it and have no idea to explain it
@5590priyank3 жыл бұрын
thanks for this editorial. Just a small suggestion, lot of us want to jump to editorial as soon as contest ends, so would it be possible to start a live session on yt or twitch so that we don't have to wait for video to be recorded and all? Thanks :)
@utkarshgupta98583 жыл бұрын
yeah ik, but i had to have dinner also
@b82tushar223 жыл бұрын
@@utkarshgupta9858 So, Honest Answer :)
@ani683 жыл бұрын
How was you experience at Uber internship......😃😃😃😃😃
@abhishekdutt36013 жыл бұрын
I ueed a hash map to store the sum of scores and sort them for question B. What was your approach?
@SuperTushar143 жыл бұрын
What was scores? Do you mean rank?
@victorreznov66783 жыл бұрын
How tho? What if there are two players whose ranking are- 2 2 2 1 9 2 1 1 1 7 8 9 In this test case I think your logic will fail
@suryatype3 жыл бұрын
I got the same idea for D que but i dont know how to implement graphs :(
@gaurang_bansal3 жыл бұрын
What all apps you are having on task bar , specially last 2 ones?
@prajwalingole15843 жыл бұрын
PPO mila? 😳
@pritamkumar55102 жыл бұрын
bhaiya, I have tried to join your discord channel, but not able to join, it shows failled link, can you please reshare the link if possible, thanks
@ganapatibiswas58582 жыл бұрын
Problem B was good.
@itz_me_imraan023 жыл бұрын
Why don't you start some DSA courses too in this channel..it will be helpful for all.. 💜💓
@kushagragarg7793 жыл бұрын
bhaiya, I think there is some buzz going on while you speak. Thanks for the video editorial btw.