Getting 1 test case as wrong answer

Kindly check my code

Hi Laksh,
image
here u are initializing only 100 X 100 X 100 dp with -1 while strings can be even of more length than 100… so just increase it to atleast 200 as stated in ques…
corrected code --> https://ide.codingblocks.com/s/625709

its passing all test cases now…

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.