Grokking LinkedIn Coding Interview
Ask Author
Back to course home

0% completed

Vote For New Content
Save the stack!

Shane

Jun 16, 2023

This was nice! I love it.

Added that line right before calling the dfs function to ensure it only checks for a word if it begins with the correct letter.

if(!(board[i][j] == word[0])) continue

0

0

Comments
Comments

On this page