码迷,mamicode.com
首页 >  
搜索关键字:string    ( 95377个结果)
java-String类常用方法解释笔记
参考注释即可. 1 /*H4ckSo1di3r 2015年2月4日 下午11:55:07*/ 2 package Demo; 3 4 public class TestStringClass_测试String类 { 5 6 7 public static void mai...
分类:编程语言   时间:2015-02-05 07:04:01    阅读次数:232
Lintcode: Binary Representation
Given a (decimal - e g 3.72) number that is passed in as a string,return the binary representation that is passed in as a string.If the number can no....
分类:其他好文   时间:2015-02-05 07:03:58    阅读次数:147
Leetcode: Fraction to Recurring Decimal
Given two integers representing the numerator and denominator of a fraction, return the fraction in string format. If the fractional part is repeating, enclose the repeating part in parentheses....
分类:其他好文   时间:2015-02-05 00:50:42    阅读次数:174
HDU字符串基础题(1020,1039,1062,1088,1161,1200,2017)
并不是很精简,随便改改A过了就没有再简化了。1020.Problem DescriptionGiven a string containing only 'A' - 'Z', we could encode it using the following method:1. Each sub-stri...
分类:其他好文   时间:2015-02-05 00:45:46    阅读次数:306
leetcode 32. Longest Valid Parentheses
Given a string containing just the characters'('and')', find the length of the longest valid (well-formed) parentheses substring.For"(()", the longest...
分类:其他好文   时间:2015-02-05 00:41:45    阅读次数:200
String 类 的c_str()函数
先看一个例子:int lines, i; int left, right; string strleft, strright; pNode tPointerArray[MaxNum]; pNode tPointer; bool flag[MaxNum] = {false}; cin >> lines; for ( i = 0; i < lin...
分类:其他好文   时间:2015-02-04 23:30:36    阅读次数:356
LeetCode --- 32. Longest Valid Parentheses
题目链接:Longest Valid Parentheses Given a string containing just the characters '(' and ')', find the length of the longest valid (well-formed) parentheses substring. For "(()", the longest valid paren...
分类:其他好文   时间:2015-02-04 23:22:51    阅读次数:189
[原创]牛刀小试-重构并实现邮件内容生成功能
案例近期团队中多个项目均有邮件发送功能,邮件内容采用html格式,各项目独立开发,无统一实现方案。举例:某类型EmailSendService类型拥有多个String字段 content1、content2 ... content7,均为html文本生成邮件内容直接使用字符串连接context1 +...
分类:其他好文   时间:2015-02-04 23:15:52    阅读次数:180
iOS-C_Day13___字符串练习
2015.2.4#include //"hello:,:,:world:qian:feng"//char *my_strtok(char *string, const char *demi)//{// static char *token;// char *str;// if (string)...
分类:移动开发   时间:2015-02-04 23:14:27    阅读次数:295
[LeetCode]Valid Parentheses
Q:Given a string containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid. The brackets must close in the correct order, "()" and "()[]{}" are all ...
分类:其他好文   时间:2015-02-04 21:52:50    阅读次数:187
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!