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

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

Hello communtiy, I have been solving a problem of Heavy Light Decomposition(HLD) on cses,Path Queries II. It is passing all the test cases except the penultimate one. As per my understanding I have written the optimal one. Plz advice me what more i can do in this solution to pass it.

Thanks.

Problem link:CLick here

Source code: 261194019

P.S: I just submitted my source code to a random codeforce problem just to get it as a submission link.

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

»
6 месяцев назад, # |
  Проголосовать: нравится +6 Проголосовать: не нравится

It also happened to me. Use loop segment tree not recursive segment tree