Solución
solution.tsTypeScript
export function wordSearch(grid: string[][], word: string): boolean {
let flatGrid = grid.flat()
for(let letter of word){
const flatIdx = flatGrid.indexOf(letter)
if(flatIdx === -1) return false
flatGrid = flatGrid.splice(flatIdx)
}
return true;
}0respuestas