nice one , smart and clear, it takes me a little time to figure out why BFS miss some result, and I tried to use BFS + DFS backtrack, but actually just use your idea will work
@paradox27382 жыл бұрын
the code give time limit excceded when I try it now in augus 14 2022
@bobo31272 жыл бұрын
getting TLE now
@sankalpspatil48908 ай бұрын
They definilty added more test cases, I'm getting a MLE at 32/36 testcases
@JW-bx4su3 жыл бұрын
Your curList contains all the words used for the path, you only need to check if nextword is in your curList or not.
@sainikhilpalukuri13733 жыл бұрын
Hi Cheng, are u not actively solving leetcode these days??
@happycoding10933 жыл бұрын
yea, bit busy with my job
@djslimcodes23372 жыл бұрын
@@happycoding1093 where are you working currently?