79
-
[LeetCode] 79. Word SearchLeetCode 2021. 10. 7. 19:44
https://leetcode.com/problems/word-search/ 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 Word Search 일정한 그리드안에 알파벳들이 나열되어있다. 그리고 또 다른 알파벳문자열이 주어졌을때, 그리드 안에서 인접한 알파벳들을 연결해 해당 문자열을 만들 수 있는지 묻는 문제다. 컨셉만 보면 되게 간단해보였다. 먼저 이중 for문을 이용해 첫 글자에 해당하는 것들을 찾아준뒤, 그 문자를 기준으로 상,하,..