Skip to content

Commit 5899dae

Browse files
committed
minorly
1 parent 667261f commit 5899dae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

haskell/24/23.hs

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ part'a g = length $ nub triangles where
1616

1717
part'b g = intercalate "," $ max'clique where
1818
max'clique = maximumBy (comparing length) cliques
19-
expand v c | all id [ hasEdge v x g | x <- c ] = v:c
19+
expand v c | all (`S.member` postSet v g) c = v:c
2020
| otherwise = c
2121
expand'clique g x = foldr expand [x] $ S.elems $ postSet x g
2222
cliques = [ expand'clique g v | v <- vertexList g ]

0 commit comments

Comments
 (0)