Ad
  • Default User Avatar

    you can use last sorted and remove reverse(sort(...
    it's kinda

    isTriangle :: Int -> Int -> Int -> Bool
    isTriangle a b c = last sorted < sum sorted
      where
        sorted = sort [a, b, c]