leetcode
leetcode copied to clipboard
Bug Report for search-for-word-ii
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"]