Skip to content

Conversation

kciccolella
Copy link
Contributor

* @return {boolean}
*/
var isMatch = function(s, p) {
return eval("/^"+ p + "$/").test(s);
Copy link
Collaborator

Choose a reason for hiding this comment

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

I really like the ingenuity but I don't know if I can merge this 😄

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Here is a different solution.

@kciccolella kciccolella requested a review from Ahmad-A0 August 6, 2022 14:22
@Ahmad-A0
Copy link
Collaborator

Ahmad-A0 commented Aug 6, 2022

Thanks, @kciccolella!

@Ahmad-A0 Ahmad-A0 merged commit 27fc006 into neetcode-gh:main Aug 6, 2022
@kciccolella kciccolella deleted the leetcode10 branch August 6, 2022 17:15
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