上一页 1 ··· 31 32 33 34 35 36 37 38 39 ··· 50 下一页
摘要: ![](https://img2023.cnblogs.com/blog/1303455/202302/1303455-20230208054650570-1615991374.png) 阅读全文
posted @ 2023-02-08 05:47 垂序葎草 阅读(11) 评论(0) 推荐(0) 编辑
摘要: 原链接 解释链接 bool check(int x) {/* ... */} // 检查x是否满足某种性质 // 区间[l, r]被划分成[l, mid]和[mid + 1, r]时使用: int bsearch_1(int l, int r) { while (l < r) { int mid = 阅读全文
posted @ 2023-02-07 04:21 垂序葎草 阅读(15) 评论(0) 推荐(0) 编辑
摘要: 20230221 乱试边界写对了 20230308 顺利通过 原题解 ###题目 约束 ###题解 class Solution { public: int search(vector<int>& nums, int target) { int n = nums.size(); int l = 0, 阅读全文
posted @ 2023-02-07 04:13 垂序葎草 阅读(9) 评论(0) 推荐(0) 编辑
摘要: ![](https://img2023.cnblogs.com/blog/1303455/202302/1303455-20230207040606167-110327326.png) 阅读全文
posted @ 2023-02-07 04:06 垂序葎草 阅读(10) 评论(0) 推荐(0) 编辑
摘要: 视频 百度npm搜到淘宝npm镜像 npm install -g cnpm --registry=//registry.npm.taobao.org 这样既不影响npm访问美国服务器,又不影响cnpm访问中国服务器 阅读全文
posted @ 2023-02-06 03:08 垂序葎草 阅读(26) 评论(0) 推荐(0) 编辑
摘要: 视频 npm的命令 npm -v 查看npm的版本 npm version 查看所有模块的版本 npm search 包名 搜索包 npm install / i 包名 安装包 npm remove / r 包名 删除包 npm install 包名 --save 安装包并添加到依赖中 ***** 阅读全文
posted @ 2023-02-06 02:57 垂序葎草 阅读(10) 评论(0) 推荐(0) 编辑
摘要: 视频 json文件不能写注释 阅读全文
posted @ 2023-02-06 02:39 垂序葎草 阅读(12) 评论(0) 推荐(0) 编辑
摘要: 视频 #05.module.js var hello = require("./helloModule"); /* exports 和 module.exports - 通过exports只能使用.的方式来向外暴露内部变量 exports.xxx = xxx - 而module.exports既可以 阅读全文
posted @ 2023-02-06 02:27 垂序葎草 阅读(10) 评论(0) 推荐(0) 编辑
摘要: 视频 #math.js /* 定义一个模块 math - 在该模块中提供两个方法 add(a , b); //求两个数的和 mul(a , b); //求两个数的积 */ module.exports.add = function (a , b) { return a+b; }; module.ex 阅读全文
posted @ 2023-02-06 01:07 垂序葎草 阅读(125) 评论(0) 推荐(0) 编辑
摘要: 20230209 卡一下还是过了 20230218 dp记得初始化 20230220 顺利通过 20230308 顺利通过 原题解 题目 给你一个只包含 '(' 和 ')' 的字符串,找出最长有效(格式正确且连续)括号子串的长度。 约束 解法 解法一 class Solution { public: 阅读全文
posted @ 2023-02-05 21:48 垂序葎草 阅读(35) 评论(0) 推荐(0) 编辑
上一页 1 ··· 31 32 33 34 35 36 37 38 39 ··· 50 下一页