Блог пользователя SharanyaRMannan

Автор SharanyaRMannan, история, 13 месяцев назад, По-английски

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..?

Полный текст и комментарии »

  • Проголосовать: нравится
  • 0
  • Проголосовать: не нравится

Автор SharanyaRMannan, история, 14 месяцев назад, По-английски

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

Полный текст и комментарии »

  • Проголосовать: нравится
  • +1
  • Проголосовать: не нравится