Replace # in the title with the appropriate quiz number.
For the quiz, are we assuming that each cycle path contains no repeating nodes? For example, in the scenario below, would 1->2->3->4->3->2->1 be considered a cycle? If so, the solution would be very complicated.
According to the requirement of the homework, you need to Make sure to handle nested cycles. But you may want to consult Dr. Choi in class to make sure about this edge case.
Replace
#
in the title with the appropriate quiz number. For the quiz, are we assuming that each cycle path contains no repeating nodes? For example, in the scenario below, would 1->2->3->4->3->2->1 be considered a cycle? If so, the solution would be very complicated.