题目: Given an unsorted array of integers, find the number of longest increasing subsequence. Example 1: Input: [1,3,5,4,7] Output: 2 Explanation: The t ...
分类:
编程语言 时间:
2020-01-17 19:04:48
阅读次数:
77
Given a string, find the length of the longest substring without repeating characters. Example 1: Input: "abcabcbb" Output: 3 Explanation: The answer ...
分类:
其他好文 时间:
2020-01-17 15:08:09
阅读次数:
93
环境信息 role ip port hostname master 192.168.188.101 4306 mysqlvm1 slave 192.168.188.201 4306 mysqlvm1-1 5306 6306 7306 MySQL版本 5.7.26 前置条件 已配置好主从复制。 配置增 ...
分类:
数据库 时间:
2020-01-17 11:51:49
阅读次数:
108
题目如下: You have a keyboard layout as shown above in the XY plane, where each English uppercase letter is located at some coordinate, for example, the l ...
分类:
其他好文 时间:
2020-01-17 11:45:26
阅读次数:
67
原题链接在这里:https://leetcode.com/problems/shortest-way-to-form-string/ 题目: From any string, we can form a subsequence of that string by deleting some numb ...
分类:
其他好文 时间:
2020-01-17 10:01:32
阅读次数:
91
logging是python标准库中的模块,用于给程序添加日志,借此方便我们回溯程序的执行过程。 以下面代码为例,介绍logging模块的基本用法: import logging logging.basicConfig(filename="example.log", filemode="a", fo ...
分类:
编程语言 时间:
2020-01-17 00:03:23
阅读次数:
96
1.原始数据 Key value Transformations(example: ((1, 2), (3, 4), (3, 6))) 2. flatMap测试示例 执行结果: 3.distinct、reducebykey、groupbykey 4.combineByKey(create Combi ...
分类:
其他好文 时间:
2020-01-16 19:01:28
阅读次数:
97
* Mybatis - 通用分页拦截器<br/>* 项目地址 : http://git.oschina.net/free/Mybatis_PageHelper 一、分页total拷贝 PageInfo<TShopOrderEntity> selectByExample = new ArrayList ...
分类:
其他好文 时间:
2020-01-16 18:55:03
阅读次数:
153
回文数。题意是判断一个数字是否是回文数。这个题跟第7题非常类似,几乎是一样的做法。例子, Example 1: Input: 121 Output: true Example 2: Input: -121 Output: false Explanation: From left to right, ...
分类:
其他好文 时间:
2020-01-16 14:55:14
阅读次数:
89
Given an integer n, return any array containing n unique integers such that they add up to 0. Example 1: Input: n = 5 Output: [-7,-1,1,3,4] Explanatio ...
分类:
其他好文 时间:
2020-01-16 14:19:16
阅读次数:
90