题库 第1012页
判断题:Deletion of Red-Black Tree
After deleting 12 from the following red-black tree, 13, 14, 15 and 17 will change its color. 函数,以下语句书写正确的是()
程序开始运行时,调用main()函数,以下语句书写正确的是()A.if __name__ == '__main__': main()B.if __name__ == __main__: main()C.if __name__ =…
单选题:以下()的方法可以对类外部代码隐藏类的属性。
以下()的方法可以对类外部代码隐藏类的属性。A.使用self参数来创建属性B.用两个下划线开始属性的名称C.用private关键字修饰属性D.用@符号开始属性的名称答案:B…
单选题:创建对象时会自动调用的方法是()
创建对象时会自动调用的方法是()A.__init__B.initC.__str__D.__object__答案:A…
单选题:Hiring Problem Revisit
Consider the hiring problem. Assume that the $$n$$ candidates arrive in random order, and that no two candidates have th…