Microsoft.VisualBasic 命名空间 Strings 模块 StrConv 函数就具有大写/小写、全角/半角、中文简体/繁体等转换功能,字符串转换应该说是VB.NET的强项,是这样的:VB.NET直接调StrConv函数就行了,C#版的则需要在项目中添加引用Microsoft.Vis ...
Given two non-negative integers num1 and num2 represented as strings, return the product of num1 and num2.Note:The length of both num1 and num2 is < 1... ...
分类:
其他好文 时间:
2018-02-12 23:41:41
阅读次数:
420
The Salsa20 core Salsa20 核函数 The Salsa20 core is a function from 64-byte strings to 64-byte strings: the Salsa20 core reads a 64-byte string x and pro ...
分类:
其他好文 时间:
2018-02-10 01:17:47
阅读次数:
892
Power Strings 题意:给一个字符串S长度不超过10^6,求最大的n使得S由n个相同的字符串a连接而成,如:"ababab"则由n=3个"ab"连接而成,"aaaa"由n=4个"a"连接而成,"abcd"则由n=1个"abcd"连接而成。定理:假设S的长度为len,则S存在循环子串,当且仅 ...
分类:
其他好文 时间:
2018-02-07 00:48:37
阅读次数:
149
1.题目描述 Given two binary strings, return their sum (also a binary string). 做二进制加法 2.题目分析 这个题偷懒了,直接进行了进制转换 3.解题思路 ...
分类:
其他好文 时间:
2018-02-07 00:40:35
阅读次数:
158
Given k strings, find the longest common prefix (LCP). Given k strings, find the longest common prefix (LCP). Given k strings, find the longest common ...
分类:
其他好文 时间:
2018-02-04 19:32:36
阅读次数:
101
1 #include 2 #include 3 using namespace std; 4 #include 5 #include 6 #include 7 #include // for formating strings 8 #include 9 #include 10 #include 11... ...
分类:
其他好文 时间:
2018-02-03 00:37:57
阅读次数:
2536
Given two non-negative integers num1 and num2 represented as string, return the sum of num1 and num2. Note: 题意:给定以字符串形式表示的两个非负整数num1和num2,返回这两个整数的和。No ...
分类:
其他好文 时间:
2018-01-31 01:08:14
阅读次数:
182
一、问题描述 翻译一下:给定两个string表示的数num1和num2,以string返回他们的乘积。num1满足如下条件: 1、num1和num2的长度都小于110。 2、num1和num2都只含有0-9。 3、num1和num2前都不以0开头。 4、不能使用string转int的任何函数 二、问 ...
分类:
其他好文 时间:
2018-01-30 19:53:48
阅读次数:
101
You're given strings J representing the types of stones that are jewels, and S representing the stones you have. Each character in S is a type of ston... ...
分类:
其他好文 时间:
2018-01-30 00:26:18
阅读次数:
276