Haskell Daily Notes

Notes for each day.

  • 2021-11-22
  • Short quiz confirming knowledge

  • 2021-11-08
  • Interactive graphics demo using Haskell on code.world.

  • 2021-11-01
  • Connect Four win detection.

  • 2021-10-28
  • topOfPile and make_move

  • 2021-10-27
  • Warm-up functions for drawing the board.

  • 2021-10-25
  • Introduction to Connect Four

  • 2021-10-18
  • Utility functions. Noticing infinite loops.

  • 2021-10-14
  • Logic and lists practice: isEverywhere.

  • 2021-10-12
  • Eight before nine in a list.

  • 2021-10-06
  • The function shuffle2 :: [Int] -> [Int] -> [Int] takes in two lists of numbers and interleaves them, taking two from the first list, then one from the second list. When one list runs out the rest of the other list is output. shuffle2 [10,20,30,40] [100,200,300] == [10,20,100,30,40,200,300] (either24 :: [Int] -> Bool) Given an array of ints, return true if the array contains a 2 next to a 2 or a 4 next to a 4, but not both.

  • 2021-10-04
  • The makes function takes in a number n and a list of numbers xs. It returns the number of ways to make n by adding the first number in the list to some other number later in the list. makes :: Int -> [Int] -> Int makes 12 [6,6] == 1 makes 11 [8,3,11,3] == 2 makes 2 [1,1,1,1] == 3 Continue to Chapter 4 Discussion IV.

  • 2021-09-30
  • Money formatter. List of Char vs String.

  • 2018-10-16
  • notAlone, Team Tic-Tac-Toe

  • 2018-10-09 Project
  • The end-of-Haskell project.

  • 2018.10.04 Square Pasture
  • USACO Bronze December 2016, Question 1.

  • 2018.10.03 Cow Signal
  • USACO Bronze December 2016, Question 2.

  • 2017-10-04
  • More CodingBat problems.

  • 2017-10-03
  • CodingBat problems to improve your problem-solving skills.

  • 2017-09-18
  • Battleship and homework review.

  • 2017-09-14 Indentation
  • Indentation matters. A lot.

  • 2017-09-12
  • Technical details that came up while doing Chapter 2 Homework.

  • 2017-09-11
  • worked examples - removeVowels and wordLenPairs


2021-11-22

Short quiz confirming knowledge

2021-11-08

Interactive graphics demo using Haskell on code.world.

2021-11-01

Connect Four win detection.

2021-10-28

topOfPile and make_move

2021-10-27

Warm-up functions for drawing the board.

2021-10-25

Introduction to Connect Four

2021-10-18

Utility functions. Noticing infinite loops.

2021-10-14

Logic and lists practice: isEverywhere.

2021-10-12

Eight before nine in a list.

2021-10-06

2021-10-04

2021-09-30

Money formatter. List of Char vs String.

2018-10-16

notAlone, Team Tic-Tac-Toe

2018-10-09 Project

The end-of-Haskell project.

2018.10.04 Square Pasture

USACO Bronze December 2016, Question 1.

2018.10.03 Cow Signal

USACO Bronze December 2016, Question 2.

2017-10-04

More CodingBat problems.

2017-10-03

CodingBat problems to improve your problem-solving skills.

2017-09-18

Battleship and homework review.

2017-09-14 Indentation

Indentation matters. A lot.

2017-09-12

Technical details that came up while doing Chapter 2 Homework.

2017-09-11

worked examples - removeVowels and wordLenPairs

Last modified August 25, 2021: ap-cs 2017-2018 (3bb9976)