2018-2019 ACM-ICPC, China Multi-Provincial Collegiate Programming Contest https://vjudge.net/problem/Gym-102222A 只要按照题目给的步骤进行,而且题目给的代码,不要去去改,否则会错。一开始用 ...
分类:
其他好文 时间:
2019-12-11 19:47:24
阅读次数:
100
错误的意思是:已达到可容忍的服务器重连接错误的最大数目。有两个解决思路:一个将这个值设置的更大;然后是排查自己连接服务哪儿出了问题。先说在哪儿设置这个值:在拉取nacos服务的注解配置中,添加一个属性maxRetry,这个值源码中默认给的是3,可以将其设置的更大一些。 1 @Configuratio ...
分类:
Web程序 时间:
2019-12-11 17:37:30
阅读次数:
2392
from collections import defaultdict ''' 最大匹配算法 Maximum Match { 正向最大匹配, 逆向最大匹配, 双向最大匹配; 分词算法设计中的几个基本原则: 1、颗粒度越大越好:用于进行语义分析的文本分词,要求分词结果的颗粒度越大, 即单词的字数越多, ...
分类:
编程语言 时间:
2019-12-09 21:43:37
阅读次数:
140
原题链接在这里:https://leetcode.com/problems/maximum-sum-of-3-non-overlapping-subarrays/ 题目: In a given array nums of positive integers, find three non-overl ...
分类:
移动开发 时间:
2019-12-09 14:08:23
阅读次数:
92
1 int depth = 0; 2 int currentMaxDepth = 0; 3 public int maxDepth(TreeNode root) { 4 if(root == null){ 5 return 0; 6 } 7 8 int leftDepth = 1; 9 int ri... ...
分类:
其他好文 时间:
2019-12-08 12:15:18
阅读次数:
84
不想看分析的,直接看最后的总结。 根据需求导出的数据,需要作格式化处理,如果数据为数字类型,则需要格式化。代码如下: 但是得到的效果并不让人满意,看下图Excel截图,敏感信息未截取: 然后看控制台报警告: Warning: Maximum number of format records exce ...
分类:
其他好文 时间:
2019-12-05 13:25:33
阅读次数:
144
Cows are such finicky eaters. Each cow has a preference for certain foods and drinks, and she will consume no others. Farmer John has cooked fabulous ...
分类:
其他好文 时间:
2019-12-02 13:55:06
阅读次数:
99
该系列题目取自 LeetCode 精选 TOP 面试题列表:https://leetcode cn.com/problemset/top/ 题目描述 原题链接:https://leetcode cn.com/problems/maximum depth of binary tree 给定一个二叉树, ...
分类:
其他好文 时间:
2019-12-01 11:41:20
阅读次数:
81
休息了两天,状态恢复了一下,补充点基础知识。 二叉搜索树 搜索树数据结构支持许多动态集合操作,包括Search,minimum,maximum,predecessor(前驱),successor(后继),INSERT和DELETE等。因此我们使用一颗搜索树既可以作为一个字典又可以作为一个优先队列。且 ...
分类:
其他好文 时间:
2019-11-30 21:13:07
阅读次数:
96
划重点 手机屏幕相对着桌面浏览器小,传统网页的设计在手机上体验糟糕 Apple 在移动版 Safari 中定义了 viewport meta 标签(如果没记错最早提出的话),用于创建一个虚拟窗口(layout viewport),这个虚拟窗口的分辨率接近于桌面显示器,Apple将其定义为980px。 ...
分类:
移动开发 时间:
2019-11-29 11:03:22
阅读次数:
125