@@ChiragWadwa Ok I understand that part ... But I want to say that I am not checking that either (2 , n -2) is > .. then also mine code is working And also that it is not necessary that we should reach 2 , n by after second step only ... That is if we reach 2 , n by after first step only then also and must be yes.. It is like robot just want to touch that position of 2 , n
@sangamverma20428 ай бұрын
C. ques [ > > < ][ > < < ] robot move (1,1) -> (1,2) -> (1,3) -> (2,3) finally reached but at (2,2) is '
@AbhinavAwasthi8 ай бұрын
How you are taking only 3 steps, there should be even steps, own step+cell step always taken as group, so after reaching 2,3 it will take own step and each 2,2
@_u_ya-dw6vx8 ай бұрын
@@AbhinavAwasthi sir, i am having the same doubt for the case: [ > < < ] [ > < < ] , this will output NO if I run your code, but it should be yes as we already reached the final state even though the cell step is not taken.. could you please clarify?
@Beingamanforever8 ай бұрын
in that robot question it might also happen that ki, the robot is present above (2,n) and then it takes its own step to go down and reach the final cell, how did we conclude that the last step would be by cell>?
@AbhinavAwasthi8 ай бұрын
If he will take own step to go down, he have to also take cell step, he can't skip, that will make him again on the left of destination
@Beingamanforever8 ай бұрын
@@AbhinavAwasthi understood sir, thank you, also sir can we ask doubts in the telegram channel?
@Nishkarsh-gc5yr8 ай бұрын
for C, can't we just do this, so we first check the initial 0 and n-1 index conditions, keep a variable cnt=0, and then iterate from the 1st and 2nd column and further like this pairwise, (1,2 -> 3,4 -> ... x,x+1 .. -> n-2, n-1), , and check if the odd index of first row is
@AbhinavAwasthi8 ай бұрын
Have you tried this approach?
@AbjSir8 ай бұрын
I was able to do A,B,C in 58mins. Thanks sir
@AbhinavAwasthi8 ай бұрын
Welcome
@shreyanshsinghal8008 ай бұрын
very good approach in the c ques
@AbhinavAwasthi8 ай бұрын
Thanks
@priyanshuhbtu8 ай бұрын
Nice Explanation ..I was only able to solve A,B 🥲
@AbhinavAwasthi8 ай бұрын
Thanks, keep trying 🙌🏻
@gourabsarkar17068 ай бұрын
thank you for Your Editorials ❤❤ and can you share how to make template like yours
@AbhinavAwasthi8 ай бұрын
Thanks, sure will make
@jagan57858 ай бұрын
in problem c, robot could have reached 0,n-1 by arrow(>) of 0,n-2 and from 0,n-1 it may reach to 1,n-1 by it's own step(move 1) isn't this a possibility
@AbhinavAwasthi8 ай бұрын
After own step he must take cell step also
@jagan57858 ай бұрын
we have to reach 1,n-1 after 2 given steps ? @@AbhinavAwasthi
@AbjSir8 ай бұрын
sir you can use x=1-x; instead of x=(x+1)%2; I always use x=1-x; it's easier to write
@AbhinavAwasthi8 ай бұрын
Yes, great
@rajonhassan83438 ай бұрын
great brother
@preetu3918 ай бұрын
great editorials 🙌
@AbhinavAwasthi8 ай бұрын
Thanks
@treasurehunter4498 ай бұрын
Great explanation for d problem
@AbhinavAwasthi8 ай бұрын
Thanks
@nikhilsihare18878 ай бұрын
i get the idea of D but not C 😢😢😢😢😢😢😢😢😢😢😢😢😢😢
@AbhinavAwasthi8 ай бұрын
Keep trying 🙌🏻
@kashishchawla27548 ай бұрын
gr8
@AbhinavAwasthi8 ай бұрын
Thanks
@pialhasan45508 ай бұрын
sir give proper roadmap ... i am solve olny a pial5566 this in my codeforce id
@AbhinavAwasthi8 ай бұрын
Sure, share will review when free
@RajGupta-cu9hi8 ай бұрын
Devin
@AbhinavAwasthi8 ай бұрын
Ha haa
@relaxingnaturalvibrations11716 ай бұрын
I don't know why this brute force solution works in problem D. // !! om namah bhagwate vasudevay !! #include using namespace std; int main(){ int t; cin>>t; while(t--){ string s;cin>>s; int n=s.length(); int n1=n; if(n%2==1){ n1=n-1; } int ans=0; for(int i=2;i
@santoshvocals47818 ай бұрын
Mee seeing the video without solving even one question🥹
@AbhinavAwasthi8 ай бұрын
Keep trying
@santoshvocals47818 ай бұрын
@@AbhinavAwasthi sure following ur videos I am a newbie will start
@Cpp_For_Life7 ай бұрын
@@santoshvocals4781what's ur contest rating brother?