-
20 Beginner Problems to Solve in Haskell
Here are some super easy problems for beginners to practice working with, and begin truly understanding, Haskell’s syntax. These problems will help you get familiar with defining functions, using basic types, and applying Haskell’s fundamental features like recursion, pattern matching, and higher-order functions. 1. Hello, Haskell! 🟢 Write a simple function that greets the user.…
-
Pangram Problem – Haskell [Problem Solved]
Background This problem comes courtesy of the great folks over at Exercism. I highly recommend jumping on their Haskell track to apply your knowledge of Haskell. The Problem Your task is to figure out if a sentence is a pangram. A pangram is a sentence using every letter of the alphabet at least once. It…
-
Space Age Problem – Haskell [Problem Solved]
Background This problem comes courtesy of the great folks over at Exercism. I highly recommend jumping on their Haskell track to apply your knowledge of Haskell. The Problem Given an age in seconds, calculate how old someone would be on: So if you were told someone were 1,000,000,000 seconds old, you should be able to…
-
Darts Problem – Haskell [Problem Solved]
Background This problem comes courtesy of the great folks over at Exercism. I highly recommend jumping on their Haskell track to apply your knowledge of Haskell. The Problem Write a function that returns the earned points in a single toss of a Darts game. Darts is a game where players throw darts at a target.In…
-
Leap Year Problem – Haskell [Problem Solved]
Background This problem comes courtesy of the great folks over at Exercism, and is a great way to start testing your Haskell knowledge once you’ve learned the basics of: Getting Started & Haskell functions. The Problem A leap year (in the Gregorian calendar) occurs: Some examples: Knowledge You Need to Solve This Problem The Solution…