Skip to content

Commit 33c166d

Browse files
committed
minorly
1 parent b655271 commit 33c166d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

haskell/24/23.hs

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ part'a g = length $ nub triangles where
1515
, c <- adj b g
1616
, hasEdge c a g ]
1717

18-
part'b g = concat $ intersperse "," $ sort max'clique where
18+
part'b g = intercalate "," $ sort max'clique where
1919
max'clique = maximumBy (\a b -> compare (length a) (length b)) cliques
2020
cliques = [ expand'clique g v | v <- vertexList g ]
21-
21+
2222
expand'clique g x = foldr expand [x] $ adj x g where
2323
expand v c | all id [ hasEdge v x g | x <- c ] = v:c
2424
| otherwise = c

0 commit comments

Comments
 (0)