Skip to content

Bug Report for search-for-word-ii #4982

@khaino

Description

@khaino

Bug Report for https://neetcode.io/problems/search-for-word-ii

Incorrect expected result

According to the problem statement, the same cell may not be used more than once in a word, but it may be used across different words.

The same cell may not be used more than once in a word.

Input

board = [["a", "b", "c", "d"],["s", "a", "a", "t"],["a", "c", "k", "e"],["a", "c", "d", "n"]]
words = ["bat", "cat", "back", "backend", "stack", "saat"]

Neetcode expected result

["back", "backend", "cat"]

Correct expected result

["back", "backend", "cat", "saat"]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions