Loading...
Given an m x n board of characters and a list of words, return all words found in the board. Each word must be constructed from letters of sequentially adjacent cells (horizontal or vertical), and the same cell may not be used more than once per word. Output found words sorted alphabetically.
oaan,etae,ihkr,iflv oath,pea,eat,rain
eat oath
oaan, etae, ihkr, iflv) and a list of words (oath, pea, eat, rain).eat and oath are found in the grid: eat can be formed from the letters 'e', 'a', 't' in the grid, and oath can be formed from the letters 'o', 'a', 't', 'h' in the grid.eat oath