Problem Solving with Go course

The Go gopher wearing a miner's helmet with its lamp on (pencil drawing)

Read puzzle input, pick the right data structure and spot the patterns that keep coming back: maps, sets, grids, search, sorting, dynamic programming and graphs. Groundwork for practising on Advent of Code or LeetCode. Nibble is not affiliated with either.

9 chapters, 54 lessons

Reading Input

6 lessons

  1. Input, os.Stdin and the Input PanelOutput exerciseNot started
  2. Line by Line with bufio.ScannerTest exerciseNot started
  3. Splitting Lines: Fields, Split and CutTest exerciseNot started
  4. Input in BlocksOutput exerciseNot started
  5. Fixed Formats: regexp and fmt.SscanfTest exerciseNot started
  6. Quiz: Reading InputQuizNot started

Complexity

5 lessons

  1. Counting StepsTest exerciseNot started
  2. Prefix Sums: Compute Once, Answer Many TimesTest exerciseNot started
  3. Count the Groups, Not the ItemsTest exerciseNot started
  4. Choosing a Data StructureOutput exerciseNot started
  5. Quiz: ComplexityQuizNot started

Maps and Sets

6 lessons

  1. Counting with MapsTest exerciseNot started
  2. Sets with map[T]struct{}Test exerciseNot started
  3. Finding Pairs with a MapTest exerciseNot started
  4. Detecting CyclesTest exerciseNot started
  5. Grouping with map[K][]VOutput exerciseNot started
  6. Quiz: Maps and SetsQuizNot started

Grids

6 lessons

Two Go gophers building a small robot with a wrench and a hammer (pencil drawing)
  1. A Grid from the InputTest exerciseNot started
  2. Neighbours and the Edge of the GridTest exerciseNot started
  3. Points as Map KeysTest exerciseNot started
  4. Simulating Step by StepTest exerciseNot started
  5. Rotating a GridOutput exerciseNot started
  6. Quiz: GridsQuizNot started

6 lessons

  1. Stacks from a SliceTest exerciseNot started
  2. Queues: First Come, First ServedTest exerciseNot started
  3. BFS: the Shortest Path on a GridTest exerciseNot started
  4. DFS and Flood FillTest exerciseNot started
  5. Tracing the Path BackOutput exerciseNot started
  6. Quiz: Stacks, Queues and SearchQuizNot started

Sorting and Searching

6 lessons

  1. Sorting with slicesTest exerciseNot started
  2. Binary SearchTest exerciseNot started
  3. Two PointersTest exerciseNot started
  4. Sliding WindowTest exerciseNot started
  5. Merging IntervalsTest exerciseNot started
  6. Quiz: Sorting and SearchingQuizNot started

Recursion and DP

6 lessons

  1. RecursionTest exerciseNot started
  2. MemoizationTest exerciseNot started
  3. Counting CombinationsTest exerciseNot started
  4. Bottom-Up TablesTest exerciseNot started
  5. DP on a GridTest exerciseNot started
  6. Quiz: Recursion and DPQuizNot started

Graphs

6 lessons

  1. Graphs as Adjacency ListsTest exerciseNot started
  2. Connected ComponentsTest exerciseNot started
  3. Dijkstra with container/heapTest exerciseNot started
  4. Topological SortTest exerciseNot started
  5. Tracing the RouteOutput exerciseNot started
  6. Quiz: GraphsQuizNot started

Capstone Puzzles

7 lessons

The Go gopher in flying goggles piloting a biplane (line drawing)
  1. Greenhouse, Part 1Test exerciseNot started
  2. Greenhouse, Part 2Test exerciseNot started
  3. Bike Rentals, Part 1Test exerciseNot started
  4. Bike Rentals, Part 2Test exerciseNot started
  5. Stage Build, Part 1Test exerciseNot started
  6. Stage Build, Part 2Test exerciseNot started
  7. Final QuizQuizNot started