salt_n_ice's blog

By salt_n_ice, 6 years ago, In English

Problem :Link I applied the sparse table algorithm here, but I'm somehow getting a runtime error in one of the test cases. Also, I tried to see where is it going wrong, and in the code, the first "here" is printing, and the second "here" after the declaration of the minimum_query array(mq) is not running(for the test case which is giving runtime error). So I guess that the problem should be somewhere there?

Code
  • Vote: I like it
  • -3
  • Vote: I do not like it

»
6 years ago, hide # |
 
Vote: I like it -16 Vote: I do not like it

Declare your matrix globally