上一页 1 ··· 4 5 6 7 8 9 10 下一页
摘要: Vue开发基础下 全局API 实例属性 全局配置 组件进阶 全局API 全局API 说明 例子 Vue.directive 自定义类似v-model的指令 v-focus="true" Vue.use 注册使用插件 Vue.use(Vuelidate) Vue.extend 基于Vue扩展生成一个子 阅读全文
posted @ 2021-10-23 21:40 秋月桐 阅读(37) 评论(0) 推荐(0) 编辑
摘要: lowbit函数的实现 lowbit函数实现有两种方式: 一、 x&(x^(x-1)) 二、 x&-x 用lowbit运算统计1的个数 我们可以使用lowbit运算统计一个整数的二进制形式下1的个数。 实现原理很简单啦,就是:我们先用lowbit运算找出lowbit(x)lowbit(x),然后用原 阅读全文
posted @ 2021-10-19 21:33 秋月桐 阅读(374) 评论(0) 推荐(0) 编辑
摘要: 字典树 先来膜拜一下三叶姐的代码。 https://mp.weixin.qq.com/s?__biz=MzU4NDE3MTEyMA==&mid=2247488490&idx=1&sn=db2998cb0e5f08684ee1b6009b974089&chksm=fd9cb8f5caeb31e3f7f 阅读全文
posted @ 2021-10-19 21:25 秋月桐 阅读(42) 评论(0) 推荐(0) 编辑
摘要: VUE开发基础 上 概述内容: 1.vue对象上的实例属性 2.数据绑定的一些方法(把重点提出来说明) 3.事件 4.组件 5.生命周期 实例属性: el data methods computed watch filter el ,data: 创建实例: var vm = new Vue({ el 阅读全文
posted @ 2021-10-16 21:26 秋月桐 阅读(24) 评论(0) 推荐(0) 编辑
摘要: linux虚拟机本地网络配置 2021年10月13日 21:52 1.在主机模式+NAT模式 对应win主机下有两个对应网段的ip VMnet0和VMnet1 处于两种不同的网段与不同的模式, 开启多个虚拟机,都同时拥有两种不同的IP以及两种通讯模式 从外部访问虚拟机部署的服务,可以通过NAT模式下 阅读全文
posted @ 2021-10-15 19:40 秋月桐 阅读(92) 评论(0) 推荐(0) 编辑
摘要: go-jwt验证 jwt是目前主流令牌加密传输的标准 安装: go get -u github.com/dgrijalva/jwt-go@v3.2.0 使用: var jwtKey = []byte("a_secret_crect") type Claims struct { UserId uint 阅读全文
posted @ 2021-10-15 19:35 秋月桐 阅读(176) 评论(0) 推荐(0) 编辑
摘要: 倍增与快速幂,快速乘 一.快速幂 快速幂分为递归快速幂和迭代快速幂 目的是求:a^n,常与大素数的取模运算结合 时间复杂度:O(log n) 递归快速幂: 迭代方程: //递归快速幂 int qpow(int a, int n) { if (n == 0) return 1; else if (n 阅读全文
posted @ 2021-10-12 17:33 秋月桐 阅读(120) 评论(0) 推荐(0) 编辑
摘要: 对string进行hash算法: https://blog.csdn.net/Mikchy/article/details/103995537 实质上就是对每个字符串找到唯一相对应的数字值。 假设字符串为s,则对应映射值idx(s[i])=s[i]-'a'+1** (这里a对应1) 整个字符串所有字 阅读全文
posted @ 2021-08-05 22:33 秋月桐 阅读(1041) 评论(0) 推荐(0) 编辑
摘要: 斐波那契数列切入动态规划 动态规划指保存已出现过的值。 1.普通递归 int Fibonacci(int n){ if(n==0){ return 0; } if(n<=2){ return 1; } return Fibonacci(n-1)+Fibonacci(n-2); } 2.备忘录法 #i 阅读全文
posted @ 2021-08-05 22:31 秋月桐 阅读(81) 评论(0) 推荐(0) 编辑
摘要: 一.初识stl--vector stl的作用案例(自动扩容的vector数组): //不使用stl动态更新数组 int a[n]; int *p=new int[n]; int *temp=new int[m]; memecpy(temp,p,sizeof(int)*n); delete []p; 阅读全文
posted @ 2021-07-21 22:51 秋月桐 阅读(33) 评论(0) 推荐(0) 编辑
上一页 1 ··· 4 5 6 7 8 9 10 下一页