
79. Word Search
·
Algorithm
Word Search - LeetCode Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview. leetcode.com 영어 대문자로 구성된 2차원 배열이 주어진다. 임의의 위치에서 시작해 네 방향으로 이동하면서 주어진 문자열을 만들 수 있는지를 판단하는 문제다. 예시 Input: board = [["A","B","C","E"],["S","F","C","S"],["A","D","E","E"]], word = "ABCCED" Output: true 여기서 방문한 격자를 중복해서 선택할 순 없다. 그러므로 위 예..