【list】的内置函数时间复杂度 方法复杂度简介 index[x] O(1) 索引 index assignment O(1) 索引赋值 append O(1) 尾部追加 pop() O(1) 尾部弹出 pop(i) O(n) 指定位置弹出 n列表长度, 最坏时间复杂度 insert(i, item ...
分类:
其他好文 时间:
2019-06-12 18:20:36
阅读次数:
136
(PP 1.1) Measure theory: Why measure theory - The Banach-Tarski Paradox ball -> tear down to pieces -> rigid transformation (translation/rotation) -> ...
分类:
其他好文 时间:
2019-06-07 11:06:02
阅读次数:
93
Computer Science 220S1C (2019)Assignment 4 (traversal and optimisation)Due date June 7, 2019, 10pm100 Marks in totalThis assignment requires you to su ...
分类:
其他好文 时间:
2019-06-06 21:11:40
阅读次数:
78
题意:n个字母,每次可以删掉一组非连续回文,问你最少删几次 思路:把所有回文找出来,然后状压DP 代码: ...
分类:
其他好文 时间:
2019-06-02 15:42:57
阅读次数:
90
报错信息:UnboundLocalError: local variable referenced before assignment 在函数内部修改全局变量时报错。 因为:在python里,如果在函数内部试图去修改一个全局变量,那么实际上的操作是 Python会创建一个新的名字一模一样的局部变量, ...
分类:
编程语言 时间:
2019-06-01 14:06:59
阅读次数:
120
Wentworth Institute of TechnologyCOMP 3450 – Parallel and Distributed ComputingSummer 2019, SchusterLab Assignment 1In this assignment you are to writ ...
分类:
其他好文 时间:
2019-05-26 20:00:53
阅读次数:
165
CSE/EEE 230 Assignment 2Due May 28 (11:59PM)This assignment is designed to introduce you to the MIPS assembly language and the MIPS simulator.For this ...
分类:
其他好文 时间:
2019-05-26 19:44:44
阅读次数:
133
CSC72003 Assignment 2Weight: 30% of your final markDue: 24 May 2019 10 pmSpecificationsYour task is to complete various exercises in BlueJ, using the ...
分类:
其他好文 时间:
2019-05-26 19:42:26
阅读次数:
104
The first assignment of this course asked me to write some string manipulation functions without using any string library. I got stuck in the function ...
分类:
其他好文 时间:
2019-05-19 10:29:33
阅读次数:
127
MCD4140 Assignment 1 of 8MCD 4140: Computing for EngineersAssignmentTrimester 1, 2019Status: IndividualHurdle: There is no hurdle on assignmentWeighti ...
分类:
其他好文 时间:
2019-05-18 20:56:01
阅读次数:
66