Hey, I solved the second problem(SFRV) of July_Lunchtime19 & can’t understand where I am getting wrong.
I haven’t solved it by DP as in editorial, but with simple arrays.
The problem link and solution has been attached.
generate thousands of random inputs, run your code, and correct code on them, and compare, you’ll find failing cases quickly
Without DP you’ll obviously get WA