1.1. 问题 ProblemYou need to deal with data that doesn't fit in the ASCII character set. 你需要处理不适合用ASCII字符集表示的数据. 1.2. 解决 SolutionUnicode strings can be ...
分类:
编程语言 时间:
2014-10-07 01:21:42
阅读次数:
419
Given a stringS, find the longest palindromic substring inS. You may assume that the maximum length ofSis 1000, and there exists one unique longest pa...
分类:
其他好文 时间:
2014-10-07 00:32:12
阅读次数:
237
谋事在人,成事在天[问题描述]Given a strings, partitionssuch that every substring of the partition is a palindrome.Return all possible palindrome partitioning ofs.F...
分类:
其他好文 时间:
2014-10-07 00:28:22
阅读次数:
232
Given two binary strings, return their sum (also a binary string).For example,a ="11"b ="1"Return"100".类似模拟十进制加法 1 class Solution { 2 public: 3 st...
分类:
其他好文 时间:
2014-10-07 00:00:40
阅读次数:
165
lua提供了一些辅助函数来操作table。例如,从list中insert和remove元素,对array的元素进行sort,或者concatenate数组中的所有strings。下面就详细地讲解这些方法。
insert and remove
table.insert将一个元素插入到指定位置,例如:
t = {1, 2, 3}
table.insert(t, 1, 4}
t的结果将...
分类:
其他好文 时间:
2014-10-06 18:25:10
阅读次数:
211
StringsAnother useful data type is thestring. Astringcan contain letters, numbers, and symbols.Strings need to be within quotes.Escaping charactersbac...
分类:
其他好文 时间:
2014-10-06 12:58:10
阅读次数:
171
Given an array of strings, return all groups of strings that are anagrams.Note: All inputs will be in lower-case.For example:Input:["tea","and","ate",...
分类:
其他好文 时间:
2014-10-06 12:02:00
阅读次数:
167
Write a function to find the longest common prefix string amongst an array of strings.class Solution: # @return a string #最长公共前缀 def longestC...
分类:
编程语言 时间:
2014-10-05 20:35:58
阅读次数:
202
Given two numbers represented as strings, return multiplication of the numbers as a string.Note: The numbers can be arbitrarily large and are non-nega...
分类:
其他好文 时间:
2014-10-05 20:05:58
阅读次数:
208
题目链接:Codeforces 385B Bear and Strings记录下每一个bear的起始位置和终止位置,然后扫一遍记录下来的结构体数组,过程中用一个变量记录上一个扫过的位置,用来去重。#include #include #include using namespace std;const...
分类:
其他好文 时间:
2014-10-05 17:58:08
阅读次数:
213