I run the below code on my local and it is working fine. Is there some issue with the test cases or am I going wrong somewhere. To me this looks fine.
All test cases failing
@PThak2018
You code is correct but there is slight mistake while printing output. See you are printing “false” and “true” but you have to printing “False” and “True”. First letter should be capital.
just change line 7 and 8 to
if(editDistanceStrig(s1,s2)){ System.out.println(“True”); }
else{ System.out.println(“False”); }