Given two strings s1 and s2, write a function to return true if s2 contains the permutation of s1. In other words, one of the first string's permutati ...
分类:
其他好文 时间:
2017-04-30 18:38:16
阅读次数:
156
1 ***************************************************************** 2 #fetch Request 使用isomorphic-fetch发送fetch请求 3 4 import fetch from 'isomorphic-fet... ...
题目链接:https://vijos.org/p/1049 题目大意:顺次给出m个置换,重复使用这m个置换对初始序列进行操作。问k次置换后的序列。m<=10, k<2^31。 首先将这m个置换“合并”起来(算出这m个置换的乘积),然后接下来我们须要运行这个置换k/m次(取整。若有余数则剩下几步模拟就 ...
分类:
其他好文 时间:
2017-04-30 16:07:02
阅读次数:
185
Given a group of two strings, you need to find the longest uncommon subsequence of this group of two strings. The longest uncommon subsequence is defi ...
分类:
其他好文 时间:
2017-04-29 16:12:05
阅读次数:
123
Given two binary strings, return their sum (also a binary string). For example, a = "11" b = "1" Return "100". public class Solution { public String a ...
分类:
其他好文 时间:
2017-04-29 11:53:48
阅读次数:
127
描写叙述: Given two numbers represented as strings, return multiplication of the numbers as a string. Note: The numbers can be arbitrarily large and are n ...
分类:
其他好文 时间:
2017-04-29 10:53:08
阅读次数:
182
Given two binary strings, return their sum (also a binary string). For example, a = "11" b = "1" Return "100". 题意:二进制的加法。 思路:跟大数加法差点儿相同。 class Solutio ...
分类:
其他好文 时间:
2017-04-27 23:14:47
阅读次数:
200
Power Strings Time Limit: 3000MS Memory Limit: 65536K Total Submissions: 31111 Accepted: 12982 Description Given two strings a and b we define a*b to ...
分类:
其他好文 时间:
2017-04-27 21:11:11
阅读次数:
213
题目: Given two numbers represented as strings, return multiplication of the numbers as a string. Note: The numbers can be arbitrarily large and are non ...
分类:
编程语言 时间:
2017-04-26 20:31:03
阅读次数:
187
问题: https://leetcode.com/problems/add-two-numbers-ii/#/description 思路:该题与“415. Add Strings”类似,都需要先将原来的数字序列翻转,然后就转化成了跟“2. Add Two Numbers”类似的问题,进而就容易解决 ...
分类:
其他好文 时间:
2017-04-26 19:14:33
阅读次数:
135