Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added solution to leetcode 211 #608

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

YuvrajSingh808
Copy link

@YuvrajSingh808 YuvrajSingh808 commented Oct 8, 2022

Python solution for Leetcode problem 211: Design Add and Search Words Data Structure.

Problem Link
https://leetcode.com/problems/design-add-and-search-words-data-structure/

Problem Description
Design a data structure that supports adding new words and finding if a string matches any previously added string.

Implement the WordDictionary class:

  • WordDictionary() Initializes the object.
  • void addWord(word) Adds word to the data structure, it can be matched later.
  • bool search(word) Returns true if there is any string in the data structure that matches word or false otherwise. word may
    contain dots '.' where dots can be matched with any letter.

Copy link
Owner

@dheeraj-2000 dheeraj-2000 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi, pls add the problem description and its link.

@dheeraj-2000 dheeraj-2000 added the change requested requested for some changes label Oct 17, 2022
@YuvrajSingh808
Copy link
Author

Done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
change requested requested for some changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants