问题: https://leetcode-cn.com/problems/edit-distance/ 讨论: 这个题我在华为笔试的时候遇到过,直接看懵了。无意中在知乎上发现有人讨论这个题(https://zhuanlan.zhihu.com/p/111409982),稍微弄懂了些皮毛, 所以记录一 ...
分类:
其他好文 时间:
2020-03-09 13:15:24
阅读次数:
48
错误背景:本地能够正常启动和调试应用,就是打包构建失败。 详细错误信息如下: [ERROR] [ERROR] Some problems were encountered while processing the POMs: [FATAL] 'artifactId' is missing. @ li ...
分类:
其他好文 时间:
2020-03-08 20:16:46
阅读次数:
135
PSTAT 174/274 COURSE PROJECTThe course project is an opportunity for students to apply time series techniques to real-world problems. Data andsoftware ...
分类:
其他好文 时间:
2020-03-08 19:47:57
阅读次数:
68
链接:https://pintia.cn/problem-sets/994805046380707840/problems/994805081289900032; 天梯赛每年有大量参赛队员,要保证同一所学校的所有队员都不能相邻,分配座位就成为一件比较麻烦的事情。为此我们制定如下策略:假设某赛场有 N ...
分类:
其他好文 时间:
2020-03-08 15:55:57
阅读次数:
77
原题链接在这里:https://leetcode.com/problems/product-of-the-last-k-numbers/ 题目: Implement the class ProductOfNumbers that supports two methods: 1. add(int nu ...
分类:
其他好文 时间:
2020-03-08 15:45:52
阅读次数:
64
原题链接在这里:https://leetcode.com/problems/shortest-path-in-a-grid-with-obstacles-elimination/ 题目: Given a m * n grid, where each cell is either 0 (empty) ...
分类:
其他好文 时间:
2020-03-08 09:49:10
阅读次数:
72
链接:https://leetcode cn.com/problems/zui chang bu han zhong fu zi fu de zi zi fu chuan lcof/ 代码 ...
分类:
其他好文 时间:
2020-03-07 21:16:04
阅读次数:
66
题目描述[题目描述][https://leetcode-cn.com/problems/zigzag-conversion/]将一个给定字符串根据给定的行数,以从上往下、从左到右进行 Z 字形排列。比如输入字符串为 "LEETCODEISHIRING"行数为 3 时,排列如下:L C I RE T ... ...
分类:
其他好文 时间:
2020-03-07 11:26:19
阅读次数:
70
有一次,我做了一道算法题:https://leetcode.com/problems/regular expression matching/ 最终的代码,我用JavaScript写了300多行代码,通过的时候我本地的测试用例有50几个。这个题目我做了挺久的,但是我从中获得了很多启发。 当然,算法本 ...
分类:
其他好文 时间:
2020-03-06 23:59:58
阅读次数:
120
题目: https://leetcode-cn.com/problems/legal-binary-search-tree-lcci/ 实现一个函数,检查一棵二叉树是否为二叉搜索树。 示例 1:输入: 2 / \ 1 3输出: true示例 2:输入: 5 / \ 1 4 / \ 3 6输出: fa ...
分类:
其他好文 时间:
2020-03-06 17:22:32
阅读次数:
62