all tasks
This commit is contained in:
parent
b83f433714
commit
68f8f3e56b
14735 changed files with 178959 additions and 0 deletions
3
Task/Substring/Haskell/substring.hs
Normal file
3
Task/Substring/Haskell/substring.hs
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
t45 n c s | null sub = []
|
||||
| otherwise = take n. head $ sub
|
||||
where sub = filter(isPrefixOf c) $ tails s
|
||||
Loading…
Add table
Add a link
Reference in a new issue