摘要:
数学公式 一.【累加求和】 1+2+3+...+n 普通的方法就是For循环,循环次数为N,时间复杂度为O(N) 累加求和公式 sum = n(n+1)/2时间复杂度为O(1) 阅读全文
posted @ 2020-07-05 22:25
风吹呀吹
阅读(872)
评论(0)
推荐(0)
摘要:
时间复杂度和空间复杂度 1.时间复杂度 Big O notaion O(1):Constant Complexity 常数复杂度 O(log n): Logarithmic Complexity 对数复杂度 O(n): Linear Complexity 线性时间复杂度 O(n^2): N sque 阅读全文
posted @ 2020-07-05 22:15
风吹呀吹
阅读(331)
评论(0)
推荐(0)

浙公网安备 33010602011771号