Given a 2D matrix of characters and a string, determine whether the string can be formed in the grid by moving in any of the 8 directions, with the strict constraint that once a direction is chosen…
You've read your 3 free write-ups
Sign up free to keep reading. Your account opens the first 10 questions of every company.