Tell the approach and write code on paper for this question https://leetcode.com/problems/word-search-ii/description/?envType=study-plan-v2&envId=top-interview-150
Anonymous
I told the recursive approach for this, but the optimal approach is using segment trees, the recursive solution would give TLE for large inputs
Check out your Company Bowl for anonymous work chats.