今天开始刷算法,立了个每天一道算法题的flag,第一天,一道简单的题目,但是也可以有 有深度 的写法
leetcode第一题
用常规方法时间复杂度为O(n*n) 而hashmap的时间复杂度只有O(n)
hashmap是一个用于存储key-value键值对的集合
welcome to wonderland
缺失模块。
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