没有合适的资源?快使用搜索试试~ 我知道了~
js-algorithms-and-data-structures:JavaScript算法和数据结构大师班
共17个文件
js:16个
md:1个
需积分: 9 0 下载量 58 浏览量
2021-04-01
00:39:46
上传
评论
收藏 15KB ZIP 举报
温馨提示
JavaScript算法和数据结构 大O符号 大O表示法是形式化模糊计数的一种方法。 它使我们可以正式谈论算法的运行时间如何随着输入的增长而增长。 我们不在乎细节,只在乎趋势。 我们说一个算法是O(f(n))如果简单操作的计算机必须做的次数比含量的不同时间,最终少f(n)作为n增加。 f(n)可以是线性的(f(n)= n) f(n)可以是二次的(f(n)= n 2 ) f(n)可以是常数(f(n)= 1) f(n)可能完全不同! 例子 // Always 3 operations O(1) function addUpTo ( n ) { return ( n * ( n + 1 ) ) / 2 ; } // Number of operations is (eventually) bounded by a multiple of n (say, 10n) // O(n
资源推荐
资源详情
资源评论
收起资源包目录
js-algorithms-and-data-structures-main.zip (17个子文件)
js-algorithms-and-data-structures-main
multiple-pointers
sum-zero.js 482B
count-unique-values.js 472B
sum-zero-naive-solution.js 410B
frequency-counter
same.js 760B
same-naive-solution.js 495B
anagram.js 973B
recursion
recursion-helper-method.js 377B
factorial.js 190B
call-stack-example.js 375B
pure-recursion.js 319B
README.md 14KB
sliding-window
max-sub-array-sum.js 648B
max-sub-array-sum-naive-solution.js 615B
problem-solving-approach
understant-the-problem.js 870B
explore-concrete-examples.js 2KB
divide-and-conquer
divide-and-conquer-naive-solution.js 328B
divide-and-conquer.js 553B
共 17 条
- 1
资源评论
凯然
- 粉丝: 19
- 资源: 4568
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功