"""97. Interleaving StringHard Given s1, s2, s3, find whether s3 is formed by the interleaving of s1 and s2. Example 1: Input: s1 = "aabcc", s2 = "dbb ...
分类:
其他好文 时间:
2019-02-10 10:53:34
阅读次数:
174
题目描述 HH有个一成不变的习惯,喜欢饭后百步走。所谓百步走,就是散步,就是在一定的时间 内,走过一定的距离。 但是同时HH又是个喜欢变化的人,所以他不会立刻沿着刚刚走来的路走回。 又因为HH是个喜欢变化的人,所以他每天走过的路径都不完全一样,他想知道他究竟有多 少种散步的方法。 现在给你学校的地图 ...
分类:
其他好文 时间:
2019-02-08 23:25:43
阅读次数:
232
剑指offer算法学习总结 节选剑指offer比较经典和巧妙的一些题目,以便复习使用。一部分题目给出了完整代码,一部分题目比较简单直接给出思路。但是不保证我说的思路都是正确的,个人对算法也不是特别在行,只不过这本书的算法多看了几遍多做了几遍多了点心得体会。于是想总结一下。如果有错误也希望能指出,谢谢 ...
分类:
编程语言 时间:
2019-02-08 22:01:15
阅读次数:
192
``` include using namespace std; include // Eigen 部分 include // 稠密矩阵的代数运算(逆,特征值等) include define MATRIX_SIZE 50 / 本程序演示了 Eigen 基本类型的使用 / int main( int ...
分类:
其他好文 时间:
2019-02-08 20:05:12
阅读次数:
463
Given a matrix of m x n elements (m rows, n columns), return all elements of the matrix in spiral order. Example 1: Example 2: 题意 顺时针螺旋输出数组 题解 1 class ...
分类:
其他好文 时间:
2019-02-08 18:35:59
阅读次数:
191
https://pintia.cn/problem-sets/994805342720868352/problems/994805363117768704 This time your job is to fill a sequence of N positive integers into a s ...
分类:
其他好文 时间:
2019-02-08 11:54:38
阅读次数:
176
Given a matrix of m x n elements (m rows, n columns), return all elements of the matrix in spiral order. Example 1: Example 2: ...
分类:
其他好文 时间:
2019-02-08 10:33:46
阅读次数:
196
LintCode 433: https://www.lintcode.com/problem/number-of-islands/description LintCode 434: https://www.lintcode.com/problem/number-of-islands-ii/descr ...
分类:
其他好文 时间:
2019-02-08 10:32:02
阅读次数:
172
Two images A and B are given, represented as binary, square matrices of the same size. (A binary matrix has only 0s and 1s as values.) We translate on ...
分类:
其他好文 时间:
2019-02-07 23:23:10
阅读次数:
214
You are given an n x n 2D matrix representing an image. Rotate the image by 90 degrees (clockwise). Note: You have to rotate the image in-place, which ...
分类:
其他好文 时间:
2019-02-07 19:01:55
阅读次数:
193