Please put this test case


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


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!!


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.