码迷,mamicode.com
首页 >  
搜索关键字:multiply strings    ( 3474个结果
Python中Unicode码和非Unicode码引起的错误与格式转换
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
【Leetcode】Longest Palindromic Substring
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
leetcode -- Palindrome Partitioning
谋事在人,成事在天[问题描述]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
Add Binary
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库中常用的函数
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
Strings
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
Anagrams
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
leetcode Longest Common Prefix 最长公共前缀 (python)
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
Multiply Strings
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
题目链接:Codeforces 385B Bear and Strings记录下每一个bear的起始位置和终止位置,然后扫一遍记录下来的结构体数组,过程中用一个变量记录上一个扫过的位置,用来去重。#include #include #include using namespace std;const...
分类:其他好文   时间:2014-10-05 17:58:08    阅读次数:213
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!