"5. 最长回文子串" 难度?? 给定一个字符串 ,找到 中最长的回文子串。你可以假设 的最大长度为 1000。 示例 1: 示例 2: 思路 暴力,判断每个子串是否为回文串 中心扩展 ...
分类:
其他好文 时间:
2020-05-23 12:54:52
阅读次数:
49
链接:https://leetcode-cn.com/problems/longest-continuous-increasing-subsequence/ 代码: class Solution { public: int findLengthOfLCIS(vector<int>& nums) { ...
分类:
其他好文 时间:
2020-05-23 00:13:44
阅读次数:
45
链接:https://leetcode-cn.com/problems/longest-consecutive-sequence/ 代码: class Solution { public: int longestConsecutive(vector<int>& nums) { int n = num ...
分类:
其他好文 时间:
2020-05-23 00:10:02
阅读次数:
46
string str="123abc456";int i=3;1 取字符串的前i个字符 str=str.Substring(0,i); // or str=str.Remove(i,str.Length-i); 2 去掉字符串的前i个字符: str=str.Remove(0,i); // or st ...
分类:
Web程序 时间:
2020-05-23 00:05:00
阅读次数:
91
filters:{ timeFilter(data) { return data.substring(0, 10).replace(/-/g,'.');//return后面的就是数据处理方法 },}, filters和data同级的 <view>提现有效期:{{ 入参| timeFilter }}- ...
分类:
其他好文 时间:
2020-05-21 14:36:08
阅读次数:
42
题目链接: https://leetcode-cn.com/problems/find-the-longest-substring-containing-vowels-in-even-counts/ 一开始不会做,看了题解并和朋友讨论过后,终于弄懂官方解答为什么那么写了! 先贴一下官方解答的代码: ...
分类:
其他好文 时间:
2020-05-20 23:59:46
阅读次数:
117
Serialization is the process of converting a data structure or object into a sequence of bits so that it can be stored in a file or memory buffer, or ...
分类:
其他好文 时间:
2020-05-20 14:12:20
阅读次数:
55
联发科MT7615是一个支持1733Mbps物理量的高度集成的Wi-Fi芯片,它完全符合IEEE 802.11ac和IEEE802.11 a/b/n标准,在高标准下提供丰富的无线连接特性,提供可靠的、经济的吞吐量和扩展的距离。
分类:
其他好文 时间:
2020-05-20 09:17:40
阅读次数:
87
api代码示例入下 object DataFrameCase { def main(args: Array[String]): Unit = { val sparksession = SparkSession.builder().appName("DataFrameCase").master("lo ...
最大不重复子串是经典的 滑动窗口 问题 思路: mp记录每个字符出现的最大索引位置 start记录当前不重复子串的起始索引位置 先用Python实现一遍 完全相同的思路再用Go实现一遍 leetcode结果如下 (Python总是被碾压, 哭) ...
分类:
编程语言 时间:
2020-05-19 18:11:15
阅读次数:
53