• + 1 comment

    The problem description is unclear and misleading.

    The test cases do not use regex, and the algorithm does not require the use of regex, so why is it even mentioned in the problem description?

    start/end is not a good verb pairing for an API. It should be start/stop, or begin/end.

    Furthermore, the test cases require printing values to stdout, not implementing start/end APIs, so again, why are those even mentioned?