Please consider offering answers and suggestions to help other students!
And if you fix a problem by following a suggestion here,
it would be great if other interested students could see a short
"Great, fixed it!" followup message.
For question 6, what sort of answer is expected of us? I understand it wants the function and purpose of chosen data structures but the justification for the chosen data structures are also asked for in question 1. Is question 6 just question 1 witho...
I found that only the absolutely simplest structure lets me have O(1) so simple data structures built into python are a good start on finding the right one.
Is O(1) achievable?
The add child function asks for a target of O(1), a tree data structure wouldn't be able to achieve this, finding from root the parent to link the child would be O(n). A set would meet O(1) but would have trouble with get primogen...
I've talked to a couple of lab facilitators on this matter, one said just have the python file and answers file as separate files zipped together and another said to be safe put your answers in both and submit a zip with both.
I'm more inclined to be ...
the output expected of get runs is a list of tuples in form (time, name), ranks are good I use them myself in a class for the entries but you need to convert them back into the (time, name) form for get runs.
You're overcomplicating it, it's just whichever is less in Name1 Name2 form comes first, which follows the encoding values where capitals come before lowercase letters.
Apple apple, Bpple apple, and apple bpple as well ass Apple Bpple.
Hiafter a grueling day I have gotten test speedrunning.py to return all OKs.
But my program doesn't feel as robust as I would like it to be (I'll clean it up at a later date) so on that note, does my program passing the tests guarantee that it will pa...