CSCI 1120 (Low-Level Computing), Fall 2021:
Homework 3 Solution

  1. (5 points) Refer to assignment for description of problem.

    Solution: Here are several solutions, first two that just use conditional execution to go through all the possibilities and then one that adapts the idea of bubble sort for this particular limited case.

  2. (5 points)

    Refer to assignment for description of problem.

    Solution: Here is one solution:




2021-10-09