####将uniapp的uni.createSelectorQuery()方法与uni.pageScrollTo(OBJECT)方法结合使用 更详细用法见官方文档: uni.createSelectorQuery()方法: https://uniapp.dcloud.io/api/ui/nodes- ...
分类:
移动开发 时间:
2020-07-21 21:25:43
阅读次数:
124
Count Complete Tree Nodes Given a complete binary tree, count the number of nodes. Note: Definition of a complete binary tree from Wikipedia: In a com ...
分类:
其他好文 时间:
2020-07-20 15:46:54
阅读次数:
80
Given a tree (i.e. a connected, undirected graph that has no cycles) consisting of n nodes numbered from 0 to n - 1 and exactly n - 1 edges. The root ...
分类:
其他好文 时间:
2020-07-20 10:50:59
阅读次数:
70
重启了centos后,发现k8s没有正常启动 # kubectl get nodes 提示无法正常连接,查看k8s是否正常启动 # systemctl status kubelet 提示:Active: activating (auto-restart) (Result: exit-code) 查看 ...
分类:
其他好文 时间:
2020-07-12 14:43:02
阅读次数:
141
题目描述 给定一个单链表,把所有的奇数节点和偶数节点分别排在一起。请注意,这里的奇数节点和偶数节点指的是节点编号的奇偶性,而不是节点的值的奇偶性。 请尝试使用原地算法完成。你的算法的空间复杂度应为 O(1),时间复杂度应为 O(nodes),nodes 为节点总数。 示例: 输入: 1->2->3- ...
分类:
其他好文 时间:
2020-07-11 15:37:06
阅读次数:
48
Given an n-ary tree, return the level order traversal of its nodes' values. Nary-Tree input serialization is represented in their level order traversa ...
分类:
其他好文 时间:
2020-07-10 11:20:42
阅读次数:
63
【题目描述】 给定一个单链表,把所有的奇数节点和偶数节点分别排在一起。请注意,这里的奇数节点和偶数节点指的是节点编号的奇偶性,而不是节点的值的奇偶性。 请尝试使用原地算法完成。你的算法的空间复杂度应为 O(1),时间复杂度应为 O(nodes),nodes 为节点总数。 示例 1: 输入: 1->2 ...
分类:
其他好文 时间:
2020-07-08 13:44:21
阅读次数:
63
只需要修改为如下集群模式的配置 spring: redis: #Redis 集群模式 #password: larry123456 cluster: nodes: 192.168.127.128:6379,192.168.127.129:6379,192.168.127.130:6379,192.1 ...
分类:
编程语言 时间:
2020-07-05 23:09:31
阅读次数:
219
springboot集成 redis 哨兵模式配置如下 spring: redis: #Redis 哨兵模式 password: larry123456 sentinel: master: larry-master nodes: 192.168.127.130:26379,192.168.127.1 ...
分类:
编程语言 时间:
2020-07-05 13:42:48
阅读次数:
117
集群的运行状况 GET /_cat/health?v 获取集群中的节点列表 GET /_cat/nodes?v 列出所有索引 GET /_cat/indices?v 创建索引 指定参数 PUT twitter { "settings" : { "index" : { "number_of_shard ...
分类:
其他好文 时间:
2020-07-05 00:27:57
阅读次数:
69