ReplitSoftware Engineer · OnsiteCodemia practiceApply Simplified Gitignore Rules to a Workspace File List
Given gitignore-style patterns (comments, negation with !, trailing slash for directories, leading or middle slash for anchoring, *, ?, and **) and a list of file paths, return the files that are ignored, using last-match-wins and the rule that files inside an ignored directory cannot be re-included.
Medium
Coding & Algorithms