Still not completely on board with this

This commit is contained in:
shu 2019-12-04 09:53:34 +01:00
parent a3d0bcde24
commit 4892b3fcac

View File

@ -11,7 +11,4 @@ p x
| nub x == x = False
| otherwise = True
p' x
| sort x /= x = False
| 2 `elem` (map length $ group x) = True
| otherwise = False
p' x = 2 `elem` (map length $ group x) && p x