Hands-on Day

Live Contest Problem

Today, we will do a live version of a contest problem as our in-class quiz! You have 50 minutes to complete the challenge (and we have an extra credit problem for those who have more time).


Logistics

We will use the same mechanism as with the contest problems that comprised an out-of-class programming assignment.


Required Problem (20 points)

Digits Solitaire (source code: digits.py)

Hints: Don't forget that if you have a numeric string s, you can compute its numeric value as int(s) and if you have an integer value k you can compute its string representation as str(k).


Extra Credit Problem (5 points)

Copier Reduction (source code: copier.py)

Since this is extra credit, we'll use more strict contest rules whereby you will only get credit if you correctly solve the problem.


Michael Goldwasser
Last modified: Thursday, 11 October 2018