• + 0 comments

    It's O(n*m), can be done faster with O(n). One-liner doesn't make it good solution.