Skip to content

Commit

Permalink
Day_22(2023): write-up update
Browse files Browse the repository at this point in the history
  • Loading branch information
Sheinxy committed Dec 22, 2023
1 parent fe30deb commit bcd3c4e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 2023/Day_22/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ This, however, will also put the ground as an unremovable brick (which is, ultim

```hs
getUnremovableBricks :: Input -> S.Set Int
getUnremovableBricks = S.filter (-1 /=) . M.foldr go S.empty
getUnremovableBricks = S.delete (-1) . M.foldr go S.empty
where go cur acc | (S.size . supporting) cur == 1 = acc `S.union` supporting cur
| otherwise = acc
```
Expand Down

0 comments on commit bcd3c4e

Please sign in to comment.