数组去重
ES5
|
|
ES6
|
|
哈希判断
|
|
排序
sort函数
V8引擎中,sort函数给出了两种排序InsertionSort和QuickSort,数量小于10的数组使用InsertionSort,比10大的数组则使用QuickSort。
冒泡排序
|
|
还有一个改进版。

选择排序
|
|

插入排序
|
|

快速排序
|
|

性能总结

二叉树
一言不合直接上代码~
code play love
|
|
|
|
|
|
V8引擎中,sort函数给出了两种排序InsertionSort和QuickSort,数量小于10的数组使用InsertionSort,比10大的数组则使用QuickSort。
|
|
还有一个改进版。

|
|

|
|

|
|


一言不合直接上代码~
缺失模块。
1、请确保node版本大于6.2
2、在博客根目录(注意不是yilia根目录)执行以下命令:
npm i hexo-generator-json-content --save
3、在根目录_config.yml里添加配置:
jsonContent:
meta: false
pages: false
posts:
title: true
date: true
path: true
text: false
raw: false
content: false
slug: false
updated: false
comments: false
link: false
permalink: false
excerpt: false
categories: false
tags: true