
数据结构与算法
迈克雷(MichaelRay)
2003年开始从事互联网开发相关工作,技术极客。目前担任全栈工程师,WEB架构师,目前主要专注于Node和MongoDB技术。
展开
-
javascript实现多叉树遍历和查找
class Node { constructor(data) { this.data = data; this.parent = null; this.children = []; } } class MultiwayTree { constructor() { this._root = null; ...原创 2019-03-05 23:47:10 · 1132 阅读 · 0 评论 -
JavaScript实现一个栈
function Stack() { this.dataStore = []; this.top = 0; this.push = push; this.pop = pop; this.peek = peek; this.clear = clear; this.length = length;}/** * 先来实现 p...原创 2019-03-05 23:49:23 · 409 阅读 · 0 评论