Not able to understand

i am not able to pass test case-0.
it is showing run-time error.
please help;

my CB ide link:

@S18CRX0174 n is of order greater than 17e4 , you cant use 2d dp array (coz of runtime)
refer this


dont forget to hit like and mark resolved if cleared :smiley:

still ru time erron in test case 0 https://ide.codingblocks.com/s/255082

i am using 2d dp array

@S18CRX0174 2d dp cant be used i this as constraints are large thats why i referred you the other code

still same problem ,here is my code link https://ideone.com/vjNYS1

@S18CRX0174 it seems fine can’t find the mistake coz i dont know java.

from which college you are

@S18CRX0174 jaypee noida why do you ask?

how to be a TA for coding blocks

@S18CRX0174 sometimes form comes in the grp or linkedin just fill it and the process will continue.
you can also ask any teacher in the whatsapp group he or she will provide you with the form and details