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

Feature: Wild Card Pattern Matching #470

Conversation

RicardoRibeiroRodrigues
Copy link
Contributor

@RicardoRibeiroRodrigues RicardoRibeiroRodrigues commented Aug 30, 2024

Summary of Change

This pull request implements a wildcard pattern matching algorithm, providing regular expression matching with support for the . and * wildcard characters. The . matches any single character, while * matches zero or more of the preceding element. The matching covers the entire input string, ensuring it fully aligns with the pattern.

Motivation

This feature offers a flexible and efficient way to perform pattern matching using basic wildcard characters, which is particularly useful in various text processing tasks.

Time Complexity

The time complexity of the WildCardMatcher is O(n*m), where n is the length of the input string and m is the length of the pattern.

  • I have performed a self-review of my code
  • My code follows the style guidelines of this project
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Comments in areas I changed are up to date
  • I have added comments to hard-to-understand areas of my code
  • I have made corresponding changes to the README.md

Copy link

codecov bot commented Aug 30, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 94.96%. Comparing base (5c09c0e) to head (8362a50).
Report is 1 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #470   +/-   ##
=======================================
  Coverage   94.96%   94.96%           
=======================================
  Files         239      240    +1     
  Lines       10108    10156   +48     
  Branches     1432     1441    +9     
=======================================
+ Hits         9599     9645   +46     
+ Misses        392      391    -1     
- Partials      117      120    +3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@siriak siriak left a comment

Choose a reason for hiding this comment

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

Looks good, thanks!

@siriak siriak merged commit 6b37d04 into TheAlgorithms:master Sep 3, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants