单调栈
单调栈本质上也是栈,栈(stack)是很经典的一种数据结构,具有先进先出的逻辑特点。单调栈是栈的一种应用,主要特点就是栈中存放的数据要么递增要么递减。主要分为单调递增栈和单调递减栈两种
- 单调递增栈就是从栈底到栈顶是从大到小
- 单调递减栈就是从栈底到栈顶是从小到大
单调栈主要解决一种名为Next Greater Element的典型问题,在LeetCode中有一类题目就属于这种
Taoweidong
缺失模块。
1、请确保node版本大于6.2
2、在博客根目录(注意不是yilia-plus根目录)执行以下命令:
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