class BigInt{ public: vector<int> a; BigInt operator+(const BigInt& b) { BigInt r; int s=max(a.size(),b.a.size()); for(int i=0;i<s;i++) { r.a.push_bac ...
分类:
其他好文 时间:
2021-03-16 11:45:03
阅读次数:
0
二叉树的前序、中序、后序遍历 每个节点会被经过3次,前序、中序、后序的区别在于:在哪一次经过该节点时对其进行访问。 2. 递归实现 traverseRecursive(BiTrNode<T>* node): basecase: if(node == nullptr) return; general: ...
分类:
编程语言 时间:
2021-03-15 11:08:04
阅读次数:
0
elementui数据验证,出现问题时自动定位跳到改问题位置 that.$refs.editForm.validate((valid, object) => { console.log("valid,", valid, object) if(valid){ //调接口等一系列操作...... }el ...
分类:
其他好文 时间:
2021-03-15 10:36:04
阅读次数:
0
消息的分发策略最基础的就是推,拉机制,这有个最好的理解就是git -> pull 和 push 在这基础上制定了有5中消息的分发策略。(√ 支持,× 不支持) 1.发布订阅:生产者生产多少条消息,每个消费者就消费多少条消息(push) 2.轮询分发:消息数/消费者数 = 每个消费者消费的消息数 (除 ...
分类:
其他好文 时间:
2021-03-12 12:15:59
阅读次数:
0
Some people hear their own inner voices with great clearness. And they live by what they hear.Such people become crazy,or they become legends ...... 有 ...
分类:
其他好文 时间:
2021-03-10 13:21:51
阅读次数:
0
用了一段时间的 python 的 django 框架,在修改 sqlite 数据库的时候遇到如下错误:django.db.utils.IntegrityError: NOT NULL constraint failed: new__ImageRecognition_answercx.user_id ...
分类:
数据库 时间:
2021-03-10 13:09:41
阅读次数:
0
参考:git 如何修改本地分支名称与远程分支名称 修改本地分支名: git branch -m old_name new_name 删除远程分支: git push origin :old_name 重新创建一个新的远程分支 也就是将你现在所在的分支,再push一遍 git push origin ...
分类:
其他好文 时间:
2021-03-10 13:01:41
阅读次数:
0
在搭建k8s集群时需要初始化命令"kubeadm init",报错误,然后根据提示执行:"kubeadm config images pull",还报错,此处一万匹马在大草原奔腾~~~~~~~ 然后凭借自我感觉以及查询资料得出:是因为要下载k8s.gcr.io的docker镜像,但是国内连不上htt ...
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'consoleConfig': Injection of autowired dependencies failed; ne ...
分类:
其他好文 时间:
2021-03-09 13:43:34
阅读次数:
0
1. 两数之和(C++) 解法:枚举 特点:注意考虑边界情况 知识点:vector使用,数组长度 .size(),添加元素 .push_back(i)。 2. 两数相加(需重做)(C++) 解法:从左到右依次相加,考虑进位,注意考虑 知识点:链表的写法和使用 3.无重复字符的最长子串(未做完) 特点 ...
分类:
其他好文 时间:
2021-03-09 13:09:19
阅读次数:
0