Design Add and Search Words Data Structure - Leetcode - 211

preview_player
Показать описание
The day 5 problem in August Leetcoding Challenge. ( Design Add and Search Words Data Structure ).

Check out our other popular playlists:

Problem statement:
Design a data structure that supports the following two operations:

void addWord(word)
bool search(word)
search(word) can search a literal word or a regular expression string containing only letters a-z or .. A . means it can represent any one letter.

Example:

addWord("bad")
addWord("dad")
addWord("mad")
search("pad") - false
search("bad") - true
search(".ad") - true
search("b..") - true
Note:
You may assume that all words are consist of lowercase letters a-z.

If you find any difficulty or have any query then do COMMENT below. PLEASE help our channel by SUBSCRIBING and LIKE our video if you found it helpful.

#coding #interview #programminglife #programmingisfun #programmer #tech #software #codinglife #leetcode
Рекомендации по теме
Комментарии
Автор

We hope you all are enjoying the August leetcoding challenge!!! Don't forget to leave a comment!!! Please like the video to support us!!!
Questions you might like:
Struggling in a question??
Leave in a comment and we will make a video!!!🙂🙂🙂

AlgorithmsMadeEasy
Автор

Very Well Explained ❤.
The way you illustrated the example was awesome 👏

Shivabhaktha_Karthikeyan