码迷,mamicode.com
首页 >  
搜索关键字:string    ( 95377个结果)
LeetCode 6 ZigZag Conversion (C,C++,Java,Python)
Problem: The string "PAYPALISHIRING" is written in a zigzag pattern on a given number of rows like this: (you may want to display this pattern in a fixed font for better legibility) P A H ...
分类:编程语言   时间:2015-05-07 00:59:08    阅读次数:176
C#方法的使用
static void Main(string[] arr) { int max= Class1.GetMax(4, 7); Console.WriteLine(max); Console.ReadKey();...
分类:Windows程序   时间:2015-05-07 00:44:13    阅读次数:125
DbgPrint格式 输出
DbgPrint 输出1) 直接打印字符串。DbgPrint(“Hello World!”);2) 空结尾的字符串,你可以用普通得C语法表示字符串常量char variable_string[] = “Hello World”;DbgPrint(“%s”, variable_string);3) 空...
分类:数据库   时间:2015-05-07 00:32:50    阅读次数:232
(leetcode)Add Binary
class Solution {public: string addBinary(string a, string b) { int car = 0; int cur_a = a.length()-1; int cur_b = b.length()-1...
分类:其他好文   时间:2015-05-07 00:22:29    阅读次数:173
Roman to Integer ——解题报告
【题目】     Given a roman numeral, convert it to an integer. Input is guaranteed to be within the range from 1 to 3999.     【分析】     这个和上篇博文中把数字转换为罗马数字正好相反,逻辑过程有点儿复杂。     其实解法来源于对罗马数字(字符串)的观察,...
分类:其他好文   时间:2015-05-06 23:07:28    阅读次数:180
Integer to Roman ——解题报告
【题目】     Given an integer, convert it to a roman numeral. Input is guaranteed to be within the range from 1 to 3999.     分析:     首先,我们需要知道罗马数字的表示方法,可参考链接:http://blog.csdn.net/ljiabin/article...
分类:其他好文   时间:2015-05-06 23:06:43    阅读次数:156
Leetcode22: Length of Last Word
Given a string s consists of upper/lower-case alphabets and empty space characters ' ', return the length of last word in the string. If the last word does not exist, return 0. Note: A word is...
分类:其他好文   时间:2015-05-06 23:05:47    阅读次数:196
C# 动态数组(ArrayList)
动态数组(ArrayList)代表可单独被索引的对象的集合。 动态数组可以自动调整大小。 允许动态内存的分配,怎加,搜索,排序。 using System; using System.Collections; namespace CollectionApplication { class Program { static void Main(string...
分类:编程语言   时间:2015-05-06 23:05:28    阅读次数:237
C# 排序列表(SortedList)
SortedList类代表了一系列按键来排序的键/值对。这些键值可以通过键和索引来访问。 using System; using System.Collections; namespace CollectionsApplication { class Program { static void Main(string[] args) { ...
分类:编程语言   时间:2015-05-06 23:04:34    阅读次数:333
C# 哈希表(Hashtable)
Hashtable类代表了一系列基于键的哈希代码组织起来的key/value对。他使用键来访问集合中的元素。 using System; using System.Collections; namespace CollectionsApplication { class Program { static void Main(string[] args) ...
分类:Windows程序   时间:2015-05-06 23:04:27    阅读次数:264
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!