Code | Points | Description |
---|---|---|
A1 | 2 | Submission is zip containing recursive.py |
A2 | 2 | Zip is named after uni, unzips to folder with uni-hw6 |
A3 | 2 | recursive.py is normal python file |
Each one all-or-nothing
Code | Points | Description |
---|---|---|
B1 | 5ea | No globals |
B2 | 5ea | Functions each recursive |
If problem has not been implemented recursively, no credit for C.
Code | Points | Description |
---|---|---|
C1 | 4ea | Q1 Test cases |
C2 | 5ea | Q2 Test cases |
C3 | 4ea | Q3 Test cases |
Q1
2,3 -> 6
2,-3 -> -6
-2,3 -> -6
-2,-3 -> 6
0,3 -> 0
Q2
reverse([]) == []
reverse([1]) == [1]
reverse([1, 2]) == [2, 1]
reverse([1, 2, 3]) == [3, 2, 1]
Q3
"" == True
"a" == True
"aa" == True
"ab" == False
"abcba" == True