SharanyaRMannan's blog

By SharanyaRMannan, history, 13 months ago, In English

hi i was just going thru the editorial of the contest, and was wondering the functionality of this LOOP:

for(int i = 29;i >= 1;i--) { if((n >> i) & 1) { f = 1; v.push_back(2); } else if(f) { v.push_back(1); } }

in ques 2 of the contest..

can anyone help me with this..?

Full text and comments »

  • Vote: I like it
  • 0
  • Vote: I do not like it

By SharanyaRMannan, history, 13 months ago, In English

Hi, I recently started with my CP journey and have been practicing Ques from A2oj Ladders. I have done most of the Dsa except some concepts of DP, Graphs and Greedy.

But still find it difficult to solve ques during contests.

Is there any roadmap that i can follow to ease my journey or topics that i must do to solve Problems A and B of Contests.

Your help will be appreciated.

Thanks

Full text and comments »

  • Vote: I like it
  • +1
  • Vote: I do not like it