package LeetCode_1143 /** * 1143. Longest Common Subsequence * https://leetcode.com/problems/longest-common-subsequence/description/ * * Given two str ...
分类:
其他好文 时间:
2020-06-07 12:48:01
阅读次数:
57
Excel表列名称 1. 地址 https://leetcode-cn.com/problems/excel-sheet-column-title/ 2. 思路 进制转换的题目,但是对边界条件的处理并不是很好想 这题我看了题解: https://leetcode-cn.com/problems/ex ...
分类:
其他好文 时间:
2020-06-06 23:08:33
阅读次数:
82
参考文章: [1] 团灭 LeetCode 股票买卖问题 [2] Most consistent ways of dealing with the series of stock problems 其实文章 [1] 是文章 [2] 的「二次创作」,建议先阅读 [2] 后再阅读 [1] 。文章 [2] ...
分类:
其他好文 时间:
2020-06-06 21:39:10
阅读次数:
83
地址 https://leetcode-cn.com/problems/longest-consecutive-sequence/ 给定一个未排序的整数数组,找出最长连续序列的长度。 要求算法的时间复杂度为 O(n)。 示例: 输入: [100, 4, 200, 1, 3, 2] 输出: 4 解释: ...
分类:
其他好文 时间:
2020-06-06 21:23:22
阅读次数:
54
题目链接:https://leetcode-cn.com/problems/zai-pai-xu-shu-zu-zhong-cha-zhao-shu-zi-lcof/ 二分 时间复杂度:O(logn) 空间复杂度:O(1) class Solution { public: int search(ve ...
分类:
编程语言 时间:
2020-06-06 11:14:43
阅读次数:
48
此博客链接:https://www.cnblogs.com/ping2yingshi/p/13052844.html 各位相加 题目链接:https://leetcode-cn.com/problems/add-digits/ 给定一个非负整数 num,反复将各个位上的数字相加,直到结果为一位数。 ...
分类:
其他好文 时间:
2020-06-06 00:36:08
阅读次数:
53
package LeetCode_1365 import java.util.* /** * 1365. How Many Numbers Are Smaller Than the Current Number * https://leetcode.com/problems/how-many-num ...
分类:
其他好文 时间:
2020-06-04 19:56:56
阅读次数:
67
package LeetCode_50 /** * 50. Pow(x, n) * https://leetcode.com/problems/powx-n/description/ * * Implement pow(x, n), which calculates x raised to the ...
分类:
其他好文 时间:
2020-06-04 01:10:44
阅读次数:
68
https://leetcode-cn.com/problems/restore-ip-addresses/ 这个题很典型的回溯算法,但是要考虑的问题真的太多了,写的我好烦。 public List<String> restoreIpAddresses(String s) { List<String ...
分类:
其他好文 时间:
2020-06-03 23:39:14
阅读次数:
113
Ververica was founded by the original creators of Apache Flink®, and we’ve spent a long time solving problems in the stream processing space. In this ...
分类:
其他好文 时间:
2020-06-03 17:30:51
阅读次数:
66