S and T are strings composed of lowercase letters. In S, no letter occurs more than once. S was sorted in some custom order previously. We want to per ...
分类:
其他好文 时间:
2018-07-21 19:17:04
阅读次数:
210
问题描述: Given strings S and T, find the minimum (contiguous) substring W of S, so that T is a subsequence of W. If there is no such window in S that cov ...
Leetcode 838 push dominos 解体思路 STL标准模板库 提供了一组表示容器、迭代器、函数对象和算法的模板。 Alex Stepanov & Meng Lee 一起开发了STL, 1994年第一版发布。STL不是面向对象的编程,而是一种不同的编程模式 泛型编程(generic ...
分类:
其他好文 时间:
2018-07-20 15:56:42
阅读次数:
107
问题描述: Given two binary strings, return their sum (also a binary string). The input strings are both non-empty and contains only characters 1 or 0. Exa ...
分类:
其他好文 时间:
2018-07-17 00:48:45
阅读次数:
321
Description Given two binary strings, return their sum (also a binary string). Description Description Given two binary strings, return their sum (als ...
分类:
编程语言 时间:
2018-07-16 12:22:54
阅读次数:
142
67. Add Binary Given two binary strings, return their sum (also a binary string). The input strings are both non-empty and contains only characters 1 ...
分类:
其他好文 时间:
2018-07-12 21:49:15
阅读次数:
132
题意:定义斐波那契字符串为: $f_1 = $ "a" $f_2 =$ "b" $f_n = f_{n 1} + f_{n 2}, \, n 2$ 例如,$f_3 = $ “ba”。 有$m$次询问,第$i$次给出一个字符串$s_i$,问$s_i$在$f_n$中的出现次数。 $m \leq 10^4 ...
分类:
其他好文 时间:
2018-07-11 21:21:19
阅读次数:
214
Write a function to find the longest common prefix string amongst an array of strings. If there is no common prefix, return an empty string "". Exampl ...
分类:
其他好文 时间:
2018-07-10 22:07:33
阅读次数:
153
Given two strings A and B of lowercase letters, return true if and only if we can swap two letters in A so that the result equals B. Example 1: Input: ...
分类:
其他好文 时间:
2018-07-10 13:42:16
阅读次数:
180
动态规划 空间复杂度 min(O(m),O(n)) python 代码 ...
分类:
其他好文 时间:
2018-07-05 00:32:53
阅读次数:
205