SIGSEGV in WDTBAM

Cant figure out the reason for SIGSEGV in the second test case.

https://www.codechef.com/viewsolution/25033617

Increase the size of char array by 1 because there is always a null character at the end of any string.

1 Like