Please put this test case


#1

“aaaaaaa”
[“aaaa”,“aaa”]
Ans : [“aaaa aaa”,“aaa aaaa”]. My soln get A.C. but failed at this test case.@admin.


#2

Your ans is wrong [“aaaa aaa”, “aaa aaaa”]
the correct ans is [“aaa aaaa”, “aaaa aaa”] check the expected output
start scanning from left till a match is found not from right!!


#3

I agree. Sample test cases are really weak. My solution was returning nothing still it was passing sample test cases, and on trying to submit it, the test case was huge and was impossible to debug manually.
I would strongly recommend @admin to add the above test case in the sample test cases.