No one has replied
@natalia6 Good catch, i mixed up the idea in my implementation, you see, it can get confusing. Spot on with your explanation. I will update my solution.
same idea, but you have many redundant codes
Yes, you are right!
Well, I don't think this is a DFA solution. Instead, it's a backtracking solution
Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.