摘要:
def mutate_reverse(link): """Mutates the Link so that its elements are reversed. >>> link = Link(1) >>> mutate_reverse(link) >>> link Link(1) >>> link 阅读全文
摘要:
1.list quote quasiquote The list procedure takes in an arbitrary amount of arguments. Because it is a procedure, all operands are evaluated when list 阅读全文
摘要:
Write sub-all, which takes a list s, a list of old words, and a list of new words; the last two lists must be the same length. It returns a list with 阅读全文
摘要:
def reduce_armor(self, amount): """Reduce armor by AMOUNT, and remove the FireAnt from its place if it has no armor remaining. Make sure to damage eac 阅读全文
摘要:
题目: def is_bst(t): """Returns True if the Tree t has the structure of a valid BST. >>> t1 = Tree(6, [Tree(2, [Tree(1), Tree(4)]), Tree(7, [Tree(7), Tr 阅读全文