码迷,mamicode.com
首页 >  
搜索关键字:string    ( 95377个结果)
ios Enum Value To NSString
#define enumToString(value)  @#value eg. typedef NS_ENUM(NSInteger, Sex) { Male = 0, Famale = 1, }; NSString * string =  enumToString(Male); NSLog@(@"string=%@", string); string=Male;...
分类:移动开发   时间:2015-03-19 23:59:44    阅读次数:361
Thinking in Java Chapter 13
From Thinking in Java 4th EditionString对象是不可变的。String类中每一个看起来会修改String值的方法,实际上都是创建了一个全新的String对象,以包含修改后的字符串内容。而最初的String对象则丝毫未动:import static net.mind...
分类:编程语言   时间:2015-03-19 23:54:01    阅读次数:323
hdu Wooden Sticks
这题是暴力加贪心,算是一道水题吧!只要把l和w从小到大排个序就行了。。。#include"iostream"#include"stdio.h"#include"string.h"#include"cmath"#include"algorithm"#include"queue"#define mx 1...
分类:其他好文   时间:2015-03-19 23:47:50    阅读次数:117
POC - ASP.NET & MYSQL部分
1. ASP.NET 用MYSQL是需要引入MYSQL的包的,这个在VS的TOOLS-> extension manager里可以搜到的2. 接下来是WEBCONFIG里的配置信息 3.MYSQL C#连接代码string strConn = ConfigurationManager.Co...
分类:数据库   时间:2015-03-19 23:38:19    阅读次数:201
URAL 1297. Palindrome(输出最长回文子串--后缀数组)
Input The input consists of a single line, which contains a string of Latin alphabet letters (no other characters will appear in the string). String length will not exceed 1000 characters. Outpu...
分类:编程语言   时间:2015-03-19 22:09:51    阅读次数:176
leetcode 题解 || Valid Parentheses 问题
problem: 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...
分类:其他好文   时间:2015-03-19 22:08:16    阅读次数:105
LeetCode --- 67. Add Binary
题目链接:Add Binary Given two binary strings, return their sum (also a binary string). For example, a = "11" b = "1" Return "100". 这道题的要求是两个二进制字符串加法运算。 简单的大数加法,只不过是二进制的。处理进位的时候,按照二进制处理即可。 时间复杂度...
分类:其他好文   时间:2015-03-19 21:57:35    阅读次数:124
最大字数组求和改进!
package com.java.lianxi;import java.util.*;public class lianxi3 { public static void main(String[] args) { int num,i,sum=0; Scanne...
分类:编程语言   时间:2015-03-19 21:54:49    阅读次数:175
Java性能优化技巧
在JAVA程序中,性能问题的大部分原因并不在于JAVA语言,而是程序本身。养成良好的编码习惯非常重要,能够显著地提升程序性能。1. 尽量使用final修饰符。带有final修饰符的类是不可派生的。在JAVA核心API中,有许多应用final的例子,例如 java.lang.String。为Strin...
分类:编程语言   时间:2015-03-19 21:39:38    阅读次数:233
LeetCode 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-03-19 20:25:02    阅读次数:120
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!