Test Cases of Problem Three Strings link are weak.submissions are accepted which fails in basic test cases. accepted sulution but fails in this sample Test Case
bcc
bccd
bccd
original answer = 7
solution output = 8
Test Cases of Problem Three Strings link are weak.submissions are accepted which fails in basic test cases. accepted sulution but fails in this sample Test Case
bcc
bccd
bccd
original answer = 7
solution output = 8
ohh
but nothing can be done now though except editing test cases for practice
Yes,After I got wa(my fault) I observed that the test cases are really weak,but the question is really nice one :P.Later I got AC with new approach , so don’t worry,anyone can get AC if he/she get the proper logic.