Given a string s and a non-empty string p, find all the start indices of p's anagrams in s. Strings consists of lowercase English letters only and the ...
分类:
其他好文 时间:
2016-10-31 00:08:22
阅读次数:
216
Problem: Given an arbitrary ransom note string and another string containing letters from all the magazines, write a function that will return true if ...
分类:
其他好文 时间:
2016-10-26 13:35:07
阅读次数:
206
Given a string that consists of only uppercase English letters, you can replace any letter in the string with another letter at most k times. Find the ...
分类:
其他好文 时间:
2016-10-26 09:40:13
阅读次数:
431
题目: A message containing letters from A-Z is being encoded to numbers using the following mapping: Given an encoded message containing digits, determi ...
分类:
其他好文 时间:
2016-10-24 23:17:30
阅读次数:
244
Problem: Given two strings s and t which consist of only lowercase letters. String t is generated by random shuffling string s and then add one more l ...
分类:
其他好文 时间:
2016-10-24 13:21:29
阅读次数:
161
A message containing letters from A-Z is being encoded to numbers using the following mapping: Given an encoded message containing digits, determine t ...
分类:
其他好文 时间:
2016-10-24 07:47:32
阅读次数:
199
Remove the minimum number of invalid parentheses in order to make the input string valid. Return all possible results. Note: The input string may cont ...
分类:
其他好文 时间:
2016-10-23 11:51:21
阅读次数:
149
#include <iostream> #include <iomanip> #include <cmath> using namespace std; //your code will be hereclass Land { public: Land() : price_(0) {} explic ...
分类:
其他好文 时间:
2016-10-22 14:40:06
阅读次数:
122
#include<iostream>#include<sstream>#include<cstring>using namespace std;int main(){ char s[1000]; string str; int count = 0; int count1 = 0; cin.get(s ...
分类:
其他好文 时间:
2016-10-22 14:39:37
阅读次数:
184
Description A newspaper is published in Walrusland. Its heading is s1, it consists of lowercase Latin letters. Fangy the little walrus wants to buy se ...
分类:
其他好文 时间:
2016-10-21 23:52:49
阅读次数:
321