K-LCS, don't know what is going wrong

Passes2 out of 3 testcases.

@pangatt4 in line 24, it should be val3.

1 Like

Silly me, would take care of such things ahead.