Skip to content
This repository was archived by the owner on Jul 24, 2023. It is now read-only.

Commit 798aee5

Browse files
committed
minor change
1 parent b2a8e66 commit 798aee5

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

src/Recursion.hs

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -353,16 +353,17 @@ appendPermHelper' str c ind acc
353353

354354
{-
355355
8.9
356-
Implement an algorithm to print all valid (eg: properly opened and closed)
357-
combinations of n pairs of parentheses.
356+
Implement an algorithm to print all valid (eg: properly opened and
357+
closed) combinations of n pairs of parentheses.
358358
359-
test case: genPerm' ["()","()","()"]
359+
test case: genPerm' [paren,paren,paren]
360360
361-
modify the genPerm from 8.7 and 8.8 to make it works for string, and remove
362-
duplicates in two different levels.
361+
modify the genPerm from 8.7 and 8.8 to make it works for string,
362+
and remove duplicates in two different levels.
363363
-}
364364
paren :: String
365365
paren = "()"
366366

367+
-- generate all possible valid parentheses
367368
genPerm' :: [String] -> [String]
368369
genPerm' = genPermHelper [[]]

0 commit comments

Comments
 (0)