Skip to main content
DevHives

Find Many Words in a Letter Grid

Loading editor…

3 examples run when you press Run. Submit checks every hidden test too.

Case 1
Input:
[["l","o","g"],["i","n","e"],["t","a","r"]], ["tar","log","line","gone","lint","tan"]
Expected:
["gone","line","log","tan","tar"]
Case 2
Input:
[["a","b"],["b","a"]], ["abab","aba","abba","aa"]
Expected:
["aba","abab"]
Case 3
Input:
[["x","y","z"]], ["zyx","xz","yy"]
Expected:
["zyx"]
Ready

Run checks your code against the 3 examples. Submit checks it against all 123 tests and needs a free account. You can also try ideas in the free JavaScript or Python compiler.