SPOJ HORRIBLE help

@ALL getting WA for the SPOJ HORRIBLE after implementing RMQ and couldn’t striking any corner case
needed a help
SPOJ_HORRIBLE
my solution solution

1 Like

use segment tree with lazy propagation, I hope this will be enough…

use long long data type for all values…my code got accepted after doing this…try dis may be it will help u

@shubham_1286 thanks for the advice I actually missed a “LONG LONG”
@rjdhania thanks for the reply

1 Like