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 ...
分类:
其他好文 时间:
2017-07-15 22:43:37
阅读次数:
287
Given a 2D board and a word, find if the word exists in the grid. The word can be constructed from letters of sequentially adjacent cell, where "adjac ...
分类:
其他好文 时间:
2017-07-15 19:51:01
阅读次数:
149
Given an arbitrary ransom note string and another string containing letters from all the magazines, write a function that will return true if the rans ...
分类:
其他好文 时间:
2017-07-15 16:53:29
阅读次数:
159
Given a string which contains only lowercase letters, remove duplicate letters so that every letter appear once and only once. You must make sure your ...
分类:
其他好文 时间:
2017-07-14 13:15:31
阅读次数:
195
【题目链接】 http://www.lydsy.com/JudgeOnline/problem.php?id=2789 【题目大意】 给出两个字符串,通过A字符串相邻之间字符的交换得到B字符串, 求最小的交换次数 【题解】 最小交换则对于同个字符来说前后顺序不变,我们得到B序列的字符在A序列中的位置 ...
分类:
编程语言 时间:
2017-07-12 21:32:38
阅读次数:
179
Given an integer, write an algorithm to convert it to hexadecimal. For negative integer, two’s complement method is used. Note: All letters in hexadec ...
分类:
其他好文 时间:
2017-07-10 22:17:35
阅读次数:
152
Given a 2D board and a word, find if the word exists in the grid. The word can be constructed from letters of sequentially adjacent cell, where "adjac ...
分类:
其他好文 时间:
2017-07-09 22:05:37
阅读次数:
201
一、使用printf方法 二、使用SimpleDateFormat类 ...
分类:
编程语言 时间:
2017-07-08 14:39:45
阅读次数:
210
A message containing letters fromA-Zis being encoded to numbers using the following mapping: Given an encoded message containing digits, determine the ...
分类:
其他好文 时间:
2017-07-07 23:33:55
阅读次数:
233
A palindrome is a symmetrical string, that is, a string read identically from left to right as well as from right to left. You are to write a program ...
分类:
其他好文 时间:
2017-07-06 15:14:53
阅读次数:
211