I have a question about the test case:
Why this case is false? The substring "eeri" fits the pattern "eecs" I think. Can anyone point out where I misunderstand this problem? Thank you!
"electronicengineeringcomputerscience" doesn't fit the "eecs" pattern as it doesn't start with something appearing twice. Something like "electronicelectroniccomputerscience" would fit.
But the question says "there is a bijection between a letter in pattern and a non-empty substring in str". I find the non-empty sub-string "eeri" fit the pattern.
Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.