Topics in Advanced Computing Lesson 9: Some Problems

  1. Questions?
  2. Catch up
  3. Today
    1. Invert a binary tree
    2. Middle of a Linked List
  4. Book exercises

Questions?

Catch up

mapM, forM, sequence

Today

Let’s just do a few classic Data Structures exercises.

Invert a binary tree

LeetCode 226

Middle of a Linked List

LeetCode 876

Book exercises

Go through the exercises in Chapter 10. Try to implement these yourself before looking at the solutions!