Leetcode 0079. Word Search

Posted on Sun 26 March 2023 in Leetcode • Tagged with backtracking-with-matrix

Question Link : https://leetcode.com/problems/word-search/

Difficulty: Medium

Premium: False

Question

Given an m x n grid of characters board and a string word, return true if word exists in the grid. The word can be constructed from letters of sequentially adjacent cells, where adjacent cells are horizontally or …


Continue reading

Leetcode 0212. Word Search II

Posted on Sun 26 March 2023 in Leetcode • Tagged with backtracking-with-matrix, trie-prefix-tree

Question Link : https://leetcode.com/problems/word-search-ii/

Difficulty: Hard

Premium: False

Question

Given an m x n board of characters and a list of strings words, return all words on the board. Each word must be constructed from letters of sequentially adjacent cells, where adjacent cells are horizontally or vertically …


Continue reading