seungriyou / algorithm-study

알고리즘 & SQL 문제 풀이 기록
https://leetcode.com/u/summer_y
0 stars 0 forks source link

[LC] 79. Word Search #62

Open seungriyou opened 6 months ago

seungriyou commented 6 months ago

https://leetcode.com/problems/word-search/

Approach

[!note] BFS는 왜 안 됐을까...? edge case를 못 잡은 것 같은데, BFS로 TLE 안 나게 풀 수 있을까?


Complexity

ref: https://leetcode.com/problems/word-search/solutions/747144/python-dfs-backtracking-solution-explained