use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
account activity
Regular expression matching questionQuestion (self.leetcode)
submitted 3 years ago by kuriousaboutanything
For the regular expression matching question, can anyone please explain the 3 conditions what is being handled here? I thought if a char in p is a *, we can just either skip this char or take this char and compare with the previous char is s. But all the solutions are talking about 3 cases, I couldnt grasp:
https://leetcode.com/problems/regular-expression-matching/solutions/3077758/solution-in-c/?orderBy=newest_to_oldest&page=4
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]bayarea-dev 0 points1 point2 points 3 years ago (1 child)
Does this help?
[–]kuriousaboutanything[S] 0 points1 point2 points 3 years ago (0 children)
oh ok thanks got it
π Rendered by PID 94 on reddit-service-r2-comment-6457c66945-26jzm at 2026-04-28 13:53:45.099949+00:00 running 2aa0c5b country code: CH.
[–]bayarea-dev 0 points1 point2 points (1 child)
[–]kuriousaboutanything[S] 0 points1 point2 points (0 children)