--- /dev/null
+module Golf where
+
+-- exercise 1
+skips :: [a] -> [[a]]
+skips xs = [map snd $ filter (\(i, _) -> (i `mod` n) == 0) $ zip [1..] xs | n <- [1 .. length xs]]
+
+localMaxima :: [Integer] -> [Integer]
+-- localMaxima xs = [p <- zip [0..length xs] xs], n <- [1 .. (length xs - 1)], fst p
+localMaxima [] = []
+localMaxima [_] = []
+localMaxima [_,_] = []
+localMaxima [x,y,z] | y > x && y > z = [y]
+ | otherwise = []
+localMaxima (x:y:z:xs) = localMaxima [x,y,z] ++ localMaxima (y:z:xs)
+
+localMaxima' :: [Integer] -> [Integer]
+localMaxima' xs = [b | [a,b,c] <- [drop (snd pair) (fst pair) | pair <- zip [[ p | p <- fst (splitAt n xs)] | n <- [3..length xs]] [0..]], b > a && b > c]
+