• + 9 comments

    Some of the test cases have CR+LF (i.e. "\r\n") line endings, and the JavaScript boilerplate solution does not properly strip these off; it assumes all lines end with "\n" only. That means some of the grids and patterns for the test cases will be arrays like grid=["123\r","456\r","789\r"] and pattern = ["12\r","45\r"]. The boilerplate needs to update its processing of stdin to split on "\n" and then strip "\r" from each line as well.